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