%define oname Solaar %define date 0 #define prel rc3 %define rel 1 %if %{date} %define release %mkrel -c git%{date} %{rel} %define tarballver %{commit} %define tarballdir %{commit} %define tarballgit +git%{date} %define commit 955df30c7f37ab7d30137610b440179dfb0682b8 %else %if 0%{?prel:1} %define release %mkrel -c %{prel} %{rel} %define tarballver %{version}%{?prel:%prel} %define tarballdir %{version}%{?prel:%prel} %define tarballgit %{?prel:%prel} %else %define release %mkrel %{rel} %define tarballver %{version} %define tarballdir %{version} %endif %endif %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^typelib\\(Ayatana Name: solaar Version: 1.0.2 Release: %{release} Summary: Device manager for Logitech's Unifying Receiver License: GPLv2 Group: System/Kernel and hardware Url: http://pwr.github.io/Solaar/ Source0: https://github.com/pwr/%{oname}/archive/%{tarballdir}/%{name}-%{version}%{?tarballgit}.tar.gz Patch0: solaar-1.0.2rc2-fix-udevrulesdir.patch BuildArch: noarch BuildRequires: gettext BuildRequires: python3-devel BuildRequires: python3dist(setuptools) Requires: python3dist(pyudev) Requires: python3dist(pygobject) %description Solaar is a Linux device manager for Logitechâs Unifying Receiver peripherals. It is able to pair/unpair devices to the receiver, and for most devices read battery status. It comes in two flavors, command-line and GUI. Both are able to list the devices paired to a Unifying Receiver, show detailed info for each device, and also pair/unpair supported devices with the receiver. %prep %autosetup -n %{oname}-%{tarballver} -p1 # Correct Python interpreter path in all executables /usr/bin/env python -> /usr/bin/python3 grep -rl '#!/usr/bin/.*python' | xargs sed -i -e 's,^#!/usr/bin/.*python[2,3]\?,#!%{__python3},' # create all translations files (solaar.mo) on ./share/locale sh ./tools/po-compile.sh %build %py3_build %install %py3_install %find_lang %{name} %files -f %{name}.lang %doc README.md share/README docs %{_bindir}/%{name}* %{_datadir}/applications/%{name}.desktop %{_sysconfdir}/xdg/autostart/%{name}.desktop %{_datadir}/%{name}/ %{_iconsdir}/*/*/*/%{name}.svg %{python3_sitelib}/%{name}-%{version}%{?prel:%prel}-py%{python3_version}.egg-info %{python3_sitelib}/{hidapi,logitech_receiver,solaar}/ %config %{_udevrulesdir}/42-logitech-unify-permissions.rules %changelog * Fri May 22 2020 daviddavid <daviddavid> 1.0.2-1.mga7 + Revision: 1586798 - new version: 1.0.2 - new version: 1.0.2rc3 - new version: 1.0.2-rc1 * Thu Mar 21 2019 daviddavid <daviddavid> 0.9.2-12.git20190130.1.mga7 + Revision: 1379409 - update to latest git snapshot: 0.9.2-git20190130 * Tue Jan 08 2019 tv <tv> 0.9.2-12.git20180813.4.mga7 + Revision: 1351820 - rebuild with python 3.7 * Mon Jan 07 2019 wally <wally> 0.9.2-12.git20180813.3.mga7 + Revision: 1350581 - rebuild for python3.7 * Thu Oct 04 2018 daviddavid <daviddavid> 0.9.2-12.git20180813.2.mga7 + Revision: 1317734 - Mageia 7 Mass Rebuild * Tue Aug 14 2018 daviddavid <daviddavid> 0.9.2-12.git20180813.1.mga7 + Revision: 1251542 - update to latest git snapshot: 0.9.2-git20180813 * Mon Apr 16 2018 wally <wally> 0.9.2-12.git20180112.1.mga7 + Revision: 1219371 - update to latest git snapshot: 0.9.2-git20180112 * Sat Aug 05 2017 daviddavid <daviddavid> 0.9.2-12.git20170103.2.mga7 + Revision: 1135063 - rebuild for new Python 3.6 * Tue Jan 03 2017 daviddavid <daviddavid> 0.9.2-12.git20170103.1.mga6 + Revision: 1079889 - update to latest git snapshot: 0.9.2-git20170103 * Mon Dec 12 2016 daviddavid <daviddavid> 0.9.2-12.git20161203.1.mga6 + Revision: 1074353 - update to latest git snapshot: 0.9.2-git20161203 - remove merged upstream patch * Wed Nov 23 2016 daviddavid <daviddavid> 0.9.2-12.git20161123.1.mga6 + Revision: 1069490 - update to latest git snapshot: 0.9.2-git20161123 - port to python3 - use new python macros - update URL - add French translation on desktop file * Mon Feb 08 2016 umeabot <umeabot> 0.9.2-11.mga6 + Revision: 947292 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot <umeabot> 0.9.2-10.mga5 + Revision: 744196 - Second Mageia 5 Mass Rebuild * Sat Sep 27 2014 tv <tv> 0.9.2-9.mga5 + Revision: 730168 - rebuild for missing pythoneggs deps * Tue Sep 16 2014 umeabot <umeabot> 0.9.2-8.mga5 + Revision: 689237 - Mageia 5 Mass Rebuild + ovitters <ovitters> - add gobject-introspection BR for typelib auto BR + pterjan <pterjan> - Rebuild for new Python * Sat Nov 02 2013 fwang <fwang> 0.9.2-6.mga4 + Revision: 548985 - we are now using pygir * Tue Oct 22 2013 umeabot <umeabot> 0.9.2-5.mga4 + Revision: 544458 - Mageia 4 Mass Rebuild * Tue Oct 15 2013 pterjan <pterjan> 0.9.2-4.mga4 + Revision: 499885 - Rebuild to add different pythonegg provides for python 2 and 3 * Thu Aug 08 2013 wally <wally> 0.9.2-3.mga4 + Revision: 464534 - restore noarch and remove unneeded requires tag as missing requires were fixed in libappindicator * Thu Aug 08 2013 dams <dams> 0.9.2-2.mga4 + Revision: 464512 - Remove 'noarch' to fix 'requires' installation * Wed Aug 07 2013 dams <dams> 0.9.2-1.mga4 + Revision: 464288 - update to 0.9.2 * Wed Jul 10 2013 dams <dams> 0.9.0-2.mga4 + Revision: 452304 - add libappindicator3_1 as a require * Wed Jul 10 2013 dams <dams> 0.9.0-1.mga4 + Revision: 452296 - new version 0.9.0 * Tue Jun 25 2013 dams <dams> 0.8.99.7-1.mga4 + Revision: 446571 - new version 0.8.99.7 * Tue Jun 18 2013 dams <dams> 0.8.9.4-1.mga4 + Revision: 444640 - new version 0.8.9.4 - update specfile * Mon Jun 10 2013 dams <dams> 0.8.9.2-3.mga4 + Revision: 441376 - use TAG+="uaccess" instead of non existing/used user group - rename udev.rules to be done before 73 * Sat Jun 08 2013 dams <dams> 0.8.9.2-2.mga4 + Revision: 440675 - Adds missing icons (mga#9987) * Fri Jun 07 2013 dams <dams> 0.8.9.2-1.mga4 + Revision: 440222 - new version 0.8.9.2 - fix license * Tue Jun 04 2013 dams <dams> 0.8.9-1.mga4 + Revision: 436891 - fix specfile for udev rules - imported package solaar