]>
Commit | Line | Data |
---|---|---|
50f30039 | 1 | %include /usr/lib/rpm/macros.php |
50f30039 AG |
2 | %define _status beta |
3 | %define _pearname Net_URL_Mapper | |
11124dc8 | 4 | Summary: %{_pearname} - a simple and flexible way to build nice URLs for web applications |
8862eb2e | 5 | Summary(pl.UTF-8): %{_pearname} - prosty i elastyczny sposób tworzenia ładnie wyglądających URL-i dla aplikacji WWW |
50f30039 | 6 | Name: php-pear-%{_pearname} |
028219f2 ER |
7 | Version: 0.9.1 |
8 | Release: 1 | |
50f30039 AG |
9 | License: New BSD License |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
028219f2 | 12 | # Source0-md5: 0d27b8d5a6a3e38b310807f2fcee996f |
50f30039 | 13 | URL: http://pear.php.net/package/Net_URL_Mapper/ |
0fb0722f | 14 | BuildRequires: php-pear-PEAR >= 1:1.4.3 |
50f30039 | 15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
e5550e8d | 16 | BuildRequires: rpmbuild(macros) >= 1.300 |
50f30039 AG |
17 | Requires: php-pear |
18 | Requires: php-pear-Net_URL >= 1.0.14 | |
5222fcd0 | 19 | Requires: php-pear-PEAR-core >= 1:1.4.3 |
028219f2 | 20 | Obsoletes: php-pear-Net_URL_Mapper-tests |
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 | ||
4151733f | 37 | %description -l pl.UTF-8 |
0fb0722f ER |
38 | Net_URL_Mapper udostępnia prosty i elastyczny sposób tworzenia ładnie |
39 | 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 | ||
50f30039 AG |
51 | %prep |
52 | %pear_package_setup | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
57 | %pear_package_install | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc install.log | |
65 | %{php_pear_dir}/.registry/*.reg | |
45134a96 | 66 | %dir %{php_pear_dir}/Net/URL |
50f30039 AG |
67 | %{php_pear_dir}/Net/URL/Mapper |
68 | %{php_pear_dir}/Net/URL/Mapper.php | |
69 | ||
028219f2 | 70 | %{php_pear_dir}/data/%{_pearname} |