]>
Commit | Line | Data |
---|---|---|
e8b31cef | 1 | |
911642eb | 2 | %define zope_subname Formulator |
24a5cb26 | 3 | Summary: Zope framework that eases the creation and validation of web forms |
74077c59 | 4 | Summary(pl.UTF-8): Dodatek do Zope ułatwiający tworzenie i sprawdzanie poprawności formularzy WWW |
911642eb | 5 | Name: Zope-%{zope_subname} |
21a04b4b | 6 | Version: 1.11.3 |
40dd4782 | 7 | Release: 1 |
dae44c26 | 8 | License: BSD-like |
911642eb | 9 | Group: Development/Tools |
40dd4782 | 10 | Source0: http://www.infrae.com/download/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz |
21a04b4b | 11 | # Source0-md5: 59206403a29953fa33d5dce829101ab5 |
40dd4782 | 12 | URL: http://www.infrae.com/products/formulator/ |
3a724d29 | 13 | BuildRequires: python |
a0d42842 | 14 | BuildRequires: rpmbuild(macros) >= 1.268 |
3a724d29 | 15 | %pyrequires_eq python-modules |
3a724d29 | 16 | Requires(post,postun): /usr/sbin/installzopeproduct |
a0d42842 | 17 | Requires: Zope |
95de452a | 18 | BuildArch: noarch |
78ed87fd | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
78ed87fd | 21 | %description |
a0d42842 ER |
22 | %{zope_subname} is a tool to help with the creation and validation of |
23 | web forms. Form fields are stored as objects in Zope, in a special | |
24 | Form folder. | |
78ed87fd | 25 | |
ea0f5063 JR |
26 | %description -l pl.UTF-8 |
27 | %{zope_subname} jest narzędziem pomagającym przy tworzeniu i | |
28 | sprawdzaniu poprawności formularzy WWW. Pola formularza są zapisywane | |
a0d42842 | 29 | jako obiekty w Zope, w specjalnym folderze Form. |
24a5cb26 | 30 | |
78ed87fd | 31 | %prep |
911642eb | 32 | %setup -q -n %{zope_subname} |
911642eb | 33 | mkdir docs |
34 | mv -f {CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,TODO.txt} docs | |
78ed87fd | 35 | |
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
e2fc7f17 | 38 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
77925b5e | 39 | cp -af {dtml,help,i18n,tests,www,*.py,*.html,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} |
911642eb | 40 | |
e2fc7f17 JK |
41 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
42 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
78ed87fd | 43 | |
05405f84 | 44 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; |
e2fc7f17 | 45 | rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs |
78ed87fd | 46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
911642eb | 50 | %post |
e2fc7f17 | 51 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} |
a0d42842 | 52 | %service -q zope restart |
911642eb | 53 | |
54 | %postun | |
e2fc7f17 | 55 | if [ "$1" = "0" ]; then |
a0d42842 ER |
56 | /usr/sbin/installzopeproduct -d %{zope_subname} |
57 | %service -q zope restart | |
911642eb | 58 | fi |
e2fc7f17 | 59 | |
78ed87fd | 60 | %files |
61 | %defattr(644,root,root,755) | |
911642eb | 62 | %doc docs/* |
e2fc7f17 | 63 | %{_datadir}/%{name} |