]> git.pld-linux.org Git - packages/solaar.git/blame - solaar.spec
C encoding
[packages/solaar.git] / solaar.spec
CommitLineData
c91b5b38
JR
1Summary: Linux devices manager for the Logitech Unifying Receiver
2Name: solaar
3Version: 0.9.2
4Release: 1
5License: GPL v2
6Group: Applications/System
7Source0: https://github.com/pwr/Solaar/archive/%{version}/%{name}-%{version}.tar.gz
8# Source0-md5: 2a6ea17150cf030b09ff802cb454358b
9URL: http://pwr.github.io/Solaar/
10BuildRequires: python-distribute
11BuildRequires: rpm-pythonprov
12BuildRequires: rpmbuild(macros) >= 1.219
13Requires: python-modules
14Requires: python-dbus
15Requires: python-pyudev
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
3e6769c5 19Solaar is a Linux device manager for Logitech's Unifying Receiver
c91b5b38
JR
20peripherals. It is able to pair/unpair devices to the receiver, and
21for most devices read battery status.
22
23It comes in two flavors, command-line and GUI. Both are able to list
24the devices paired to a Unifying Receiver, show detailed info for each
25device, and also pair/unpair supported devices with the receiver.
26
27%package gui
28Summary: GUI for Solaar
29Group: X11/Applications
30Requires: python-pygobject
31Requires: %{name} = %{version}-%{release}
32Requires(post,postun): gtk-update-icon-cache
33Requires(post,postun): hicolor-icon-theme
34
35%description gui
36Solaar is a Linux device manager for Logitech’s Unifying Receiver
37peripherals. It is able to pair/unpair devices to the receiver, and
38for most devices read battery status.
39
40It comes in two flavors, command-line and GUI. Both are able to list
41the devices paired to a Unifying Receiver, show detailed info for each
42device, 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
51rm -rf $RPM_BUILD_ROOT
52install -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
62rm -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]
This page took 0.119142 seconds and 4 git commands to generate.