2 # - apache configuration, relocation to /usr/share
3 Summary: Shows the current weather conditions on your Web page
4 Summary(pl.UTF-8): Pokazywanie aktualnej pogody na stronie WWW
9 Group: Applications/WWW
10 Source0: http://dl.sourceforge.net/phpweather/%{name}-%{version}.tar.bz2
11 # Source0-md5: 9294a521eb4f8d3c816f51446475ad7a
12 URL: http://phpweather.sourceforge.net/
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _phpdir /home/services/httpd/html/phpweather
20 PHP Weather makes it easy to show the current weather on your Web
21 page. PHP Weather retrieves the latest METAR (weather) report and
22 converts this format into both imperial and metric units, caches the
23 data in a MySQL, PostgreSQL, or DBA database for fast retrieval, and
24 makes it easily available in PHP scripts. You can display the data in
25 several languages by using the included translations. You can also
26 access the information with a WAP-enabled mobile phone.
28 %description -l pl.UTF-8
29 PHP Weather ułatwia pokazywanie aktualnej pogody na stronie WWW.
30 Program pobiera ostatni raport pogodowy METAR i konwertuje jego format
31 na jednostki zarówno imperialne, jak i metryczne, zapamiętuje dane w
32 bazie MySQL, PostgreSQL lub DBA w celu szybkiego odczytywania i czyni
33 je łatwo dostępne dla skryptów PHP. Można wyświetlać dane w kilku
34 językach używając załączonych tłumaczeń. Można także dostać się do
35 tych informacji przy użyciu telefonu komórkowego z obsługą WAP.
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_phpdir}/{config,db/files,doc,icons,output},%{_sysconfdir}/httpd/%{name}}
44 install *.php $RPM_BUILD_ROOT%{_phpdir}
45 install *.css $RPM_BUILD_ROOT%{_phpdir}
46 install *.csv $RPM_BUILD_ROOT%{_phpdir}
47 install config/*.php $RPM_BUILD_ROOT%{_phpdir}/config
48 install db/*.php $RPM_BUILD_ROOT%{_phpdir}/db
49 install db/files/* $RPM_BUILD_ROOT%{_phpdir}/db/files
50 install doc/*.html $RPM_BUILD_ROOT%{_phpdir}/doc
51 # info page to install:
53 install icons/*.gif $RPM_BUILD_ROOT%{_phpdir}/icons
54 install output/*.php $RPM_BUILD_ROOT%{_phpdir}/output
56 touch $RPM_BUILD_ROOT%{_sysconfdir}/httpd/%{name}/defaults.php
57 ln -s %{_sysconfdir}/httpd/%{name}/defaults.php $RPM_BUILD_ROOT%{_phpdir}/defaults.php
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc AUTHORS README ChangeLog doc/*.{pdf,txt}
65 %config(noreplace) %{_sysconfdir}/httpd/%{name}/defaults.php
66 %dir %{_sysconfdir}/httpd/%{name}
68 %dir %{_phpdir}/config
70 %dir %{_phpdir}/db/files
73 %dir %{_phpdir}/output
77 %{_phpdir}/config/*.php
81 %{_phpdir}/icons/*.gif
82 %{_phpdir}/output/*.php