1 %define _class Services
2 %define _subclass Weather
4 %define _pearname Services_Weather
5 %include /usr/lib/rpm/macros.php
6 Summary: %{_pearname} - an interface to various online weather-services
7 Summary(pl.UTF-8): %{_pearname} - interfejs do różnych serwisów pogodowych
8 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 34d1e75a99a1ece7446ae8567fef5a92
15 URL: http://pear.php.net/package/Services_Wheather/
16 BuildRequires: php-pear-PEAR >= 1:1.4.0
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.654
22 Requires: php-pear-HTTP_Request >= 1.2.0
23 Suggests: php-pear-Cache
25 Suggests: php-pear-Net_FTP
26 Suggests: php-pear-SOAP
27 Suggests: php-pear-XML_Serializer
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 # exclude optional dependencies
32 %define _noautoreq_pear DB.php HTTP/Request.php SOAP/.* XML/Serializer.* Net/FTP.php
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
42 In PEAR status of this package is: %{_status}.
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ą
50 odpowiednio udokumentowane.
52 Ta klasa ma w PEAR status: %{_status}.
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}
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{php_pear_dir}
66 rm -rf $RPM_BUILD_ROOT
69 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
70 cat %{_docdir}/%{name}-%{version}/optional-packages.txt
74 %defattr(644,root,root,755)
76 %doc docs/%{_pearname}/*
77 %{php_pear_dir}/.registry/*.reg
78 %{php_pear_dir}/Services/*.php
79 %{php_pear_dir}/Services/Weather
81 %{php_pear_dir}/data/%{_pearname}