2 %define pname GoodWeather
4 Summary: A sensor and display for displaying the current and forecasting weather information
5 Summary(pl.UTF-8): Czujnik i wyświetlacz do pokazywania aktualnej informacji pogodowej oraz jej prognozowania
6 Name: gDesklets-GoodWeather
10 Group: X11/Applications
11 Source0: http://gdesklets.gnomedesktop.org/files/%{pname}-%{version}.tar.bz2
12 # Source0-md5: ad7851fed9de6f8adc35d522d5b08cdb
13 Patch0: %{name}-metatag.patch
14 URL: http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&gd_app_id=93
15 BuildRequires: python >= 1:2.3
16 BuildRequires: python-pygtk-gtk >= 1.99.14
18 %pyrequires_eq python-libs
19 Provides: gDesklets-display
20 Provides: gDesklets-sensor
21 #Conflicts: gDesklets-StarterKit
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _sensorsdir %{_datadir}/gdesklets/Sensors
25 %define _displaysdir %{_datadir}/gdesklets/Displays
28 This desklet (sensor/display) shows the current temperature, humidity,
29 sky, windchill temperature and a forecast of the next four days on
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.
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_sensorsdir},%{_displaysdir}/%{pname}}
45 ./Install_%{pname}_Sensor.bin --nomsg \
46 $RPM_BUILD_ROOT%{_sensorsdir}
48 cp -R gfx *.display $RPM_BUILD_ROOT%{_displaysdir}/%{pname}
50 %py_comp $RPM_BUILD_ROOT%{_sensorsdir}
51 %py_ocomp $RPM_BUILD_ROOT%{_sensorsdir}
53 rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %dir %{_sensorsdir}/%{pname}
62 %{_sensorsdir}/%{pname}/*.py*
63 %{_sensorsdir}/%{pname}/liquid
64 %{_sensorsdir}/%{pname}/weather.com
65 %{_sensorsdir}/%{pname}/um