]> git.pld-linux.org Git - packages/gDesklets-Weather.git/blob - gDesklets-Weather.spec
0c0351e14291fc3ca4a55bc4f22bfde3af90f134
[packages/gDesklets-Weather.git] / gDesklets-Weather.spec
1 %define pname   Weather
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}
5 Version:        0.2
6 Release:        1
7 License:        GPL
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
14 Requires:       gDesklets
15 Conflicts:      gDesklets-StarterKit
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define _sensorsdir     %{_datadir}/gdesklets/Sensors
19 %define _displaysdir    %{_datadir}/gdesklets/Displays
20
21 %description
22 A sensor and display for displaying the current weather information.
23 It can retrieve information for many countries of the world.
24
25 %description -l pl
26 Czujnik i wy¶wietlacz do wy¶wietlania aktualnej informacji pogodowej.
27 Mo¿e zbieraæ informacje dla wielu krajów ¶wiata.
28
29 %prep
30 %setup -q -n weather-desklet-%{version}
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_sensorsdir},%{_displaysdir}/%{pname}}
35
36 ./Install_%{pname}_Sensor.bin --nomsg \
37         $RPM_BUILD_ROOT%{_sensorsdir}
38
39 cp -R gfx *.display $RPM_BUILD_ROOT%{_displaysdir}/%{pname}
40
41 rm -rf $RPM_BUILD_ROOT%{_sensorsdir}/%{pname}/{.*~,icons/.xvpics,po}
42 find $RPM_BUILD_ROOT%{_sensorsdir}/%{pname} -name "CVS" |xargs rm -rf
43
44 %py_comp $RPM_BUILD_ROOT%{_sensorsdir}
45 %py_ocomp $RPM_BUILD_ROOT%{_sensorsdir}
46
47 rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc README
55 %{_sensorsdir}/*
56 %{_displaysdir}/*
This page took 0.047458 seconds and 2 git commands to generate.