]>
Commit | Line | Data |
---|---|---|
d6396bb5 | 1 | %include /usr/lib/rpm/macros.php |
48db5f76 | 2 | %define _class Services |
3 | %define _subclass Weather | |
bd0aaf54 | 4 | %define _status stable |
d6396bb5 | 5 | %define _pearname %{_class}_%{_subclass} |
48db5f76 | 6 | Summary: %{_pearname} - an interface to various online weather-services |
e51dfb4d | 7 | Summary(pl.UTF-8): %{_pearname} - interfejs do różnych serwisów pogodowych |
d6396bb5 | 8 | Name: php-pear-%{_pearname} |
d80e8093 | 9 | Version: 1.4.5 |
0068281f | 10 | Release: 2 |
d6396bb5 AG |
11 | License: PHP 2.02 |
12 | Group: Development/Languages/PHP | |
bd0aaf54 | 13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz |
d80e8093 | 14 | # Source0-md5: 3afb9f4e38d9f129c05fbe1952f2d6ee |
d6396bb5 | 15 | URL: http://pear.php.net/package/Services_Wheather/ |
0068281f | 16 | BuildRequires: php-pear-PEAR >= 1:1.4.0 |
f28e9176 | 17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
e14adfe5 | 18 | BuildRequires: rpmbuild(macros) >= 1.300 |
0068281f ER |
19 | Requires: php-ctype |
20 | Requires: php-pcre | |
d6396bb5 | 21 | Requires: php-pear |
6a4e5dec | 22 | Requires: php-pear-HTTP_Request >= 1.2.0 |
0068281f ER |
23 | Suggests: php-pear-Cache |
24 | Suggests: php-pear-DB | |
25 | Suggests: php-pear-Net_FTP | |
26 | Suggests: php-pear-SOAP | |
27 | Suggests: php-pear-XML_Serializer | |
d6396bb5 AG |
28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
f28e9176 | 31 | # exclude optional dependencies |
6a4e5dec | 32 | %define _noautoreq 'pear(Cache.*)' 'pear(DB.*)' 'pear(HTTP/Request.*)' 'pear(SOAP.*)' 'pear(XML/Serializer.*)' 'pear(Net/FTP.*)' |
f28e9176 | 33 | |
d6396bb5 AG |
34 | %description |
35 | Services_Weather searches for given locations and retrieves current | |
36 | weather data and, dependent on the used service, also forecasts. Up to | |
37 | now, GlobalWeather from CapeScience, a XML service from weather.com | |
38 | and METAR from noaa.gov are supported. Further services will get | |
39 | included, if they become available, have a usable API and are properly | |
40 | documented. | |
41 | ||
0d8ea5f1 | 42 | In PEAR status of this package is: %{_status}. |
d6396bb5 | 43 | |
a880ab08 JR |
44 | %description -l pl.UTF-8 |
45 | Services_Weather wyszukuje pogodę, oraz w zależności od użytego | |
46 | serwisu, także prognozę dla podanej lokalizacji. Jak do tej pory | |
47 | obsługiwane są: GlobalWeather z CapeScience, usługa XML z weather.com | |
48 | oraz METAR z noaa.gov. Wsparcie dla kolejnych serwisów zostanie | |
49 | dodane, o ile będą one dostępne, będą miały użyteczne API i będą | |
88dd3718 | 50 | odpowiednio udokumentowane. |
d6396bb5 AG |
51 | |
52 | Ta klasa ma w PEAR status: %{_status}. | |
53 | ||
54 | %prep | |
f28e9176 ER |
55 | %pear_package_setup |
56 | sed -i -e '1s#/usr/local/bin/php#%{_bindir}/php#' ./%{php_pear_dir}/data/%{_pearname}/buildMetarDB.php | |
57 | install -d docs/%{_pearname} | |
58 | mv ./%{php_pear_dir}/data/%{_pearname}/buildMetarDB.php docs/%{_pearname} | |
d6396bb5 AG |
59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
f28e9176 ER |
62 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
63 | %pear_package_install | |
d6396bb5 AG |
64 | |
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
f28e9176 ER |
68 | %post |
69 | if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then | |
70 | cat %{_docdir}/%{name}-%{version}/optional-packages.txt | |
71 | fi | |
72 | ||
d6396bb5 AG |
73 | %files |
74 | %defattr(644,root,root,755) | |
f28e9176 ER |
75 | %doc install.log |
76 | %doc docs/%{_pearname}/* | |
77 | %{php_pear_dir}/.registry/*.reg | |
d6396bb5 | 78 | %{php_pear_dir}/%{_class}/*.php |
88dd3718 | 79 | %{php_pear_dir}/%{_class}/%{_subclass} |
f28e9176 ER |
80 | |
81 | %{php_pear_dir}/data/%{_pearname} |