]> git.pld-linux.org Git - packages/php-symfony2-DependencyInjection.git/blame - php-symfony2-DependencyInjection.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-symfony2-DependencyInjection.git] / php-symfony2-DependencyInjection.spec
CommitLineData
d539941c
ER
1%define package DependencyInjection
2%define php_min_version 5.3.9
ded721e0 3Summary: Symfony2 DependencyInjection Component
a14994f6 4Name: php-symfony2-DependencyInjection
320bb469 5Version: 2.7.8
a14994f6
ER
6Release: 1
7License: MIT
8Group: Development/Languages/PHP
d539941c 9Source0: https://github.com/symfony/%{package}/archive/v%{version}/%{package}-%{version}.tar.gz
320bb469 10# Source0-md5: 3315196a28777abe255df0f0c281d31d
d539941c 11URL: http://symfony.com/doc/2.7/components/dependency_injection/index.html
1901b94c 12BuildRequires: phpab
a14994f6
ER
13BuildRequires: rpmbuild(macros) >= 1.610
14Requires: php(core) >= %{php_min_version}
517eaf20
ER
15Requires: php(dom)
16Requires: php(pcre)
17Requires: php(simplexml)
18Requires: php(spl)
f29f9f04 19Requires: php-dirs >= 1.6
a14994f6 20Suggests: php-symfony2-Config
517eaf20 21Suggests: php-symfony2-ProxyManagerBridge
a14994f6 22Suggests: php-symfony2-Yaml
d539941c 23Conflicts: php-symfony2-ExpressionLanguage < 2.6
a14994f6
ER
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
ded721e0
ER
28The Dependency Injection component allows you to standardize and
29centralize the way objects are constructed in your application.
a14994f6
ER
30
31%prep
ad97e202 32%setup -q -n dependency-injection-%{version}
a14994f6 33
1901b94c 34%build
749b54bf 35phpab -n -e '*/Tests/*' -o autoload.php .
a14994f6
ER
36
37%install
38rm -rf $RPM_BUILD_ROOT
fa2a3563
ER
39install -d $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Component/%{package}
40cp -a *.php */ $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Component/%{package}
41rm -r $RPM_BUILD_ROOT%{php_data_dir}/Symfony/Component/%{package}/Tests
a14994f6
ER
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%files
47%defattr(644,root,root,755)
1901b94c 48%doc CHANGELOG.md LICENSE README.md
fa2a3563
ER
49%dir %{php_data_dir}/Symfony/Component/DependencyInjection
50%{php_data_dir}/Symfony/Component/DependencyInjection/*.php
51%{php_data_dir}/Symfony/Component/DependencyInjection/Compiler
52%{php_data_dir}/Symfony/Component/DependencyInjection/Dumper
53%{php_data_dir}/Symfony/Component/DependencyInjection/Exception
54%{php_data_dir}/Symfony/Component/DependencyInjection/Extension
55%{php_data_dir}/Symfony/Component/DependencyInjection/LazyProxy
56%{php_data_dir}/Symfony/Component/DependencyInjection/Loader
57%{php_data_dir}/Symfony/Component/DependencyInjection/ParameterBag
This page took 0.133201 seconds and 4 git commands to generate.