]> git.pld-linux.org Git - SPECS.git/blob - phpweather.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / phpweather.spec
1 # TODO:
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
5 Name:           phpweather
6 Version:        2.2.2
7 Release:        1
8 License:        GPL v2
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/
13 Requires:       webserver
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _phpdir /home/services/httpd/html/phpweather
18
19 %description
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.
27
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.
36
37 %prep
38 %setup -q
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_phpdir}/{config,db/files,doc,icons,output},%{_sysconfdir}/httpd/%{name}}
43
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:
52 #install doc/
53 install icons/*.gif     $RPM_BUILD_ROOT%{_phpdir}/icons
54 install output/*.php    $RPM_BUILD_ROOT%{_phpdir}/output
55
56 touch $RPM_BUILD_ROOT%{_sysconfdir}/httpd/%{name}/defaults.php
57 ln -s %{_sysconfdir}/httpd/%{name}/defaults.php $RPM_BUILD_ROOT%{_phpdir}/defaults.php
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
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}
67 %dir %{_phpdir}
68 %dir %{_phpdir}/config
69 %dir %{_phpdir}/db
70 %dir %{_phpdir}/db/files
71 %dir %{_phpdir}/doc
72 %dir %{_phpdir}/icons
73 %dir %{_phpdir}/output
74 %{_phpdir}/*.php
75 %{_phpdir}/*.css
76 %{_phpdir}/*.csv
77 %{_phpdir}/config/*.php
78 %{_phpdir}/db/*.php
79 %{_phpdir}/db/files/*
80 %{_phpdir}/doc/*.html
81 %{_phpdir}/icons/*.gif
82 %{_phpdir}/output/*.php
This page took 0.26062 seconds and 3 git commands to generate.