]>
Commit | Line | Data |
---|---|---|
a6c6ccbb | 1 | %define _status stable |
e1c53404 | 2 | %define _pearname Net_UserAgent_Mobile |
582e3f1a | 3 | Summary: %{_pearname} - HTTP mobile user agent string parser |
012d0be2 | 4 | Summary(pl.UTF-8): %{_pearname} - analizator identyfikatora przenośnych przeglądarek HTTP |
582e3f1a | 5 | Name: php-pear-%{_pearname} |
a6c6ccbb | 6 | Version: 1.0.0 |
764242ee | 7 | Release: 6 |
582e3f1a PG |
8 | License: PHP 2.02 |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
a6c6ccbb | 11 | # Source0-md5: d8860255bc7fb05bd00a1c6f074daaf0 |
1ee62836 | 12 | URL: http://pear.php.net/package/Net_UserAgent_Mobile/ |
1fbc18a7 | 13 | BuildRequires: php-pear-PEAR >= 1:1.4.3 |
031aea01 | 14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
ec3f2a62 | 15 | BuildRequires: rpmbuild(macros) >= 1.571 |
764242ee | 16 | Requires: php(pcre) |
e1c53404 | 17 | Requires: php-pear >= 4:1.3-4 |
60989f68 | 18 | Requires: php-pear-PEAR-core >= 1:1.4.3 |
ec3f2a62 | 19 | Suggests: php-xml |
11703ab7 | 20 | Obsoletes: php-pear-Net_UserAgent_Mobile-tests |
582e3f1a PG |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Net_UserAgent_Mobile parses HTTP_USER_AGENT strings of (mainly | |
26 | Japanese) mobile HTTP user agents. It'll be useful in page dispatching | |
27 | by user agents. This package was ported from Perl's HTTP::MobileAgent. | |
582e3f1a | 28 | |
da0fdf13 | 29 | In PEAR status of this package is: %{_status}. |
582e3f1a | 30 | |
a390a86f JR |
31 | %description -l pl.UTF-8 |
32 | Net_UserAgent_Mobile analizuje łańcuchy HTTP_USER_AGENT (głównie | |
33 | japońskich) przenośnych przeglądarek HTTP. Moduł ten może być | |
34 | przydatny przy wysyłaniu stron w zależności od przeglądarki. Został | |
e1c53404 | 35 | przeportowany z perlowego HTTP::MobileAgent. |
582e3f1a PG |
36 | |
37 | Ta klasa ma w PEAR status: %{_status}. | |
38 | ||
39 | %prep | |
031aea01 | 40 | %pear_package_setup |
582e3f1a | 41 | |
ec3f2a62 ER |
42 | # optional ext not reported properly. do it manually |
43 | echo '%{name} can optionally use PHP extension "php-xml"' >> optional-packages.txt | |
44 | ||
582e3f1a PG |
45 | %install |
46 | rm -rf $RPM_BUILD_ROOT | |
031aea01 ER |
47 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
48 | %pear_package_install | |
582e3f1a PG |
49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
ec3f2a62 ER |
53 | %post -p <lua> |
54 | %pear_package_print_optionalpackages | |
a6c6ccbb | 55 | |
582e3f1a PG |
56 | %files |
57 | %defattr(644,root,root,755) | |
a6c6ccbb | 58 | %doc install.log optional-packages.txt |
031aea01 | 59 | %{php_pear_dir}/.registry/*.reg |
e1c53404 ER |
60 | %{php_pear_dir}/Net/UserAgent/Mobile.php |
61 | %{php_pear_dir}/Net/UserAgent/Mobile |