]>
Commit | Line | Data |
---|---|---|
a14994f6 ER |
1 | %define pearname DependencyInjection |
2 | %define php_min_version 5.3.3 | |
3 | %include /usr/lib/rpm/macros.php | |
ded721e0 | 4 | Summary: Symfony2 DependencyInjection Component |
a14994f6 | 5 | Name: php-symfony2-DependencyInjection |
1901b94c | 6 | Version: 2.4.8 |
a14994f6 ER |
7 | Release: 1 |
8 | License: MIT | |
9 | Group: Development/Languages/PHP | |
1901b94c ER |
10 | Source0: https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz |
11 | # Source0-md5: 8657e364dcacef18b1bcf2096e7e2885 | |
d1e1cd04 | 12 | URL: http://symfony.com/doc/2.4/components/dependency_injection/index.html |
1901b94c | 13 | BuildRequires: phpab |
a14994f6 ER |
14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
15 | BuildRequires: rpmbuild(macros) >= 1.610 | |
16 | Requires: php(core) >= %{php_min_version} | |
517eaf20 ER |
17 | Requires: php(dom) |
18 | Requires: php(pcre) | |
19 | Requires: php(simplexml) | |
20 | Requires: php(spl) | |
a14994f6 ER |
21 | Requires: php-pear >= 4:1.3.10 |
22 | Suggests: php-symfony2-Config | |
517eaf20 | 23 | Suggests: php-symfony2-ProxyManagerBridge |
a14994f6 ER |
24 | Suggests: php-symfony2-Yaml |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
ded721e0 ER |
29 | The Dependency Injection component allows you to standardize and |
30 | centralize the way objects are constructed in your application. | |
a14994f6 ER |
31 | |
32 | %prep | |
1901b94c | 33 | %setup -q -n %{pearname}-%{version} |
a14994f6 | 34 | |
1901b94c ER |
35 | %build |
36 | phpab -n -e '*/Tests/*' -o autoload.php . | |
a14994f6 ER |
37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
1901b94c ER |
40 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname} |
41 | cp -a *.php */ $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname} | |
42 | rm -r $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}/Tests | |
a14994f6 ER |
43 | |
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
1901b94c | 49 | %doc CHANGELOG.md LICENSE README.md |
a14994f6 ER |
50 | %dir %{php_pear_dir}/Symfony/Component/DependencyInjection |
51 | %{php_pear_dir}/Symfony/Component/DependencyInjection/*.php | |
52 | %{php_pear_dir}/Symfony/Component/DependencyInjection/Compiler | |
53 | %{php_pear_dir}/Symfony/Component/DependencyInjection/Dumper | |
54 | %{php_pear_dir}/Symfony/Component/DependencyInjection/Exception | |
55 | %{php_pear_dir}/Symfony/Component/DependencyInjection/Extension | |
ded721e0 | 56 | %{php_pear_dir}/Symfony/Component/DependencyInjection/LazyProxy |
a14994f6 ER |
57 | %{php_pear_dir}/Symfony/Component/DependencyInjection/Loader |
58 | %{php_pear_dir}/Symfony/Component/DependencyInjection/ParameterBag |