2 Summary: A sensor and display for displaying the current weather information
3 Summary(pl): Czujnik i wy¶wietlacz do wy¶wietlania aktualnej informacji pogodowej
4 Name: gDesklets-%{pname}
8 Group: X11/Applications
9 Source0: http://www.pycage.de/download/gdesklets/weather-desklet-%{version}.tar.bz2
10 # Source0-md5: 44ab42e910ef0c06c2bf1215b4e077a3
11 URL: http://www.pycage.de/software_gdesklets.html
12 Buildrequires: python >= 2.3
13 Buildrequires: python-pygtk-devel >= 1.99.14
15 Conflicts: gDesklets-StarterKit
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _sensorsdir %{_datadir}/gdesklets/Sensors
19 %define _displaysdir %{_datadir}/gdesklets/Displays
22 A sensor and display for displaying the current weather information.
23 It can retrieve information for many countries of the world.
26 Czujnik i wy¶wietlacz do wy¶wietlania aktualnej informacji pogodowej.
27 Mo¿e zbieraæ informacje dla wielu krajów ¶wiata.
30 %setup -q -n weather-desklet-%{version}
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_sensorsdir},%{_displaysdir}/%{pname}}
36 ./Install_%{pname}_Sensor.bin --nomsg \
37 $RPM_BUILD_ROOT%{_sensorsdir}
39 cp -R gfx *.display $RPM_BUILD_ROOT%{_displaysdir}/%{pname}
41 rm -rf $RPM_BUILD_ROOT%{_sensorsdir}/%{pname}/{.*~,icons/.xvpics,po}
42 find $RPM_BUILD_ROOT%{_sensorsdir}/%{pname} -name "CVS" |xargs rm -rf
44 %py_comp $RPM_BUILD_ROOT%{_sensorsdir}
45 %py_ocomp $RPM_BUILD_ROOT%{_sensorsdir}
47 rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)