]>
Commit | Line | Data |
---|---|---|
8809103a | 1 | %define pearname Console |
a2cf4419 | 2 | %define php_min_version 5.3.3 |
8809103a | 3 | %include /usr/lib/rpm/macros.php |
328b0d36 | 4 | Summary: Symfony2 Console Component |
8809103a | 5 | Name: php-symfony2-Console |
328b0d36 | 6 | Version: 2.3.4 |
8809103a ER |
7 | Release: 1 |
8 | License: MIT | |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz | |
328b0d36 | 11 | # Source0-md5: 886349051edc5048283edc158891b941 |
c52380c7 | 12 | URL: http://symfony.com/doc/current/components/console/index.html |
8809103a ER |
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 | |
a2cf4419 | 17 | Requires: php(core) >= %{php_min_version} |
8809103a | 18 | Requires: php-channel(pear.symfony.com) |
7f9a5fc3 | 19 | Requires: php-pear >= 1.3.10 |
8809103a ER |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
328b0d36 ER |
24 | The Console component eases the creation of beautiful and testable |
25 | command line interfaces. | |
8809103a ER |
26 | |
27 | %prep | |
28 | %pear_package_setup | |
29 | ||
30 | # no packaging of tests | |
328b0d36 ER |
31 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests . |
32 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist . | |
33 | ||
34 | # bad os | |
35 | rm .%{php_pear_dir}/Symfony/Component/Console/Resources/bin/hiddeninput.exe | |
8809103a ER |
36 | |
37 | # fixups | |
8809103a ER |
38 | mv docs/%{pearname}/Symfony/Component/%{pearname}/* . |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
43 | %pear_package_install | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc CHANGELOG.md LICENSE README.md install.log | |
50 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
51 | %dir %{php_pear_dir}/Symfony/Component/Console | |
52 | %{php_pear_dir}/Symfony/Component/Console/*.php | |
53 | %{php_pear_dir}/Symfony/Component/Console/Command | |
328b0d36 ER |
54 | %{php_pear_dir}/Symfony/Component/Console/Descriptor |
55 | %{php_pear_dir}/Symfony/Component/Console/Event | |
8809103a ER |
56 | %{php_pear_dir}/Symfony/Component/Console/Formatter |
57 | %{php_pear_dir}/Symfony/Component/Console/Helper | |
58 | %{php_pear_dir}/Symfony/Component/Console/Input | |
59 | %{php_pear_dir}/Symfony/Component/Console/Output | |
60 | %{php_pear_dir}/Symfony/Component/Console/Tester |