mirror of
https://abf.rosa.ru/djam/sdl2-gamepad-mapper.git
synced 2025-02-23 07:43:00 +00:00
43 lines
1.3 KiB
RPMSpec
43 lines
1.3 KiB
RPMSpec
Summary: GUI application to map a generic controller to the SDL2 GameController spec and generate an SDL2 mapping string
|
|
Name: sdl2-gamepad-mapper
|
|
Version: 0.0.9
|
|
Release: 1
|
|
License: GPLv3
|
|
Group: System/Configuration/Hardware
|
|
URL: https://gitlab.com/ryochan7/sdl2-gamepad-mapper
|
|
Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: pkgconfig(Qt5Quick)
|
|
BuildRequires: pkgconfig(Qt5QuickControls2)
|
|
BuildRequires: pkgconfig(sdl2)
|
|
BuildRequires: pkgconfig(vulkan)
|
|
BuildRequires: qt515
|
|
|
|
%description
|
|
GUI application to map a generic controller to the SDL2 GameController spec
|
|
and generate an SDL2 mapping string.
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc README.md
|
|
%{_bindir}/sdl2-gamepad-mapper
|
|
%{_datadir}/applications/sdl2-gamepad-mapper.desktop
|
|
%{_datadir}/icons/hicolor/512x512/apps/sdl2-gamepad-mapper.png
|
|
|
|
#------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -qn %{name}-v%{version}
|
|
|
|
%build
|
|
%cmake
|
|
%make
|
|
|
|
%install
|
|
%makeinstall_std -C build
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/512x512/apps
|
|
|
|
cp -rv sdl2-gamepad-mapper.desktop %{buildroot}%{_datadir}/applications/sdl2-gamepad-mapper.desktop
|
|
cp -rv sdl2-gamepad-mapper.png %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/sdl2-gamepad-mapper.png
|