]>
Commit | Line | Data |
---|---|---|
6d239f83 ER |
1 | %define status stable |
2 | %define pearname Routing | |
3 | %define php_min_version 5.3.3 | |
4 | %include /usr/lib/rpm/macros.php | |
5 | Summary: %{pearname} - Symfony2 Routing Component | |
6 | Name: php-symfony2-Routing | |
7 | Version: 2.1.4 | |
8 | Release: 1 | |
9 | License: MIT | |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz | |
12 | # Source0-md5: d185e28cb56be807e2c421900faf9a5b | |
13 | URL: http://pear.symfony.com/package/Routing/ | |
14 | BuildRequires: php-channel(pear.symfony.com) | |
15 | BuildRequires: php-pear-PEAR | |
16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
17 | BuildRequires: rpmbuild(macros) >= 1.610 | |
18 | Requires: php(core) >= %{php_min_version} | |
19 | Requires: php-channel(pear.symfony.com) | |
20 | Requires: php-pear >= 4:1.3.10 | |
21 | Suggests: php-symfony2-Config | |
22 | Suggests: php-symfony2-Yaml | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | # exclude optional dependencies | |
27 | %define _noautoreq pear(Config.*) pear(Yaml.*) | |
28 | ||
29 | %description | |
30 | Symfony2 Routing Component | |
31 | ||
32 | In PEAR status of this package is: %{status}. | |
33 | ||
34 | %prep | |
35 | %pear_package_setup | |
36 | ||
37 | # no packaging of tests | |
38 | rm -r .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests | |
39 | rm .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist | |
40 | ||
41 | # fixups | |
42 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/CHANGELOG.md . | |
43 | rm .%{php_pear_dir}/Symfony/Component/%{pearname}/.gitattributes | |
44 | rm .%{php_pear_dir}/Symfony/Component/%{pearname}/.gitignore | |
45 | mv docs/%{pearname}/Symfony/Component/%{pearname}/* . | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
50 | %pear_package_install | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc CHANGELOG.md LICENSE README.md install.log | |
58 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
59 | %dir %{php_pear_dir}/Symfony/Component/Routing | |
60 | %{php_pear_dir}/Symfony/Component/Routing/*.php | |
61 | %{php_pear_dir}/Symfony/Component/Routing/Annotation | |
62 | %{php_pear_dir}/Symfony/Component/Routing/Exception | |
63 | %{php_pear_dir}/Symfony/Component/Routing/Generator | |
64 | %{php_pear_dir}/Symfony/Component/Routing/Loader | |
65 | %{php_pear_dir}/Symfony/Component/Routing/Matcher |