]> git.pld-linux.org Git - packages/Zope-Formulator.git/blob - Zope-Formulator.spec
- up to 1.11.3
[packages/Zope-Formulator.git] / Zope-Formulator.spec
1
2 %define         zope_subname    Formulator
3 Summary:        Zope framework that eases the creation and validation of web forms
4 Summary(pl.UTF-8):      Dodatek do Zope ułatwiający tworzenie i sprawdzanie poprawności formularzy WWW
5 Name:           Zope-%{zope_subname}
6 Version:        1.11.3
7 Release:        1
8 License:        BSD-like
9 Group:          Development/Tools
10 Source0:        http://www.infrae.com/download/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz
11 # Source0-md5:  59206403a29953fa33d5dce829101ab5
12 URL:            http://www.infrae.com/products/formulator/
13 BuildRequires:  python
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 %pyrequires_eq  python-modules
16 Requires(post,postun):  /usr/sbin/installzopeproduct
17 Requires:       Zope
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
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.
25
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
29 jako obiekty w Zope, w specjalnym folderze Form.
30
31 %prep
32 %setup -q -n %{zope_subname}
33 mkdir docs
34 mv -f {CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,TODO.txt} docs
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39 cp -af {dtml,help,i18n,tests,www,*.py,*.html,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
43
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
45 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52 %service -q zope restart
53
54 %postun
55 if [ "$1" = "0" ]; then
56         /usr/sbin/installzopeproduct -d %{zope_subname}
57         %service -q zope restart
58 fi
59
60 %files
61 %defattr(644,root,root,755)
62 %doc docs/*
63 %{_datadir}/%{name}
This page took 0.048556 seconds and 3 git commands to generate.