From: krolik Date: Thu, 12 Aug 2004 10:16:19 +0000 (+0000) Subject: - initial X-Git-Tag: auto/ac/gDesklets-GoodWeather-0_4-2~6 X-Git-Url: http://git.pld-linux.org/?p=packages%2FgDesklets-GoodWeather.git;a=commitdiff_plain;h=cb40812935dbc1a5e97fef1091f2b64ff724ded0 - initial Changed files: gDesklets-GoodWeather.spec -> 1.1 --- cb40812935dbc1a5e97fef1091f2b64ff724ded0 diff --git a/gDesklets-GoodWeather.spec b/gDesklets-GoodWeather.spec new file mode 100644 index 0000000..409a0dd --- /dev/null +++ b/gDesklets-GoodWeather.spec @@ -0,0 +1,62 @@ +%define pname GoodWeather +Summary: A sensor and display for displaying the current and forecasting weather information +Summary(pl): Czujnik i wy¶wietlacz do pokazywania aktualnej informacji pogodowej oraz jej prognozowania +Name: gDesklets-%{pname} +Version: 0.4 +Release: 1 +License: GPL2 +Group: X11/Applications +Source0: http://gdesklets.gnomedesktop.org/files/%{pname}-%{version}.tar.bz2 +# Source0-md5: ad7851fed9de6f8adc35d522d5b08cdb +URL: http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&gd_app_id=93 +BuildRequires: python >= 2.3 +BuildRequires: python-pygtk-gtk >= 1.99.14 +Requires: gDesklets +Provides: gDesklets-display +Provides: gDesklets-sensor +#Conflicts: gDesklets-StarterKit +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _sensorsdir %{_datadir}/gdesklets/Sensors +%define _displaysdir %{_datadir}/gdesklets/Displays + +%description +This desklet (sensor/display) shows the current temperature, humidity, sky, windchill temperature and a forecast of the next four days on your desktop. + +%description -l pl +Czujnik i wy¶wietlacz do pokazywania aktualnej informacji na temat temperatury wilgotno¶ci, zachmurzeniu +oraz sile wiatru. Wy¶wietla równie¿ informacje na temat pogody na najbli¿sze cztery dni. + +%prep +%setup -q -n %{pname} + +%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} + + +%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 +%dir %{_sensorsdir}/%{pname} +%dir %{_sensorsdir}/%{pname}/liquid/*/* +%dir %{_sensorsdir}/%{pname}/weather.com/*/* +%dir %{_sensorsdir}/%{pname}/um/*/* +%{_sensorsdir}/%{pname}/*.py* +%{_sensorsdir}/%{pname}/liquid +%{_sensorsdir}/%{pname}/weather.com +%{_sensorsdir}/%{pname}/um +%{_displaysdir}/*