]>
Commit | Line | Data |
---|---|---|
854ebfae ER |
1 | %define package Form |
2 | %define php_min_version 5.3.9 | |
7bacec39 | 3 | %include /usr/lib/rpm/macros.php |
285ba2c7 | 4 | Summary: Symfony2 Form Component |
7bacec39 | 5 | Name: php-symfony2-Form |
854ebfae | 6 | Version: 2.7.3 |
7bacec39 ER |
7 | Release: 1 |
8 | License: MIT | |
9 | Group: Development/Languages/PHP | |
854ebfae ER |
10 | Source0: https://github.com/symfony/%{package}/archive/v%{version}/%{package}-%{version}.tar.gz |
11 | # Source0-md5: 08892ca4339bc41ef747482d5e5aa500 | |
12 | URL: http://symfony.com/doc/2.7/components/form/index.html | |
082e4f34 | 13 | BuildRequires: phpab |
7bacec39 ER |
14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
15 | BuildRequires: rpmbuild(macros) >= 1.610 | |
16 | Requires: php(core) >= %{php_min_version} | |
57d083b5 ER |
17 | Requires: php(ctype) |
18 | Requires: php(date) | |
19 | Requires: php(hash) | |
20 | Requires: php(json) | |
21 | Requires: php(mbstring) | |
22 | Requires: php(pcre) | |
23 | Requires: php(session) | |
24 | Requires: php(spl) | |
7bacec39 | 25 | Requires: php-pear >= 4:1.3.10 |
39d89700 ER |
26 | Requires: php-symfony2-EventDispatcher >= 2.1 |
27 | Requires: php-symfony2-Intl >= 2.3 | |
854ebfae | 28 | Requires: php-symfony2-OptionsResolver >= 2.6 |
39d89700 | 29 | Requires: php-symfony2-PropertyAccess >= 2.3 |
57d083b5 ER |
30 | Suggests: php-symfony2-FrameworkBundle |
31 | Suggests: php-symfony2-Security | |
32 | Suggests: php-symfony2-TwigBridge | |
39d89700 | 33 | Suggests: php-symfony2-Validator |
7bacec39 ER |
34 | BuildArch: noarch |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
285ba2c7 ER |
38 | Form provides tools for defining forms, rendering and mapping request |
39 | data to related models. Furthermore it provides integration with the | |
40 | Validation component. | |
7bacec39 ER |
41 | |
42 | %prep | |
854ebfae | 43 | %setup -q -n %{package}-%{version} |
7bacec39 | 44 | |
082e4f34 | 45 | %build |
dafce359 | 46 | phpab -n -e '*/Tests/*' -o autoloader.php . |
7bacec39 ER |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
854ebfae ER |
50 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{package} |
51 | cp -a *.php */ $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{package} | |
52 | rm -r $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{package}/Tests | |
53 | rm -r $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{package}/Test | |
7bacec39 ER |
54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
082e4f34 | 60 | %doc CHANGELOG.md LICENSE README.md |
7bacec39 ER |
61 | %dir %{php_pear_dir}/Symfony/Component/Form |
62 | %{php_pear_dir}/Symfony/Component/Form/*.php | |
7bacec39 ER |
63 | %{php_pear_dir}/Symfony/Component/Form/Exception |
64 | %{php_pear_dir}/Symfony/Component/Form/Extension | |
65 | %{php_pear_dir}/Symfony/Component/Form/Guess | |
66 | %{php_pear_dir}/Symfony/Component/Form/Util | |
67 | ||
68 | %dir %{php_pear_dir}/Symfony/Component/Form/Resources | |
69 | %{php_pear_dir}/Symfony/Component/Form/Resources/config | |
70 | ||
71 | %dir %{php_pear_dir}/Symfony/Component/Form/Resources/translations | |
285ba2c7 | 72 | %lang(ar) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ar.xlf |
7bacec39 ER |
73 | %lang(bg) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.bg.xlf |
74 | %lang(ca) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ca.xlf | |
75 | %lang(cs) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.cs.xlf | |
76 | %lang(da) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.da.xlf | |
77 | %lang(de) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.de.xlf | |
285ba2c7 | 78 | %lang(el) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.el.xlf |
7bacec39 ER |
79 | %lang(en) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.en.xlf |
80 | %lang(es) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.es.xlf | |
81 | %lang(et) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.et.xlf | |
82 | %lang(eu) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.eu.xlf | |
83 | %lang(fa) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.fa.xlf | |
84 | %lang(fi) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.fi.xlf | |
85 | %lang(fr) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.fr.xlf | |
285ba2c7 | 86 | %lang(gl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.gl.xlf |
7bacec39 ER |
87 | %lang(he) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.he.xlf |
88 | %lang(hr) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.hr.xlf | |
89 | %lang(hu) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.hu.xlf | |
90 | %lang(hy) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.hy.xlf | |
91 | %lang(id) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.id.xlf | |
92 | %lang(it) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.it.xlf | |
93 | %lang(ja) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ja.xlf | |
94 | %lang(lb) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.lb.xlf | |
95 | %lang(lt) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.lt.xlf | |
285ba2c7 | 96 | %lang(lv) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.lv.xlf |
7bacec39 ER |
97 | %lang(mn) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.mn.xlf |
98 | %lang(nb) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.nb.xlf | |
99 | %lang(nl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.nl.xlf | |
100 | %lang(pl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.pl.xlf | |
101 | %lang(pt) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.pt.xlf | |
102 | %lang(pt_BR) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.pt_BR.xlf | |
103 | %lang(ro) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ro.xlf | |
104 | %lang(ru) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.ru.xlf | |
105 | %lang(sk) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sk.xlf | |
106 | %lang(sl) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sl.xlf | |
285ba2c7 | 107 | %lang(sr@cyrillic) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sr_Cyrl.xlf |
7bacec39 ER |
108 | %lang(sr@latin) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sr_Latn.xlf |
109 | %lang(sv) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.sv.xlf | |
57d083b5 | 110 | %lang(uk) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.uk.xlf |
7bacec39 | 111 | %lang(zh_CN) %{php_pear_dir}/Symfony/Component/Form/Resources/translations/validators.zh_CN.xlf |