]> git.pld-linux.org Git - packages/php-pear-Services_Weather.git/blob - php-pear-Services_Weather.spec
- fixed english information about status of the package
[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.2.2
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:  e3e202d4bfddfb0fafcf97a4fde08c89
16 URL:            http://pear.php.net/package/Services_Wheather/
17 BuildRequires:  rpm-php-pearprov >= 4.0.2-98
18 Requires:       php-pear
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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
28 documented.
29
30 In PEAR status of this package is: %{_status}.
31
32 %description -l pl
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.
39
40 Ta klasa ma w PEAR status: %{_status}.
41
42 %prep
43 %setup -q -c
44 cd %{_pearname}-%{version}
45 sed 's#/usr/local/bin/php#/usr/bin/php#' buildMetarDB.php >> tmp
46 mv -f tmp buildMetarDB.php
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
51
52 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
53 install %{_pearname}-%{version}/%{_subclass}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc %{_pearname}-%{version}/examples
61 %{php_pear_dir}/%{_class}/*.php
62 %{php_pear_dir}/%{_class}/%{_subclass}
This page took 0.088561 seconds and 4 git commands to generate.