1 %include /usr/lib/rpm/macros.php
3 %define _subclass URL_Mapper
5 %define _pearname Net_URL_Mapper
6 Summary: %{_pearname} - a simple and flexible way to build nice URLs for web applications
7 Summary(pl.UTF_8): %{_pearname} - prosty i elastyczny sposób tworzenia ładnie wyglądających URL-i dla aplikacji WWW
8 Name: php-pear-%{_pearname}
11 License: New BSD License
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 11a4d002f881ac5d957cdbb6b46139f7
15 URL: http://pear.php.net/package/Net_URL_Mapper/
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
19 Requires: php-pear-Net_URL >= 1.0.14
20 Requires: php-pear-PEAR-core >= 1:1.4.3
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Net_URL_Mapper provides a simple and flexible way to build nice URLs
26 for your web applications.
28 The URL syntax is similar to what can be found in Ruby on Rails or
29 Python Routes module and as such, this package can be compared to what
32 Still, Net_URL_Mapper does not perform the dispatching like these
33 frameworks and therefore can be used with your own router.
35 In PEAR status of this package is: %{_status}.
37 %description -l pl.UTF_8
38 Net_URL_Mapper udostępnia prosty i elastyczny sposób tworzenia
39 ładnie wyglądających adresów URL dla aplikacji WWW.
41 Składnia URL-a jest zbliżona do tej jaką można spotkać w Ruby on Rails
42 czy module Routes języka Python i w związku z tym pakiet ten może być
43 porównany z tym co nazywane jest tam routerem.
45 Mimo to, w odróżnieniu od wspomnianych frameworków, Net_URL_Mapper nie
46 zajmuje się przekazywaniem zapytań i w związku z tym może być użyty
47 wraz z osobnym routerem.
49 Ta klasa ma w PEAR status: %{_status}.
52 Summary: Tests for PEAR::%{_pearname}
53 Summary(pl): Testy dla PEAR::%{_pearname}
54 Group: Development/Languages/PHP
56 Requires: %{name} = %{version}-%{release}
60 Tests for PEAR::%{_pearname}.
62 %description tests -l pl
63 Testy dla PEAR::%{_pearname}.
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{php_pear_dir}
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
79 %{php_pear_dir}/.registry/*.reg
80 %dir %{php_pear_dir}/Net/URL
81 %{php_pear_dir}/Net/URL/Mapper
82 %{php_pear_dir}/Net/URL/Mapper.php
85 %defattr(644,root,root,755)
86 %{php_pear_dir}/tests/Net_URL_Mapper