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