]>
Commit | Line | Data |
---|---|---|
c91b5b38 JR |
1 | Summary: Linux devices manager for the Logitech Unifying Receiver |
2 | Name: solaar | |
3 | Version: 0.9.2 | |
4 | Release: 1 | |
5 | License: GPL v2 | |
6 | Group: Applications/System | |
7 | Source0: https://github.com/pwr/Solaar/archive/%{version}/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 2a6ea17150cf030b09ff802cb454358b | |
9 | URL: http://pwr.github.io/Solaar/ | |
10 | BuildRequires: python-distribute | |
11 | BuildRequires: rpm-pythonprov | |
12 | BuildRequires: rpmbuild(macros) >= 1.219 | |
13 | Requires: python-modules | |
14 | Requires: python-dbus | |
15 | Requires: python-pyudev | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
3e6769c5 | 19 | Solaar is a Linux device manager for Logitech's Unifying Receiver |
c91b5b38 JR |
20 | peripherals. It is able to pair/unpair devices to the receiver, and |
21 | for most devices read battery status. | |
22 | ||
23 | It comes in two flavors, command-line and GUI. Both are able to list | |
24 | the devices paired to a Unifying Receiver, show detailed info for each | |
25 | device, and also pair/unpair supported devices with the receiver. | |
26 | ||
27 | %package gui | |
28 | Summary: GUI for Solaar | |
29 | Group: X11/Applications | |
30 | Requires: python-pygobject | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | Requires(post,postun): gtk-update-icon-cache | |
33 | Requires(post,postun): hicolor-icon-theme | |
34 | ||
35 | %description gui | |
36 | Solaar is a Linux device manager for Logitech’s Unifying Receiver | |
37 | peripherals. It is able to pair/unpair devices to the receiver, and | |
38 | for most devices read battery status. | |
39 | ||
40 | It comes in two flavors, command-line and GUI. Both are able to list | |
41 | the devices paired to a Unifying Receiver, show detailed info for each | |
42 | device, and also pair/unpair supported devices with the receiver. | |
43 | ||
44 | %prep | |
45 | %setup -q -n Solaar-%{version} | |
46 | ||
47 | %build | |
48 | %{__python} setup.py build | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT | |
53 | ||
54 | %{__python} setup.py \ | |
55 | install --skip-build \ | |
56 | --optimize=2 \ | |
57 | --root=$RPM_BUILD_ROOT | |
58 | ||
59 | %py_postclean | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post gui | |
65 | %update_icon_cache hicolor | |
66 | ||
67 | %postun gui | |
68 | %update_icon_cache hicolor | |
69 | ||
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %doc ChangeLog README.md docs/* | |
74 | %attr(755,root,root) %{_bindir}/solaar-cli | |
75 | %dir %{py_sitescriptdir}/hidapi | |
76 | %{py_sitescriptdir}/hidapi/*.py[co] | |
77 | %dir %{py_sitescriptdir}/logitech_receiver | |
78 | %{py_sitescriptdir}/logitech_receiver/*.py[co] | |
79 | %dir %{py_sitescriptdir}/solaar | |
80 | %{py_sitescriptdir}/solaar/*.py[co] | |
81 | %exclude %{py_sitescriptdir}/solaar/gtk.py[co] | |
82 | %if "%{py_ver}" > "2.4" | |
83 | %{py_sitescriptdir}/solaar-0.9.2-py2.7.egg-info | |
84 | %endif | |
85 | ||
86 | %files gui | |
87 | %defattr(644,root,root,755) | |
88 | /etc/xdg/autostart/solaar.desktop | |
89 | %attr(755,root,root) %{_bindir}/solaar | |
90 | %{_datadir}/%{name} | |
91 | %{_desktopdir}/solaar.desktop | |
92 | %{_iconsdir}/hicolor/scalable/apps/solaar.svg | |
93 | %{py_sitescriptdir}/solaar/gtk.py[co] | |
94 | %dir %{py_sitescriptdir}/solaar/ui | |
95 | %{py_sitescriptdir}/solaar/ui/*.py[co] |