1 %define pearname PropertyAccess
2 %define php_min_version 5.3.3
3 %include /usr/lib/rpm/macros.php
4 Summary: Symfony2 PropertyAccess Component
5 Name: php-symfony2-PropertyAccess
9 Group: Development/Languages/PHP
10 Source0: https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz
11 # Source0-md5: 6b980d0e20f360a85f2b661642f0cb4d
12 URL: http://symfony.com/doc/2.4/components/property_access/introduction.html
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.610
16 Requires: php(core) >= %{php_min_version}
20 Requires: php-pear >= 4:1.3.10
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Provides function to read and write from/to an object or array using a
26 simple string notation.
29 %setup -q -n %{pearname}-%{version}
32 phpab -n -e '*/Tests/*' -o autoload.php .
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}
37 cp -a *.php */ $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
44 %doc CHANGELOG.md LICENSE README.md
45 %dir %{php_pear_dir}/Symfony/Component/PropertyAccess
46 %{php_pear_dir}/Symfony/Component/PropertyAccess/*.php
47 %{php_pear_dir}/Symfony/Component/PropertyAccess/Exception