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