]> git.pld-linux.org Git - packages/Zope-Formulator.git/blame - Zope-Formulator.spec
- up to 1.11.3
[packages/Zope-Formulator.git] / Zope-Formulator.spec
CommitLineData
e8b31cef 1
911642eb 2%define zope_subname Formulator
24a5cb26 3Summary: Zope framework that eases the creation and validation of web forms
74077c59 4Summary(pl.UTF-8): Dodatek do Zope ułatwiający tworzenie i sprawdzanie poprawności formularzy WWW
911642eb 5Name: Zope-%{zope_subname}
21a04b4b 6Version: 1.11.3
40dd4782 7Release: 1
dae44c26 8License: BSD-like
911642eb 9Group: Development/Tools
40dd4782 10Source0: http://www.infrae.com/download/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz
21a04b4b 11# Source0-md5: 59206403a29953fa33d5dce829101ab5
40dd4782 12URL: http://www.infrae.com/products/formulator/
3a724d29 13BuildRequires: python
a0d42842 14BuildRequires: rpmbuild(macros) >= 1.268
3a724d29 15%pyrequires_eq python-modules
3a724d29 16Requires(post,postun): /usr/sbin/installzopeproduct
a0d42842 17Requires: Zope
95de452a 18BuildArch: noarch
78ed87fd 19BuildRoot: %{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
23web forms. Form fields are stored as objects in Zope, in a special
24Form folder.
78ed87fd 25
ea0f5063
JR
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
a0d42842 29jako obiekty w Zope, w specjalnym folderze Form.
24a5cb26 30
78ed87fd 31%prep
911642eb 32%setup -q -n %{zope_subname}
911642eb 33mkdir docs
34mv -f {CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,TODO.txt} docs
78ed87fd 35
36%install
37rm -rf $RPM_BUILD_ROOT
e2fc7f17 38install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
77925b5e 39cp -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 45rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
78ed87fd 46
47%clean
48rm -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 55if [ "$1" = "0" ]; then
a0d42842
ER
56 /usr/sbin/installzopeproduct -d %{zope_subname}
57 %service -q zope restart
911642eb 58fi
e2fc7f17 59
78ed87fd 60%files
61%defattr(644,root,root,755)
911642eb 62%doc docs/*
e2fc7f17 63%{_datadir}/%{name}
This page took 0.030507 seconds and 4 git commands to generate.