]>
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 | |
39d89700 ER |
20 | Requires: php-symfony2-EventDispatcher >= 2.1 |
21 | Requires: php-symfony2-Intl >= 2.3 | |
22 | Requires: php-symfony2-OptionsResolver >= 2.1 | |
23 | Requires: php-symfony2-PropertyAccess >= 2.3 | |
7bacec39 | 24 | Suggests: php-symfony2-HttpFoundation |
39d89700 | 25 | Suggests: php-symfony2-Validator |
7bacec39 ER |
26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
285ba2c7 ER |
30 | Form provides tools for defining forms, rendering and mapping request |
31 | data to related models. Furthermore it provides integration with the | |
32 | Validation component. | |
7bacec39 ER |
33 | |
34 | %prep | |
35 | %pear_package_setup | |
36 | ||
37 | # no packaging of tests | |
285ba2c7 ER |
38 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests . |
39 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Test . | |
40 | mv .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist . | |
7bacec39 ER |
41 | |
42 | # fixups | |
7bacec39 ER |
43 | mv docs/%{pearname}/Symfony/Component/%{pearname}/* . |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
48 | %pear_package_install | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc CHANGELOG.md LICENSE README.md install.log | |
56 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
57 | %dir %{php_pear_dir}/Symfony/Component/Form | |
58 | %{php_pear_dir}/Symfony/Component/Form/*.php | |
7bacec39 ER |
59 | %{php_pear_dir}/Symfony/Component/Form/Exception |
60 | %{php_pear_dir}/Symfony/Component/Form/Extension | |
61 | %{php_pear_dir}/Symfony/Component/Form/Guess | |
62 | %{php_pear_dir}/Symfony/Component/Form/Util | |
63 | ||
64 | %dir %{php_pear_dir}/Symfony/Component/Form/Resources | |
65 | %{php_pear_dir}/Symfony/Component/Form/Resources/config | |
66 | ||
67 | %dir %{php_pear_dir}/Symfony/Component/Form/Resources/translations | |
285ba2c7 | 68 | %lang(ar) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ar.xlf |
7bacec39 ER |
69 | %lang(bg) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.bg.xlf |
70 | %lang(ca) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ca.xlf | |
71 | %lang(cs) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.cs.xlf | |
72 | %lang(da) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.da.xlf | |
73 | %lang(de) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.de.xlf | |
285ba2c7 | 74 | %lang(el) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.el.xlf |
7bacec39 ER |
75 | %lang(en) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.en.xlf |
76 | %lang(es) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.es.xlf | |
77 | %lang(et) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.et.xlf | |
78 | %lang(eu) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.eu.xlf | |
79 | %lang(fa) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.fa.xlf | |
80 | %lang(fi) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.fi.xlf | |
81 | %lang(fr) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.fr.xlf | |
285ba2c7 | 82 | %lang(gl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.gl.xlf |
7bacec39 ER |
83 | %lang(he) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.he.xlf |
84 | %lang(hr) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.hr.xlf | |
85 | %lang(hu) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.hu.xlf | |
86 | %lang(hy) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.hy.xlf | |
87 | %lang(id) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.id.xlf | |
88 | %lang(it) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.it.xlf | |
89 | %lang(ja) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ja.xlf | |
90 | %lang(lb) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.lb.xlf | |
91 | %lang(lt) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.lt.xlf | |
285ba2c7 | 92 | %lang(lv) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.lv.xlf |
7bacec39 ER |
93 | %lang(mn) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.mn.xlf |
94 | %lang(nb) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.nb.xlf | |
95 | %lang(nl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.nl.xlf | |
96 | %lang(pl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.pl.xlf | |
97 | %lang(pt) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.pt.xlf | |
98 | %lang(pt_BR) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.pt_BR.xlf | |
99 | %lang(ro) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ro.xlf | |
100 | %lang(ru) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ru.xlf | |
101 | %lang(sk) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sk.xlf | |
102 | %lang(sl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sl.xlf | |
285ba2c7 | 103 | %lang(sr@cyrillic) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sr_Cyrl.xlf |
7bacec39 ER |
104 | %lang(sr@latin) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sr_Latn.xlf |
105 | %lang(sv) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sv.xlf | |
285ba2c7 | 106 | %lang(uk) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ua.xlf |
7bacec39 | 107 | %lang(zh_CN) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.zh_CN.xlf |