]>
Commit | Line | Data |
---|---|---|
15f827a9 | 1 | %define pname DisplayConstraints |
2 | %define fname displayconstraints | |
27ea3072 | 3 | Summary: This sensor allows a user to set maximum constraints on a display |
abc3aebd | 4 | Summary(pl.UTF-8): Ten czujnik pozwala na ustawienie maksymalnych rozmiarów wyświetlacza |
27ea3072 | 5 | Name: gDesklets-%{pname} |
6 | Version: 0.1.0 | |
1ff768e2 | 7 | Release: 3 |
27ea3072 | 8 | License: GPL |
9 | Group: X11/Applications | |
10 | Source0: http://gdesklets.gnomedesktop.org/files/%{fname}-%{version}.tar.bz2 | |
11 | # Source0-md5: a36a563797dfd8c8f112323300661d02 | |
12 | URL: http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&gd_app_id=61 | |
1ff768e2 | 13 | BuildRequires: python >= 1:2.3 |
c6cea6aa | 14 | BuildRequires: python-pygtk-gtk >= 1.99.18 |
27ea3072 | 15 | Requires: gDesklets |
1ff768e2 | 16 | %pyrequires_eq python-libs |
27ea3072 | 17 | Provides: gDesklets-sensor |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
15f827a9 | 20 | %define _sensorsdir %{_datadir}/gdesklets/Sensors |
27ea3072 | 21 | |
22 | %description | |
23 | This sensor allows a user to set maximum constraints on a display. | |
24 | ||
d24548ed JR |
25 | %description -l pl.UTF-8 |
26 | Ten czujnik pozwala na ustawienie maksymalnych rozmiarów wyświetlacza. | |
27ea3072 | 27 | |
28 | %prep | |
29 | %setup -q -n %{pname}-%{version} | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT%{_sensorsdir} | |
34 | ||
35 | ./Install_%{pname}_Sensor.bin --nomsg \ | |
36 | $RPM_BUILD_ROOT%{_sensorsdir} | |
37 | ||
38 | %py_comp $RPM_BUILD_ROOT%{_sensorsdir} | |
39 | %py_ocomp $RPM_BUILD_ROOT%{_sensorsdir} | |
40 | ||
41 | rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc %{pname}/README | |
49 | %{_sensorsdir}/* |