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