1 %include /usr/lib/rpm/macros.php
2 %define _class Services
3 %define _subclass Weather
5 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} acts as an interface to various online weather-services
8 Summary(pl): %{_pearname} pe³ni rolê interfejsu do ró¿nych serwisów pogodowych
9 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}RC1.tgz
15 # Source0-md5: a27165c7d7116e85eaaa267e0e5b97fb
16 URL: http://pear.php.net/package/Services_Wheather/
17 BuildRequires: rpm-php-pearprov >= 4.0.2-98
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Services_Weather searches for given locations and retrieves current
24 weather data and, dependent on the used service, also forecasts. Up to
25 now, GlobalWeather from CapeScience, a XML service from weather.com
26 and METAR from noaa.gov are supported. Further services will get
27 included, if they become available, have a usable API and are properly
30 This class has in PEAR status: %{_status}.
33 Services_Weather wyszukuje pogodê, oraz w zale¿no¶ci od u¿ytego
34 serwisu, tak¿e prognozê dla podanej lokalizacji. Jak do tej pory
35 obs³ugiwane s±: GlobalWeather z CapeScience, us³uga XML z weather.com
36 oraz METAR z noaa.gov. Wsparcie dla kolejnych serwisów zostanie
37 dodane, o ile bêd± one dostêpne, bêd± mia³y u¿yteczne API i bêd±
38 odpowiednio udokumentowane.
40 Ta klasa ma w PEAR status: %{_status}.
43 %setup -q -c -n %{name}-%{version}RC1
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
49 install %{_pearname}-%{version}RC1/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
50 install %{_pearname}-%{version}RC1/%{_subclass}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc %{_pearname}-%{version}RC1/examples
58 %{php_pear_dir}/%{_class}/*.php
59 %{php_pear_dir}/%{_class}/%{_subclass}