]> git.pld-linux.org Git - packages/Zope-Formulator.git/blob - Zope-Formulator.spec
- removed %%include /usr/lib/rpm/macros.python
[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):    Dodatek do Zope u³atwiaj±cy tworzenie i sprawdzanie poprawno¶ci formularzy WWW
5 Name:           Zope-%{zope_subname}
6 Version:        1.6.2
7 Release:        1
8 License:        BSD-like
9 Group:          Development/Tools
10 Source0:        http://www.zope.org/Members/infrae/Formulator/Formulator-%{version}/%{zope_subname}-%{version}.tgz
11 # Source0-md5:  c5eb395918349036c7ac400dbbff98e9
12 URL:            http://www.zope.org/Members/infrae/Formulator/
13 %pyrequires_eq  python-modules
14 Requires:       Zope
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 %{zope_subname} is a tool to help with the creation and validation of web
21 forms. Form fields are stored as objects in Zope, in a special Form folder.
22
23 %description -l pl
24 %{zope_subname} jest narzêdziem pomagaj±cym przy tworzeniu i sprawdzaniu
25 poprawno¶ci formularzy WWW. Pola formularza s± zapisywane jako obiekty
26 w Zope, w specjalnym folderze Form.
27
28 %prep
29 %setup -q -n %{zope_subname}
30
31 %build
32 mkdir docs
33 mv -f {CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,TODO.txt} docs
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
38 cp -af {dtml,help,tests,www,*.py,*.html,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
41 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
42
43 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
44 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 if [ -f /var/lock/subsys/zope ]; then
52         /etc/rc.d/init.d/zope restart >&2
53 fi
54
55 %postun
56 if [ "$1" = "0" ]; then
57         /usr/sbin/installzopeproduct -d %{zope_subname} 
58         if [ -f /var/lock/subsys/zope ]; then
59                 /etc/rc.d/init.d/zope restart >&2
60         fi
61 fi
62
63 %files
64 %defattr(644,root,root,755)
65 %doc docs/*
66 %{_datadir}/%{name}
This page took 0.045175 seconds and 4 git commands to generate.