]>
Commit | Line | Data |
---|---|---|
4c5f349f ER |
1 | %define status stable |
2 | %define pearname Filesystem | |
3 | %define php_min_version 5.3.3 | |
4 | %include /usr/lib/rpm/macros.php | |
5 | Summary: %{pearname} - Symfony2 Filesystem Component | |
6 | Name: php-symfony2-Filesystem | |
92efae00 | 7 | Version: 2.1.6 |
e9b84cd0 | 8 | Release: 2 |
4c5f349f ER |
9 | License: MIT |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz | |
92efae00 | 12 | # Source0-md5: 813fb52989c372f931255567f382c144 |
0ef83c6a | 13 | URL: http://symfony.com/doc/current/components/filesystem.html |
4c5f349f ER |
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} | |
e9b84cd0 | 19 | Requires: php(ctype) |
4c5f349f ER |
20 | Requires: php-channel(pear.symfony.com) |
21 | Requires: php-pear >= 4:1.3.10 | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Symfony2 Filesystem Component | |
27 | ||
28 | In PEAR status of this package is: %{status}. | |
29 | ||
30 | %prep | |
31 | %pear_package_setup | |
32 | ||
33 | # no packaging of tests | |
34 | rm -r .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests | |
35 | rm .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist | |
36 | ||
37 | # fixups | |
38 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/CHANGELOG.md . | |
39 | rm .%{php_pear_dir}/Symfony/Component/%{pearname}/.gitattributes | |
40 | mv docs/%{pearname}/Symfony/Component/%{pearname}/* . | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
45 | %pear_package_install | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc CHANGELOG.md LICENSE README.md install.log | |
53 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
54 | %dir %{php_pear_dir}/Symfony/Component/Filesystem | |
55 | %{php_pear_dir}/Symfony/Component/Filesystem/*.php | |
56 | %{php_pear_dir}/Symfony/Component/Filesystem/Exception |