]> git.pld-linux.org Git - packages/gDesklets-GoodWeather.git/blob - gDesklets-GoodWeather.spec
- s/metha/meta (works with gDesklets-0.30)
[packages/gDesklets-GoodWeather.git] / gDesklets-GoodWeather.spec
1
2 %define pname   GoodWeather
3
4 Summary:        A sensor and display for displaying the current and forecasting weather information
5 Summary(pl):    Czujnik i wy¶wietlacz do pokazywania aktualnej informacji pogodowej oraz jej prognozowania
6 Name:           gDesklets-GoodWeather
7 Version:        0.4
8 Release:        1
9 License:        GPL2
10 Group:          X11/Applications
11 Source0:        http://gdesklets.gnomedesktop.org/files/%{pname}-%{version}.tar.bz2
12 # Source0-md5:  ad7851fed9de6f8adc35d522d5b08cdb
13 URL:            http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&gd_app_id=93
14 BuildRequires:  python >= 2.3
15 BuildRequires:  python-pygtk-gtk >= 1.99.14
16 Requires:       gDesklets
17 Provides:       gDesklets-display
18 Provides:       gDesklets-sensor
19 #Conflicts:     gDesklets-StarterKit
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _sensorsdir     %{_datadir}/gdesklets/Sensors
23 %define         _displaysdir    %{_datadir}/gdesklets/Displays
24
25 %description
26 This desklet (sensor/display) shows the current temperature, humidity,
27 sky, windchill temperature and a forecast of the next four days on
28 your desktop.
29
30 %description -l pl
31 Czujnik i wy¶wietlacz do pokazywania aktualnych informacji dotycz±cych
32 temperatury, wilgotno¶ci, zachmurzenia oraz si³y wiatru. Wy¶wietla
33 równie¿ informacje na temat pogody na najbli¿sze cztery dni.
34
35 %prep
36 %setup -q -n %{pname}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_sensorsdir},%{_displaysdir}/%{pname}}
41
42 ./Install_%{pname}_Sensor.bin --nomsg \
43         $RPM_BUILD_ROOT%{_sensorsdir}
44
45 cp -R gfx *.display $RPM_BUILD_ROOT%{_displaysdir}/%{pname}
46
47 %py_comp $RPM_BUILD_ROOT%{_sensorsdir}
48 %py_ocomp $RPM_BUILD_ROOT%{_sensorsdir}
49
50 rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README
58 %dir %{_sensorsdir}/%{pname}
59 %{_sensorsdir}/%{pname}/*.py*
60 %{_sensorsdir}/%{pname}/liquid
61 %{_sensorsdir}/%{pname}/weather.com
62 %{_sensorsdir}/%{pname}/um
63 %{_displaysdir}/*
This page took 0.073495 seconds and 3 git commands to generate.