|
Gergely Gombos |
7a14475 |
# Force out of source build
|
|
Gergely Gombos |
7a14475 |
%undefine __cmake_in_source_build
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
6a41bcb |
# % global snap 20200911
|
|
Gergely Gombos |
6a41bcb |
# % global gitcommit 9b383805b7967884a8b602c5a43be415c3427fe4
|
|
Gergely Gombos |
6a41bcb |
# % global shortcommit % (c=% {gitcommit}; echo $ {c:0:5})
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
%global appname io.github.antimicrox.antimicrox
|
|
Gergely Gombos |
7a14475 |
%global libname libantilib
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
Name: antimicrox
|
|
|
db1fd5f |
Version: 3.2.2
|
|
|
db1fd5f |
Release: 1%{?snap:.%{snap}git%{shortcommit}}%{?dist}
|
|
Gergely Gombos |
7a14475 |
Summary: Graphical program used to map keyboard buttons and mouse controls to a gamepad
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
License: GPLv3+
|
|
Gergely Gombos |
7a14475 |
URL: https://github.com/AntiMicroX/%{name}
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
%if 0%{?snap}
|
|
Gergely Gombos |
7a14475 |
%global archivename %{name}-%{gitcommit}
|
|
Gergely Gombos |
7a14475 |
%else
|
|
Gergely Gombos |
7a14475 |
%global archivename %{name}-%{version}
|
|
Gergely Gombos |
7a14475 |
%endif
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
%if 0%{?snap}
|
|
Gergely Gombos |
57a20ee |
Source0: %{url}/archive/%{gitcommit}/%{archivename}.tar.gz
|
|
Gergely Gombos |
7a14475 |
%else
|
|
Gergely Gombos |
7a14475 |
Source0: %{url}/archive/%{version}/%{archivename}.tar.gz
|
|
Gergely Gombos |
7a14475 |
%endif
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
BuildRequires: gcc-c++
|
|
Gergely Gombos |
7a14475 |
BuildRequires: cmake
|
|
Gergely Gombos |
7a14475 |
BuildRequires: extra-cmake-modules
|
|
Gergely Gombos |
7a14475 |
BuildRequires: libX11-devel
|
|
Gergely Gombos |
7a14475 |
BuildRequires: libXi-devel
|
|
Gergely Gombos |
7a14475 |
BuildRequires: libXtst-devel
|
|
Gergely Gombos |
7a14475 |
BuildRequires: qt5-qtbase-devel
|
|
Gergely Gombos |
7a14475 |
BuildRequires: qt5-qttools-devel
|
|
Gergely Gombos |
7a14475 |
BuildRequires: qt5-qtx11extras-devel
|
|
Gergely Gombos |
7a14475 |
BuildRequires: SDL2-devel
|
|
Gergely Gombos |
7a14475 |
BuildRequires: itstool
|
|
Gergely Gombos |
7a14475 |
BuildRequires: gettext
|
|
Gergely Gombos |
7a14475 |
# For desktop file & AppData
|
|
Gergely Gombos |
7a14475 |
BuildRequires: libappstream-glib
|
|
Gergely Gombos |
7a14475 |
BuildRequires: desktop-file-utils
|
|
|
0f6e740 |
BuildRequires: systemd
|
|
|
0f6e740 |
|
|
|
0f6e740 |
Requires: systemd-udev
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
%description
|
|
Gergely Gombos |
57a20ee |
%{name} is a graphical program used to map keyboard keys and mouse controls
|
|
Gergely Gombos |
57a20ee |
to a gamepad. This program is useful for playing PC games using a gamepad that
|
|
Gergely Gombos |
57a20ee |
do not have any form of built-in gamepad support. %{name} is a fork of
|
|
Gergely Gombos |
7a14475 |
AntiMicro which was inspired by QJoyPad but has additional features.
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
%prep
|
|
Gergely Gombos |
7a14475 |
%setup -n %{archivename} -q
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
%build
|
|
Gergely Gombos |
7a14475 |
%cmake3
|
|
Gergely Gombos |
7a14475 |
%cmake3_build
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
%install
|
|
Gergely Gombos |
7a14475 |
%cmake3_install
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
%find_lang %{name} --with-qt
|
|
Gergely Gombos |
7a14475 |
|
|
|
0f6e740 |
%post
|
|
|
0f6e740 |
%udev_rules_update
|
|
|
0f6e740 |
|
|
|
0f6e740 |
%postun
|
|
|
0f6e740 |
%udev_rules_update
|
|
|
0f6e740 |
|
|
Gergely Gombos |
7a14475 |
%files -f %{name}.lang
|
|
Gergely Gombos |
7a14475 |
# Redundant
|
|
Gergely Gombos |
6a41bcb |
%exclude %{_datadir}/%{name}/CHANGELOG.md
|
|
Gergely Gombos |
7a14475 |
%exclude %dir %{_datadir}/%{name}/translations
|
|
Gergely Gombos |
7a14475 |
%exclude %{_datadir}/%{name}/translations/*
|
|
Gergely Gombos |
6a41bcb |
%doc CHANGELOG.md README.md
|
|
Gergely Gombos |
7a14475 |
%{_bindir}/%{name}
|
|
Gergely Gombos |
7a14475 |
%dir %{_datadir}/%{name}
|
|
Gergely Gombos |
7a14475 |
%{_datadir}/%{name}/*
|
|
Gergely Gombos |
7a14475 |
%{_datadir}/applications/%{appname}.desktop
|
|
Gergely Gombos |
a57012e |
%{_datadir}/icons/*/*/apps/*
|
|
Gergely Gombos |
7a14475 |
%{_metainfodir}/%{appname}.appdata.xml
|
|
Gergely Gombos |
7a14475 |
%{_datadir}/mime/packages/%{appname}.xml
|
|
Gergely Gombos |
7a14475 |
%{_mandir}/man1/%{name}.1*
|
|
|
1d49826 |
%{_udevrulesdir}/60-antimicrox-uinput.rules
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
%check
|
|
Gergely Gombos |
7a14475 |
%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/%{appname}.desktop
|
|
Gergely Gombos |
7a14475 |
%{_bindir}/appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/%{appname}.appdata.xml
|
|
Gergely Gombos |
7a14475 |
|
|
Gergely Gombos |
7a14475 |
%changelog
|
|
|
db1fd5f |
* Mon Apr 11 2022 Gergely Gombos <gombosg@disroot.org> - 3.2.2-1
|
|
|
db1fd5f |
- 3.2.2
|
|
|
db1fd5f |
|
|
|
74cae71 |
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-2
|
|
|
74cae71 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
74cae71 |
|
|
|
eebcd3c |
* Mon Jan 03 2022 Gergely Gombos <gombosg@disroot.org> - 3.2.1-1
|
|
|
eebcd3c |
- 3.2.1
|
|
|
eebcd3c |
|
|
|
1d49826 |
* Tue Nov 30 2021 Gergely Gombos <gombosg@disroot.org> - 3.2.0-1
|
|
|
1d49826 |
- 3.2.0
|
|
|
1d49826 |
|
|
|
0f6e740 |
* Fri Sep 17 2021 Gergely Gombos <gombosg@disroot.org> - 3.1.7-1
|
|
|
0f6e740 |
- 3.1.7
|
|
|
0f6e740 |
|
|
|
40c2120 |
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.4-3
|
|
|
40c2120 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
40c2120 |
|
|
|
d36e617 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.4-2
|
|
|
d36e617 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
d36e617 |
|
|
Gergely Gombos |
a57012e |
* Mon Jan 11 2021 Gergely Gombos <gombosg@disroot.org> - 3.1.4-1
|
|
Gergely Gombos |
a57012e |
- 3.1.4, remove libantilib subpackage
|
|
Gergely Gombos |
a57012e |
|
|
Gergely Gombos |
57a20ee |
* Sun Nov 15 2020 Gergely Gombos <gombosg@disroot.org> - 3.1.3-1
|
|
Gergely Gombos |
57a20ee |
- 3.1.3, remove icons dependency, add % {arm} arch
|
|
Gergely Gombos |
57a20ee |
|
|
Gergely Gombos |
6a41bcb |
* Fri Oct 2 2020 Gergely Gombos <gombosg@disroot.org> - 3.1.2-1
|
|
Gergely Gombos |
6a41bcb |
- 3.1.2
|
|
Gergely Gombos |
6a41bcb |
|
|
Gergely Gombos |
7a14475 |
* Fri Sep 11 2020 Gergely Gombos <gombosg@disroot.org> - 3.1-1.20200911git9b383
|
|
Gergely Gombos |
7a14475 |
- Initial package
|