]> git.pld-linux.org Git - packages/php-symfony2-PropertyAccess.git/blob - php-symfony2-PropertyAccess.spec
462e188d0b0ab9c3240113a3a93ddcb0f6139426
[packages/php-symfony2-PropertyAccess.git] / php-symfony2-PropertyAccess.spec
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
6 Version:        2.4.8
7 Release:        1
8 License:        MIT
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
13 BuildRequires:  phpab
14 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
15 BuildRequires:  rpmbuild(macros) >= 1.610
16 Requires:       php(core) >= %{php_min_version}
17 Requires:       php(ctype)
18 Requires:       php(pcre)
19 Requires:       php(spl)
20 Requires:       php-pear >= 4:1.3.10
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Provides function to read and write from/to an object or array using a
26 simple string notation.
27
28 %prep
29 %setup -q -n %{pearname}-%{version}
30
31 %build
32 phpab -n -e '*/Tests/*' -o autoload.php .
33
34 %install
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}
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
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
This page took 0.082669 seconds and 2 git commands to generate.