1 %define pearname DependencyInjection
2 %define php_min_version 5.3.3
3 %include /usr/lib/rpm/macros.php
4 Summary: Symfony2 DependencyInjection Component
5 Name: php-symfony2-DependencyInjection
9 Group: Development/Languages/PHP
10 Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz
11 # Source0-md5: a5421c960e7c087752383721f15060df
12 URL: http://symfony.com/doc/current/components/dependency_injection/index.html
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 Suggests: php-symfony2-Config
21 Suggests: php-symfony2-Yaml
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The Dependency Injection component allows you to standardize and
27 centralize the way objects are constructed in your application.
32 # no packaging of tests
33 mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests .
34 mv .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist .
37 mv docs/%{pearname}/Symfony/Component/%{pearname}/* .
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{php_pear_dir}
45 rm -rf $RPM_BUILD_ROOT
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/DependencyInjection
52 %{php_pear_dir}/Symfony/Component/DependencyInjection/*.php
53 %{php_pear_dir}/Symfony/Component/DependencyInjection/Compiler
54 %{php_pear_dir}/Symfony/Component/DependencyInjection/Dumper
55 %{php_pear_dir}/Symfony/Component/DependencyInjection/Exception
56 %{php_pear_dir}/Symfony/Component/DependencyInjection/Extension
57 %{php_pear_dir}/Symfony/Component/DependencyInjection/LazyProxy
58 %{php_pear_dir}/Symfony/Component/DependencyInjection/Loader
59 %{php_pear_dir}/Symfony/Component/DependencyInjection/ParameterBag