]>
Commit | Line | Data |
---|---|---|
5b77e407 | 1 | |
118033e4 | 2 | %define pname GoodWeather |
5b77e407 | 3 | |
cb408129 | 4 | Summary: A sensor and display for displaying the current and forecasting weather information |
d97f25d3 | 5 | Summary(pl.UTF-8): Czujnik i wyświetlacz do pokazywania aktualnej informacji pogodowej oraz jej prognozowania |
004f15b0 | 6 | Name: gDesklets-GoodWeather |
cb408129 | 7 | Version: 0.4 |
e1faf9c5 | 8 | Release: 3 |
f1feb4ce | 9 | License: GPL v2 |
cb408129 | 10 | Group: X11/Applications |
11 | Source0: http://gdesklets.gnomedesktop.org/files/%{pname}-%{version}.tar.bz2 | |
12 | # Source0-md5: ad7851fed9de6f8adc35d522d5b08cdb | |
5501a759 | 13 | Patch0: %{name}-metatag.patch |
cb408129 | 14 | URL: http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&gd_app_id=93 |
e1faf9c5 | 15 | BuildRequires: python >= 1:2.3 |
cb408129 | 16 | BuildRequires: python-pygtk-gtk >= 1.99.14 |
17 | Requires: gDesklets | |
e1faf9c5 | 18 | %pyrequires_eq python-libs |
cb408129 | 19 | Provides: gDesklets-display |
20 | Provides: gDesklets-sensor | |
21 | #Conflicts: gDesklets-StarterKit | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
5b77e407 | 24 | %define _sensorsdir %{_datadir}/gdesklets/Sensors |
25 | %define _displaysdir %{_datadir}/gdesklets/Displays | |
cb408129 | 26 | |
27 | %description | |
278da0af | 28 | This desklet (sensor/display) shows the current temperature, humidity, |
29 | sky, windchill temperature and a forecast of the next four days on | |
30 | your desktop. | |
cb408129 | 31 | |
1fe61574 JR |
32 | %description -l pl.UTF-8 |
33 | Czujnik i wyświetlacz do pokazywania aktualnych informacji dotyczących | |
34 | temperatury, wilgotności, zachmurzenia oraz siły wiatru. Wyświetla | |
35 | również informacje na temat pogody na najbliższe cztery dni. | |
cb408129 | 36 | |
37 | %prep | |
38 | %setup -q -n %{pname} | |
5501a759 | 39 | %patch0 -p1 |
cb408129 | 40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | install -d $RPM_BUILD_ROOT{%{_sensorsdir},%{_displaysdir}/%{pname}} | |
44 | ||
45 | ./Install_%{pname}_Sensor.bin --nomsg \ | |
46 | $RPM_BUILD_ROOT%{_sensorsdir} | |
47 | ||
48 | cp -R gfx *.display $RPM_BUILD_ROOT%{_displaysdir}/%{pname} | |
49 | ||
cb408129 | 50 | %py_comp $RPM_BUILD_ROOT%{_sensorsdir} |
51 | %py_ocomp $RPM_BUILD_ROOT%{_sensorsdir} | |
52 | ||
53 | rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc README | |
61 | %dir %{_sensorsdir}/%{pname} | |
cb408129 | 62 | %{_sensorsdir}/%{pname}/*.py* |
63 | %{_sensorsdir}/%{pname}/liquid | |
64 | %{_sensorsdir}/%{pname}/weather.com | |
65 | %{_sensorsdir}/%{pname}/um | |
66 | %{_displaysdir}/* |