]> git.pld-linux.org Git - packages/gDesklets-GoodWeather.git/blob - gDesklets-GoodWeather.spec
- initial
[packages/gDesklets-GoodWeather.git] / gDesklets-GoodWeather.spec
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}
5 Version:        0.4
6 Release:        1
7 License:        GPL2
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
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 This desklet (sensor/display) shows the current temperature, humidity, sky, windchill temperature and a forecast of the next four days on your desktop.
25
26 %description -l pl
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.
29
30 %prep
31 %setup -q -n %{pname}
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_sensorsdir},%{_displaysdir}/%{pname}}
36
37 ./Install_%{pname}_Sensor.bin --nomsg \
38         $RPM_BUILD_ROOT%{_sensorsdir}
39
40 cp -R gfx *.display $RPM_BUILD_ROOT%{_displaysdir}/%{pname}
41
42
43 %py_comp $RPM_BUILD_ROOT%{_sensorsdir}
44 %py_ocomp $RPM_BUILD_ROOT%{_sensorsdir}
45
46 rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc README
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
62 %{_displaysdir}/*
This page took 0.127882 seconds and 3 git commands to generate.