summaryrefslogtreecommitdiff
path: root/php-pear-Services_TinyURL.spec
blob: b93506b681df79cb955c6aa222eccc329663222a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
%include	/usr/lib/rpm/macros.php
%define		_class		Services
%define		_subclass	TinyURL
%define		_status		beta
%define		_pearname	Services_TinyURL
Summary:	%{_pearname} - PHP interface to TinyURL's API
Summary(pl.UTF-8):	%{_pearname} - interfejs PHP do API serwisu TinyURL
Name:		php-pear-%{_pearname}
Version:	0.1.2
Release:	1
License:	New BSD License
Group:		Development/Languages/PHP
Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
# Source0-md5:	40cf7a8225ff55db877df9ac3f9f6cd1
URL:		http://pear.php.net/package/Services_TinyURL/
BuildRequires:	php-pear-PEAR-core
BuildRequires:	rpm-php-pearprov >= 4.4.2-11
Requires:	php-pear
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
An interface for creating TinyURL's with their API as well as looking
up destinations of given TinyURL's.

In PEAR status of this package is: %{_status}.

%description -l pl.UTF-8
Interfejs ten umożliwia tworzenie malutkich URLi (TinyURL) z
wykorzystaniem API tego serwisu, jak również wyszukiwania adresów
docelowych już istniejących adresów.

Ta klasa ma w PEAR status: %{_status}.

%package tests
Summary:	Tests for PEAR::%{_pearname}
Summary(pl.UTF-8):	Testy dla PEAR::%{_pearname}
Group:		Development/Languages/PHP
AutoReq:	no
Requires:	%{name} = %{version}-%{release}
AutoProv:	no

%description tests
Tests for PEAR::%{_pearname}.

%description tests -l pl.UTF-8
Testy dla PEAR::%{_pearname}.

%prep
%pear_package_setup

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_pear_dir}
%pear_package_install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc install.log
%{php_pear_dir}/.registry/*.reg
%{php_pear_dir}/Services/TinyURL
%{php_pear_dir}/Services/TinyURL.php

%files tests
%defattr(644,root,root,755)
%{php_pear_dir}/tests/Services_TinyURL