From: grzegol Date: Sun, 17 Aug 2003 20:55:56 +0000 (+0000) Subject: - new X-Git-Tag: auto/ac/gDesklets-Weather-0_22-1~6 X-Git-Url: http://git.pld-linux.org/?p=packages%2FgDesklets-Weather.git;a=commitdiff_plain;h=938ca24ff411db3cf234162111031e7efbf4cff0 - new Changed files: gDesklets-Weather.spec -> 1.1 --- 938ca24ff411db3cf234162111031e7efbf4cff0 diff --git a/gDesklets-Weather.spec b/gDesklets-Weather.spec new file mode 100644 index 0000000..0c0351e --- /dev/null +++ b/gDesklets-Weather.spec @@ -0,0 +1,56 @@ +%define pname Weather +Summary: A sensor and display for displaying the current weather information +Summary(pl): Czujnik i wy¶wietlacz do wy¶wietlania aktualnej informacji pogodowej +Name: gDesklets-%{pname} +Version: 0.2 +Release: 1 +License: GPL +Group: X11/Applications +Source0: http://www.pycage.de/download/gdesklets/weather-desklet-%{version}.tar.bz2 +# Source0-md5: 44ab42e910ef0c06c2bf1215b4e077a3 +URL: http://www.pycage.de/software_gdesklets.html +Buildrequires: python >= 2.3 +Buildrequires: python-pygtk-devel >= 1.99.14 +Requires: gDesklets +Conflicts: gDesklets-StarterKit +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _sensorsdir %{_datadir}/gdesklets/Sensors +%define _displaysdir %{_datadir}/gdesklets/Displays + +%description +A sensor and display for displaying the current weather information. +It can retrieve information for many countries of the world. + +%description -l pl +Czujnik i wy¶wietlacz do wy¶wietlania aktualnej informacji pogodowej. +Mo¿e zbieraæ informacje dla wielu krajów ¶wiata. + +%prep +%setup -q -n weather-desklet-%{version} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_sensorsdir},%{_displaysdir}/%{pname}} + +./Install_%{pname}_Sensor.bin --nomsg \ + $RPM_BUILD_ROOT%{_sensorsdir} + +cp -R gfx *.display $RPM_BUILD_ROOT%{_displaysdir}/%{pname} + +rm -rf $RPM_BUILD_ROOT%{_sensorsdir}/%{pname}/{.*~,icons/.xvpics,po} +find $RPM_BUILD_ROOT%{_sensorsdir}/%{pname} -name "CVS" |xargs rm -rf + +%py_comp $RPM_BUILD_ROOT%{_sensorsdir} +%py_ocomp $RPM_BUILD_ROOT%{_sensorsdir} + +rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README +%{_sensorsdir}/* +%{_displaysdir}/*