]>
Commit | Line | Data |
---|---|---|
50f30039 AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Net | |
3 | %define _subclass URL_Mapper | |
4 | %define _status beta | |
5 | %define _pearname Net_URL_Mapper | |
11124dc8 JB |
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 | |
50f30039 AG |
8 | Name: php-pear-%{_pearname} |
9 | Version: 0.9.0 | |
4bf9ce84 | 10 | Release: 4 |
50f30039 AG |
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 | |
18 | Requires: php-pear | |
19 | Requires: php-pear-Net_URL >= 1.0.14 | |
5222fcd0 | 20 | Requires: php-pear-PEAR-core >= 1:1.4.3 |
50f30039 AG |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Net_URL_Mapper provides a simple and flexible way to build nice URLs | |
26 | for your web applications. | |
27 | ||
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 | |
30 | they call a router. | |
31 | ||
32 | Still, Net_URL_Mapper does not perform the dispatching like these | |
33 | frameworks and therefore can be used with your own router. | |
34 | ||
35 | In PEAR status of this package is: %{_status}. | |
36 | ||
37 | %description -l pl.UTF_8 | |
11124dc8 JB |
38 | Net_URL_Mapper udostępnia prosty i elastyczny sposób tworzenia |
39 | ładnie wyglądających adresów URL dla aplikacji WWW. | |
50f30039 | 40 | |
11124dc8 | 41 | Składnia URL-a jest zbliżona do tej jaką można spotkać w Ruby on Rails |
50f30039 AG |
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. | |
44 | ||
11124dc8 JB |
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. | |
50f30039 AG |
48 | |
49 | Ta klasa ma w PEAR status: %{_status}. | |
50 | ||
51 | %package tests | |
52 | Summary: Tests for PEAR::%{_pearname} | |
53 | Summary(pl): Testy dla PEAR::%{_pearname} | |
54 | Group: Development/Languages/PHP | |
55 | AutoReq: no | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | AutoProv: no | |
58 | ||
59 | %description tests | |
60 | Tests for PEAR::%{_pearname}. | |
61 | ||
62 | %description tests -l pl | |
63 | Testy dla PEAR::%{_pearname}. | |
64 | ||
65 | %prep | |
66 | %pear_package_setup | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
71 | %pear_package_install | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc install.log | |
79 | %{php_pear_dir}/.registry/*.reg | |
45134a96 | 80 | %dir %{php_pear_dir}/Net/URL |
50f30039 AG |
81 | %{php_pear_dir}/Net/URL/Mapper |
82 | %{php_pear_dir}/Net/URL/Mapper.php | |
83 | ||
84 | %files tests | |
85 | %defattr(644,root,root,755) | |
86 | %{php_pear_dir}/tests/Net_URL_Mapper |