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