]> git.pld-linux.org Git - packages/Zope-Formulator.git/blame_incremental - Zope-Formulator.spec
- up to 1.11.3
[packages/Zope-Formulator.git] / Zope-Formulator.spec
... / ...
CommitLineData
1
2%define zope_subname Formulator
3Summary: Zope framework that eases the creation and validation of web forms
4Summary(pl.UTF-8): Dodatek do Zope ułatwiający tworzenie i sprawdzanie poprawności formularzy WWW
5Name: Zope-%{zope_subname}
6Version: 1.11.3
7Release: 1
8License: BSD-like
9Group: Development/Tools
10Source0: http://www.infrae.com/download/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz
11# Source0-md5: 59206403a29953fa33d5dce829101ab5
12URL: http://www.infrae.com/products/formulator/
13BuildRequires: python
14BuildRequires: rpmbuild(macros) >= 1.268
15%pyrequires_eq python-modules
16Requires(post,postun): /usr/sbin/installzopeproduct
17Requires: Zope
18BuildArch: noarch
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22%{zope_subname} is a tool to help with the creation and validation of
23web forms. Form fields are stored as objects in Zope, in a special
24Form folder.
25
26%description -l pl.UTF-8
27%{zope_subname} jest narzędziem pomagającym przy tworzeniu i
28sprawdzaniu poprawności formularzy WWW. Pola formularza są zapisywane
29jako obiekty w Zope, w specjalnym folderze Form.
30
31%prep
32%setup -q -n %{zope_subname}
33mkdir docs
34mv -f {CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,TODO.txt} docs
35
36%install
37rm -rf $RPM_BUILD_ROOT
38install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39cp -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 {} \;;
45rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%post
51/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52%service -q zope restart
53
54%postun
55if [ "$1" = "0" ]; then
56 /usr/sbin/installzopeproduct -d %{zope_subname}
57 %service -q zope restart
58fi
59
60%files
61%defattr(644,root,root,755)
62%doc docs/*
63%{_datadir}/%{name}
This page took 0.577069 seconds and 4 git commands to generate.