1 %define pname GoodWeather
2 Summary: A sensor and display for displaying the current and forecasting weather information
3 Summary(pl): Czujnik i wy¶wietlacz do pokazywania aktualnej informacji pogodowej oraz jej prognozowania
4 Name: gDesklets-%{pname}
8 Group: X11/Applications
9 Source0: http://gdesklets.gnomedesktop.org/files/%{pname}-%{version}.tar.bz2
10 # Source0-md5: ad7851fed9de6f8adc35d522d5b08cdb
11 URL: http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&gd_app_id=93
12 BuildRequires: python >= 2.3
13 BuildRequires: python-pygtk-gtk >= 1.99.14
15 Provides: gDesklets-display
16 Provides: gDesklets-sensor
17 #Conflicts: gDesklets-StarterKit
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _sensorsdir %{_datadir}/gdesklets/Sensors
21 %define _displaysdir %{_datadir}/gdesklets/Displays
24 This desklet (sensor/display) shows the current temperature, humidity, sky, windchill temperature and a forecast of the next four days on your desktop.
27 Czujnik i wy¶wietlacz do pokazywania aktualnej informacji na temat temperatury wilgotno¶ci, zachmurzeniu
28 oraz sile wiatru. Wy¶wietla równie¿ informacje na temat pogody na najbli¿sze cztery dni.
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_sensorsdir},%{_displaysdir}/%{pname}}
37 ./Install_%{pname}_Sensor.bin --nomsg \
38 $RPM_BUILD_ROOT%{_sensorsdir}
40 cp -R gfx *.display $RPM_BUILD_ROOT%{_displaysdir}/%{pname}
43 %py_comp $RPM_BUILD_ROOT%{_sensorsdir}
44 %py_ocomp $RPM_BUILD_ROOT%{_sensorsdir}
46 rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %dir %{_sensorsdir}/%{pname}
55 %dir %{_sensorsdir}/%{pname}/liquid/*/*
56 %dir %{_sensorsdir}/%{pname}/weather.com/*/*
57 %dir %{_sensorsdir}/%{pname}/um/*/*
58 %{_sensorsdir}/%{pname}/*.py*
59 %{_sensorsdir}/%{pname}/liquid
60 %{_sensorsdir}/%{pname}/weather.com
61 %{_sensorsdir}/%{pname}/um