]>
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 |
30280372 KM |
4 | Version: 1.1.3 |
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 |
30280372 | 9 | # Source0-md5: 03f1c123c4506c48802da93e94f0f509 |
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 |
30280372 | 17 | BuildRequires: gettext-tools |
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 | |
8e482cf6 | 70 | %find_lang %{name} |
c91b5b38 JR |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
a31777be | 75 | %post |
c91b5b38 JR |
76 | %update_icon_cache hicolor |
77 | ||
a31777be KM |
78 | %posttrans |
79 | # This is needed to apply permissions to existing devices when the package is installed. | |
80 | /bin/udevadm trigger --subsystem-match=hidraw --action=add | |
c91b5b38 | 81 | |
a31777be KM |
82 | %postun |
83 | %update_icon_cache hicolor | |
c91b5b38 | 84 | |
8e482cf6 | 85 | %files -f %{name}.lang |
c91b5b38 | 86 | %defattr(644,root,root,755) |
30280372 | 87 | %doc ChangeLog.md docs/* |
8e482cf6 | 88 | %attr(755,root,root) %{_bindir}/hidconsole |
c91b5b38 | 89 | %attr(755,root,root) %{_bindir}/solaar |
a31777be | 90 | %attr(755,root,root) %{_bindir}/solaar-cli |
117a917d | 91 | /etc/xdg/autostart/solaar.desktop |
4311083c JR |
92 | %dir %{py3_sitescriptdir}/hidapi |
93 | %{py3_sitescriptdir}/hidapi/*.py | |
94 | %dir %{py3_sitescriptdir}/hidapi/__pycache__ | |
95 | %{py3_sitescriptdir}/hidapi/__pycache__/*.pyc | |
117fa076 KM |
96 | %dir %{py3_sitescriptdir}/keysyms |
97 | %{py3_sitescriptdir}/keysyms/*.py | |
98 | %dir %{py3_sitescriptdir}/keysyms/__pycache__ | |
99 | %{py3_sitescriptdir}/keysyms/__pycache__/*.pyc | |
4311083c JR |
100 | %dir %{py3_sitescriptdir}/logitech_receiver |
101 | %{py3_sitescriptdir}/logitech_receiver/*.py | |
102 | %dir %{py3_sitescriptdir}/logitech_receiver/__pycache__ | |
103 | %{py3_sitescriptdir}/logitech_receiver/__pycache__/*.pyc | |
104 | %dir %{py3_sitescriptdir}/solaar | |
105 | %{py3_sitescriptdir}/solaar/*.py | |
106 | %dir %{py3_sitescriptdir}/solaar/__pycache__ | |
107 | %{py3_sitescriptdir}/solaar/__pycache__/*.pyc | |
108 | %dir %{py3_sitescriptdir}/solaar/cli | |
109 | %{py3_sitescriptdir}/solaar/cli/*.py | |
110 | %dir %{py3_sitescriptdir}/solaar/cli/__pycache__ | |
111 | %{py3_sitescriptdir}/solaar/cli/__pycache__/*.pyc | |
112 | %dir %{py3_sitescriptdir}/solaar/ui | |
113 | %{py3_sitescriptdir}/solaar/ui/*.py | |
114 | %dir %{py3_sitescriptdir}/solaar/ui/__pycache__ | |
115 | %{py3_sitescriptdir}/solaar/ui/__pycache__/*.pyc | |
116 | %{py3_sitescriptdir}/solaar-%{version}-py%{py3_ver}.egg-info | |
c91b5b38 JR |
117 | %{_datadir}/%{name} |
118 | %{_desktopdir}/solaar.desktop | |
119 | %{_iconsdir}/hicolor/scalable/apps/solaar.svg | |
a31777be | 120 | %{_datadir}/metainfo/io.github.pwr_solaar.solaar.metainfo.xml |
a31777be | 121 | /lib/udev/rules.d/42-logitech-unify-permissions.rules |