]>
Commit | Line | Data |
---|---|---|
c91b5b38 | 1 | Summary: Linux devices manager for the Logitech Unifying Receiver |
8723adb1 | 2 | Summary(pl.UTF-8): Linuksowy menedżer urządzeń dedykowany zunifikowanym odbiornikom firmy Logitech |
c91b5b38 | 3 | Name: solaar |
1813fdc4 | 4 | Version: 1.1.5 |
30280372 | 5 | Release: 1 |
c91b5b38 JR |
6 | License: GPL v2 |
7 | Group: Applications/System | |
4ac036cb | 8 | Source0: https://github.com/pwr-Solaar/Solaar/archive/refs/tags/%{version}.tar.gz |
1813fdc4 | 9 | # Source0-md5: 96960256536d4538f2b9e9fa390dee71 |
1e6830a2 | 10 | URL: https://pwr-solaar.github.io/Solaar/ |
4c015156 | 11 | BuildRequires: gettext-tools |
a31777be | 12 | BuildRequires: python3-dbus |
a31777be KM |
13 | BuildRequires: python3-modules |
14 | BuildRequires: python3-pygobject3 | |
15 | BuildRequires: python3-pyudev | |
16 | BuildRequires: python3-setuptools | |
c91b5b38 | 17 | BuildRequires: rpm-pythonprov |
a31777be KM |
18 | BuildRequires: rpmbuild(macros) >= 2.000 |
19 | Requires: python3-dbus | |
20 | Requires: python3-modules | |
21 | Requires: python3-pygobject3 | |
22 | Requires: python3-pyudev | |
23 | Requires(post,postun): gtk-update-icon-cache | |
24 | Requires(post,postun): hicolor-icon-theme | |
25 | Provides: %{name}-gui = %{version} | |
26 | Obsoletes: solaar-gui < %{version} | |
27 | BuildArch: noarch | |
c91b5b38 JR |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
3e6769c5 | 31 | Solaar is a Linux device manager for Logitech's Unifying Receiver |
c91b5b38 JR |
32 | peripherals. It is able to pair/unpair devices to the receiver, and |
33 | for most devices read battery status. | |
34 | ||
35 | It comes in two flavors, command-line and GUI. Both are able to list | |
36 | the devices paired to a Unifying Receiver, show detailed info for each | |
37 | device, and also pair/unpair supported devices with the receiver. | |
38 | ||
8723adb1 KM |
39 | %description -l pl.UTF-8 |
40 | Solarar to menedżer urządzeń dla systemu Linux dla urządzeń | |
41 | peryferyjnych będących zunifikowanymi odbiornikami firmy Logitech. | |
42 | Solaar Jest w stanie sparować/rozparować urządzenia z odbiornikiem, a | |
43 | dla większości urządzeń również odczytać stan baterii. | |
44 | ||
45 | Występuje w dwóch wersjach: wiersza poleceń i GUI. Oba są w stanie | |
46 | wyświetlić listę urządzeń sparowanych z odbiornikiem, wyświetlić | |
47 | szczegółowe informacje o każdym urządzeniu, a także | |
48 | sparować/rozparować obsługiwane urządzenia z odbiornikiem. | |
49 | ||
c91b5b38 JR |
50 | %prep |
51 | %setup -q -n Solaar-%{version} | |
52 | ||
53 | %build | |
4311083c | 54 | %py3_build |
8e482cf6 | 55 | sh tools/po-compile.sh |
c91b5b38 JR |
56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
117a917d | 59 | install -d $RPM_BUILD_ROOT/etc/xdg/autostart/ |
4311083c | 60 | install -d $RPM_BUILD_ROOT/lib/udev/rules.d |
8e482cf6 | 61 | %{__sed} -i '1s,%{_bindir}/env python3,%{__python3},' tools/hidconsole |
4311083c JR |
62 | |
63 | %py3_install | |
64 | ||
65 | ln -sr $RPM_BUILD_ROOT%{_bindir}/{%{name},%{name}-cli} | |
8e482cf6 | 66 | install -pm755 tools/hidconsole $RPM_BUILD_ROOT%{_bindir} |
117a917d | 67 | install -pm644 share/autostart/solaar.desktop $RPM_BUILD_ROOT/etc/xdg/autostart/ |
4311083c JR |
68 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/solaar/udev-rules.d/42-logitech-unify-permissions.rules $RPM_BUILD_ROOT/lib/udev/rules.d/ |
69 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/solaar/udev-rules.d | |
1813fdc4 | 70 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/rs |
8e482cf6 | 71 | %find_lang %{name} |
c91b5b38 JR |
72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
a31777be | 76 | %post |
c91b5b38 JR |
77 | %update_icon_cache hicolor |
78 | ||
a31777be KM |
79 | %posttrans |
80 | # This is needed to apply permissions to existing devices when the package is installed. | |
81 | /bin/udevadm trigger --subsystem-match=hidraw --action=add | |
c91b5b38 | 82 | |
a31777be KM |
83 | %postun |
84 | %update_icon_cache hicolor | |
c91b5b38 | 85 | |
8e482cf6 | 86 | %files -f %{name}.lang |
c91b5b38 | 87 | %defattr(644,root,root,755) |
30280372 | 88 | %doc ChangeLog.md docs/* |
8e482cf6 | 89 | %attr(755,root,root) %{_bindir}/hidconsole |
c91b5b38 | 90 | %attr(755,root,root) %{_bindir}/solaar |
a31777be | 91 | %attr(755,root,root) %{_bindir}/solaar-cli |
117a917d | 92 | /etc/xdg/autostart/solaar.desktop |
4311083c JR |
93 | %dir %{py3_sitescriptdir}/hidapi |
94 | %{py3_sitescriptdir}/hidapi/*.py | |
95 | %dir %{py3_sitescriptdir}/hidapi/__pycache__ | |
96 | %{py3_sitescriptdir}/hidapi/__pycache__/*.pyc | |
117fa076 KM |
97 | %dir %{py3_sitescriptdir}/keysyms |
98 | %{py3_sitescriptdir}/keysyms/*.py | |
99 | %dir %{py3_sitescriptdir}/keysyms/__pycache__ | |
100 | %{py3_sitescriptdir}/keysyms/__pycache__/*.pyc | |
4311083c JR |
101 | %dir %{py3_sitescriptdir}/logitech_receiver |
102 | %{py3_sitescriptdir}/logitech_receiver/*.py | |
103 | %dir %{py3_sitescriptdir}/logitech_receiver/__pycache__ | |
104 | %{py3_sitescriptdir}/logitech_receiver/__pycache__/*.pyc | |
105 | %dir %{py3_sitescriptdir}/solaar | |
106 | %{py3_sitescriptdir}/solaar/*.py | |
107 | %dir %{py3_sitescriptdir}/solaar/__pycache__ | |
108 | %{py3_sitescriptdir}/solaar/__pycache__/*.pyc | |
109 | %dir %{py3_sitescriptdir}/solaar/cli | |
110 | %{py3_sitescriptdir}/solaar/cli/*.py | |
111 | %dir %{py3_sitescriptdir}/solaar/cli/__pycache__ | |
112 | %{py3_sitescriptdir}/solaar/cli/__pycache__/*.pyc | |
113 | %dir %{py3_sitescriptdir}/solaar/ui | |
114 | %{py3_sitescriptdir}/solaar/ui/*.py | |
115 | %dir %{py3_sitescriptdir}/solaar/ui/__pycache__ | |
116 | %{py3_sitescriptdir}/solaar/ui/__pycache__/*.pyc | |
117 | %{py3_sitescriptdir}/solaar-%{version}-py%{py3_ver}.egg-info | |
c91b5b38 JR |
118 | %{_datadir}/%{name} |
119 | %{_desktopdir}/solaar.desktop | |
120 | %{_iconsdir}/hicolor/scalable/apps/solaar.svg | |
a31777be | 121 | %{_datadir}/metainfo/io.github.pwr_solaar.solaar.metainfo.xml |
a31777be | 122 | /lib/udev/rules.d/42-logitech-unify-permissions.rules |