]>
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 |
a31777be | 4 | Version: 1.0.6 |
8e482cf6 | 5 | Release: 3 |
c91b5b38 JR |
6 | License: GPL v2 |
7 | Group: Applications/System | |
8 | Source0: https://github.com/pwr/Solaar/archive/%{version}/%{name}-%{version}.tar.gz | |
a31777be | 9 | # Source0-md5: 0b8ba34ae8968a6f4f17d9311f5e54b6 |
c91b5b38 | 10 | URL: http://pwr.github.io/Solaar/ |
a31777be KM |
11 | BuildRequires: python3-dbus |
12 | BuildRequires: python3-distribute | |
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 | |
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} |
4311083c JR |
66 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/solaar/udev-rules.d/42-logitech-unify-permissions.rules $RPM_BUILD_ROOT/lib/udev/rules.d/ |
67 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/solaar/udev-rules.d | |
8e482cf6 | 68 | %find_lang %{name} |
c91b5b38 JR |
69 | |
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
a31777be | 73 | %post |
c91b5b38 JR |
74 | %update_icon_cache hicolor |
75 | ||
a31777be KM |
76 | %posttrans |
77 | # This is needed to apply permissions to existing devices when the package is installed. | |
78 | /bin/udevadm trigger --subsystem-match=hidraw --action=add | |
c91b5b38 | 79 | |
a31777be KM |
80 | %postun |
81 | %update_icon_cache hicolor | |
c91b5b38 | 82 | |
8e482cf6 | 83 | %files -f %{name}.lang |
c91b5b38 | 84 | %defattr(644,root,root,755) |
a31777be | 85 | %doc ChangeLog docs/* |
8e482cf6 | 86 | %attr(755,root,root) %{_bindir}/hidconsole |
c91b5b38 | 87 | %attr(755,root,root) %{_bindir}/solaar |
a31777be | 88 | %attr(755,root,root) %{_bindir}/solaar-cli |
4311083c JR |
89 | %dir %{py3_sitescriptdir}/hidapi |
90 | %{py3_sitescriptdir}/hidapi/*.py | |
91 | %dir %{py3_sitescriptdir}/hidapi/__pycache__ | |
92 | %{py3_sitescriptdir}/hidapi/__pycache__/*.pyc | |
93 | %dir %{py3_sitescriptdir}/logitech_receiver | |
94 | %{py3_sitescriptdir}/logitech_receiver/*.py | |
95 | %dir %{py3_sitescriptdir}/logitech_receiver/__pycache__ | |
96 | %{py3_sitescriptdir}/logitech_receiver/__pycache__/*.pyc | |
97 | %dir %{py3_sitescriptdir}/solaar | |
98 | %{py3_sitescriptdir}/solaar/*.py | |
99 | %dir %{py3_sitescriptdir}/solaar/__pycache__ | |
100 | %{py3_sitescriptdir}/solaar/__pycache__/*.pyc | |
101 | %dir %{py3_sitescriptdir}/solaar/cli | |
102 | %{py3_sitescriptdir}/solaar/cli/*.py | |
103 | %dir %{py3_sitescriptdir}/solaar/cli/__pycache__ | |
104 | %{py3_sitescriptdir}/solaar/cli/__pycache__/*.pyc | |
105 | %dir %{py3_sitescriptdir}/solaar/ui | |
106 | %{py3_sitescriptdir}/solaar/ui/*.py | |
107 | %dir %{py3_sitescriptdir}/solaar/ui/__pycache__ | |
108 | %{py3_sitescriptdir}/solaar/ui/__pycache__/*.pyc | |
109 | %{py3_sitescriptdir}/solaar-%{version}-py%{py3_ver}.egg-info | |
c91b5b38 JR |
110 | %{_datadir}/%{name} |
111 | %{_desktopdir}/solaar.desktop | |
112 | %{_iconsdir}/hicolor/scalable/apps/solaar.svg | |
a31777be | 113 | %{_datadir}/metainfo/io.github.pwr_solaar.solaar.metainfo.xml |
a31777be | 114 | /lib/udev/rules.d/42-logitech-unify-permissions.rules |