]>
Commit | Line | Data |
---|---|---|
ddf89e82 ER |
1 | %define pearname Serializer |
2 | %define php_min_version 5.3.3 | |
3 | %include /usr/lib/rpm/macros.php | |
423242c2 | 4 | Summary: Symfony2 Serializer Component |
ddf89e82 | 5 | Name: php-symfony2-Serializer |
09886d05 | 6 | Version: 2.4.3 |
ddf89e82 ER |
7 | Release: 1 |
8 | License: MIT | |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz | |
09886d05 ER |
11 | # Source0-md5: 40bf5ded81e6306cf317c5e651102bc8 |
12 | URL: http://symfony.com/doc/2.4/components/serializer.html | |
ddf89e82 ER |
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} | |
09886d05 ER |
18 | Requires: php(ctype) |
19 | Requires: php(dom) | |
20 | Requires: php(json) | |
21 | Requires: php(pcre) | |
22 | Requires: php(simplexml) | |
23 | Requires: php(spl) | |
24 | Requires: php(xml) | |
ddf89e82 ER |
25 | Requires: php-channel(pear.symfony.com) |
26 | Requires: php-pear >= 4:1.3.10 | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
423242c2 ER |
31 | The Serializer Component is meant to be used to turn objects into a |
32 | specific format (XML, JSON, Yaml, ...) and the other way around. | |
ddf89e82 ER |
33 | |
34 | %prep | |
35 | %pear_package_setup | |
36 | ||
37 | # no packaging of tests | |
423242c2 ER |
38 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests . |
39 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist . | |
ddf89e82 ER |
40 | |
41 | # fixups | |
ddf89e82 ER |
42 | mv docs/%{pearname}/Symfony/Component/%{pearname}/* . |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
47 | %pear_package_install | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc CHANGELOG.md LICENSE README.md install.log | |
55 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
56 | %dir %{php_pear_dir}/Symfony/Component/Serializer | |
57 | %{php_pear_dir}/Symfony/Component/Serializer/*.php | |
58 | %{php_pear_dir}/Symfony/Component/Serializer/Encoder | |
59 | %{php_pear_dir}/Symfony/Component/Serializer/Exception | |
60 | %{php_pear_dir}/Symfony/Component/Serializer/Normalizer |