]>
Commit | Line | Data |
---|---|---|
7bacec39 ER |
1 | %define pearname Form |
2 | %define php_min_version 5.3.3 | |
3 | %include /usr/lib/rpm/macros.php | |
285ba2c7 | 4 | Summary: Symfony2 Form Component |
7bacec39 | 5 | Name: php-symfony2-Form |
285ba2c7 | 6 | Version: 2.3.4 |
7bacec39 ER |
7 | Release: 1 |
8 | License: MIT | |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz | |
285ba2c7 | 11 | # Source0-md5: 1e60577089acf33e5d91d9852b77635b |
7bacec39 ER |
12 | URL: http://pear.symfony.com/package/Form/ |
13 | BuildRequires: php-channel(pear.symfony.com) | |
14 | BuildRequires: php-pear-PEAR >= 1:1.4.0 | |
15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
16 | BuildRequires: rpmbuild(macros) >= 1.610 | |
17 | Requires: php(core) >= %{php_min_version} | |
18 | Requires: php-channel(pear.symfony.com) | |
19 | Requires: php-pear >= 4:1.3.10 | |
20 | Requires: php-symfony2-EventDispatcher | |
21 | Requires: php-symfony2-Locale | |
22 | Requires: php-symfony2-Validator | |
23 | Suggests: php-symfony2-HttpFoundation | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
285ba2c7 ER |
28 | Form provides tools for defining forms, rendering and mapping request |
29 | data to related models. Furthermore it provides integration with the | |
30 | Validation component. | |
7bacec39 ER |
31 | |
32 | %prep | |
33 | %pear_package_setup | |
34 | ||
35 | # no packaging of tests | |
285ba2c7 ER |
36 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests . |
37 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Test . | |
38 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist . | |
7bacec39 ER |
39 | |
40 | # fixups | |
7bacec39 ER |
41 | mv docs/%{pearname}/Symfony/Component/%{pearname}/* . |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
46 | %pear_package_install | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc CHANGELOG.md LICENSE README.md install.log | |
54 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
55 | %dir %{php_pear_dir}/Symfony/Component/Form | |
56 | %{php_pear_dir}/Symfony/Component/Form/*.php | |
7bacec39 ER |
57 | %{php_pear_dir}/Symfony/Component/Form/Exception |
58 | %{php_pear_dir}/Symfony/Component/Form/Extension | |
59 | %{php_pear_dir}/Symfony/Component/Form/Guess | |
60 | %{php_pear_dir}/Symfony/Component/Form/Util | |
61 | ||
62 | %dir %{php_pear_dir}/Symfony/Component/Form/Resources | |
63 | %{php_pear_dir}/Symfony/Component/Form/Resources/config | |
64 | ||
65 | %dir %{php_pear_dir}/Symfony/Component/Form/Resources/translations | |
285ba2c7 | 66 | %lang(ar) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ar.xlf |
7bacec39 ER |
67 | %lang(bg) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.bg.xlf |
68 | %lang(ca) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ca.xlf | |
69 | %lang(cs) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.cs.xlf | |
70 | %lang(da) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.da.xlf | |
71 | %lang(de) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.de.xlf | |
285ba2c7 | 72 | %lang(el) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.el.xlf |
7bacec39 ER |
73 | %lang(en) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.en.xlf |
74 | %lang(es) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.es.xlf | |
75 | %lang(et) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.et.xlf | |
76 | %lang(eu) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.eu.xlf | |
77 | %lang(fa) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.fa.xlf | |
78 | %lang(fi) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.fi.xlf | |
79 | %lang(fr) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.fr.xlf | |
285ba2c7 | 80 | %lang(gl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.gl.xlf |
7bacec39 ER |
81 | %lang(he) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.he.xlf |
82 | %lang(hr) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.hr.xlf | |
83 | %lang(hu) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.hu.xlf | |
84 | %lang(hy) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.hy.xlf | |
85 | %lang(id) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.id.xlf | |
86 | %lang(it) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.it.xlf | |
87 | %lang(ja) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ja.xlf | |
88 | %lang(lb) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.lb.xlf | |
89 | %lang(lt) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.lt.xlf | |
285ba2c7 | 90 | %lang(lv) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.lv.xlf |
7bacec39 ER |
91 | %lang(mn) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.mn.xlf |
92 | %lang(nb) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.nb.xlf | |
93 | %lang(nl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.nl.xlf | |
94 | %lang(pl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.pl.xlf | |
95 | %lang(pt) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.pt.xlf | |
96 | %lang(pt_BR) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.pt_BR.xlf | |
97 | %lang(ro) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ro.xlf | |
98 | %lang(ru) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ru.xlf | |
99 | %lang(sk) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sk.xlf | |
100 | %lang(sl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sl.xlf | |
285ba2c7 | 101 | %lang(sr@cyrillic) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sr_Cyrl.xlf |
7bacec39 ER |
102 | %lang(sr@latin) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sr_Latn.xlf |
103 | %lang(sv) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sv.xlf | |
285ba2c7 | 104 | %lang(uk) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ua.xlf |
7bacec39 | 105 | %lang(zh_CN) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.zh_CN.xlf |