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