]>
Commit | Line | Data |
---|---|---|
81ecdf4f ER |
1 | %define pearname OptionsResolver |
2 | %define php_min_version 5.3.3 | |
3 | %include /usr/lib/rpm/macros.php | |
f9f33a37 | 4 | Summary: Symfony2 OptionsResolver Component |
81ecdf4f | 5 | Name: php-symfony2-OptionsResolver |
f9f33a37 | 6 | Version: 2.3.4 |
81ecdf4f ER |
7 | Release: 1 |
8 | License: MIT | |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz | |
b39a91b6 | 11 | # Source0-md5: 93cdaf336c436367b56bcd72e5aef1ad |
81ecdf4f ER |
12 | URL: http://pear.symfony.com/package/OptionsResolver/ |
13 | BuildRequires: php-channel(pear.symfony.com) | |
14 | BuildRequires: php-pear-PEAR | |
15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
16 | BuildRequires: rpmbuild(macros) >= 1.610 | |
17 | Requires: php(core) >= %{php_min_version} | |
18 | Requires: php-channel(pear.symfony.com) | |
19 | Requires: php-pear >= 4:1.3.10 | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
f9f33a37 ER |
24 | The OptionsResolver Component helps you configure objects with option |
25 | arrays. It supports default values, option constraints and lazy | |
26 | options. | |
81ecdf4f ER |
27 | |
28 | %prep | |
29 | %pear_package_setup | |
30 | ||
31 | # no packaging of tests | |
f9f33a37 ER |
32 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests . |
33 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist . | |
81ecdf4f ER |
34 | |
35 | # fixups | |
81ecdf4f ER |
36 | mv docs/%{pearname}/Symfony/Component/%{pearname}/* . |
37 | ||
81ecdf4f ER |
38 | %install |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
41 | %pear_package_install | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc LICENSE README.md install.log | |
49 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
50 | %dir %{php_pear_dir}/Symfony/Component/OptionsResolver | |
51 | %{php_pear_dir}/Symfony/Component/OptionsResolver/*.php | |
52 | %{php_pear_dir}/Symfony/Component/OptionsResolver/Exception |