- formatting
[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 pokazywania aktualnej informacji pogodowej
4 Name:           gDesklets-%{pname}
5 Version:        0.24
6 Release:        2
7 License:        GPL
8 Group:          X11/Applications
9 Source0:        http://gdesklets.gnomedesktop.org/files/weather-desklet-%{version}.tar.bz2
10 # Source0-md5:  f10d7cdb043b9f461a52e5d1226ddbdf
11 URL:            http://gdesklets.gnomedesktop.org/
12 BuildRequires:  python >= 2.3
13 BuildRequires:  python-pygtk-gtk >= 1.99.14
14 Requires:       gDesklets
15 Provides:       gDesklets-display
16 Provides:       gDesklets-sensor
17 Conflicts:      gDesklets-StarterKit
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _sensorsdir     %{_datadir}/gdesklets/Sensors
21 %define         _displaysdir    %{_datadir}/gdesklets/Displays
22
23 %description
24 A sensor and display for displaying the current weather information.
25 It can retrieve information for many countries of the world.
26
27 %description -l pl
28 Czujnik i wy¶wietlacz do pokazywania aktualnej informacji pogodowej.
29 Mo¿e zbieraæ informacje dla wielu krajów ¶wiata.
30
31 %prep
32 %setup -q -n weather-desklet-%{version}
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_sensorsdir},%{_displaysdir}/%{pname}}
37
38 ./Install_%{pname}_Sensor.bin --nomsg \
39         $RPM_BUILD_ROOT%{_sensorsdir}
40
41 cp -R gfx *.display $RPM_BUILD_ROOT%{_displaysdir}/%{pname}
42
43 rm -rf $RPM_BUILD_ROOT%{_sensorsdir}/%{pname}/{.*~,icons/.xvpics,po}
44 find $RPM_BUILD_ROOT%{_sensorsdir}/%{pname} -name "CVS" |xargs rm -rf
45
46 %py_comp $RPM_BUILD_ROOT%{_sensorsdir}
47 %py_ocomp $RPM_BUILD_ROOT%{_sensorsdir}
48
49 rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc README
57 %dir %{_sensorsdir}/%{pname}
58 %dir %{_sensorsdir}/%{pname}/locale
59 %{_sensorsdir}/%{pname}/icons
60 %{_sensorsdir}/%{pname}/*.py[co]
61 %{_sensorsdir}/%{pname}/ChangeLog
62 %{_displaysdir}/*
This page took 0.056003 seconds and 3 git commands to generate.