]> git.pld-linux.org Git - packages/php-pear-Services_Weather.git/blob - php-pear-Services_Weather.spec
- updated to: 1.4.6
[packages/php-pear-Services_Weather.git] / php-pear-Services_Weather.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          Services
3 %define         _subclass       Weather
4 %define         _status         stable
5 %define         _pearname       %{_class}_%{_subclass}
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}
9 Version:        1.4.6
10 Release:        1
11 License:        PHP 2.02
12 Group:          Development/Languages/PHP
13 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5:  302e17299f03128d24470c418956d3b4
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.300
19 Requires:       php-ctype
20 Requires:       php-pcre
21 Requires:       php-pear
22 Requires:       php-pear-HTTP_Request >= 1.2.0
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
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 # exclude optional dependencies
32 %define         _noautoreq      'pear(Cache.*)' 'pear(DB.*)' 'pear(HTTP/Request.*)' 'pear(SOAP.*)' 'pear(XML/Serializer.*)' 'pear(Net/FTP.*)'
33
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
42 In PEAR status of this package is: %{_status}.
43
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.
51
52 Ta klasa ma w PEAR status: %{_status}.
53
54 %prep
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}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{php_pear_dir}
63 %pear_package_install
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post
69 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
70         cat %{_docdir}/%{name}-%{version}/optional-packages.txt
71 fi
72
73 %files
74 %defattr(644,root,root,755)
75 %doc install.log
76 %doc docs/%{_pearname}/*
77 %{php_pear_dir}/.registry/*.reg
78 %{php_pear_dir}/%{_class}/*.php
79 %{php_pear_dir}/%{_class}/%{_subclass}
80
81 %{php_pear_dir}/data/%{_pearname}
This page took 0.080012 seconds and 4 git commands to generate.