]> git.pld-linux.org Git - packages/Zope-Formulator.git/blobdiff - Zope-Formulator.spec
- removed %%include /usr/lib/rpm/macros.python
[packages/Zope-Formulator.git] / Zope-Formulator.spec
index 0e122bd708196d35f34331cd737b5fe37d3c3054..3017f51fd173bf91e3a34c05e0cd577d10e5d6e2 100644 (file)
@@ -1,24 +1,21 @@
-%include        /usr/lib/rpm/macros.python
 
 %define        zope_subname    Formulator
-
 Summary:       Zope framework that eases the creation and validation of web forms
 Summary(pl):   Dodatek do Zope u³atwiaj±cy tworzenie i sprawdzanie poprawno¶ci formularzy WWW
 Name:          Zope-%{zope_subname}
-Version:       1.5.0
-Release:       2
+Version:       1.6.2
+Release:       1
 License:       BSD-like
 Group:         Development/Tools
 Source0:       http://www.zope.org/Members/infrae/Formulator/Formulator-%{version}/%{zope_subname}-%{version}.tgz
-# Source0-md5: 3a8dbedbc72f9176ca7fe5a54043e8d4
+# Source0-md5: c5eb395918349036c7ac400dbbff98e9
 URL:           http://www.zope.org/Members/infrae/Formulator/
 %pyrequires_eq  python-modules
 Requires:      Zope
+Requires(post,postun):  /usr/sbin/installzopeproduct
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define         product_dir     /usr/lib/zope/Products
-
 %description
 %{zope_subname} is a tool to help with the creation and validation of web
 forms. Form fields are stored as objects in Zope, in a special Form folder.
@@ -37,29 +34,33 @@ mv -f {CREDITS.txt,HISTORY.txt,INSTALL.txt,README.txt,TODO.txt} docs
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
-cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -af {dtml,help,tests,www,*.py,*.html,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-%py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
-%py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
+%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
 
 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
-rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/docs
+rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
+/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
 if [ -f /var/lock/subsys/zope ]; then
-        /etc/rc.d/init.d/zope restart >&2
+       /etc/rc.d/init.d/zope restart >&2
 fi
 
 %postun
-if [ -f /var/lock/subsys/zope ]; then
-        /etc/rc.d/init.d/zope restart >&2
+if [ "$1" = "0" ]; then
+       /usr/sbin/installzopeproduct -d %{zope_subname} 
+       if [ -f /var/lock/subsys/zope ]; then
+               /etc/rc.d/init.d/zope restart >&2
+       fi
 fi
-               
+
 %files
 %defattr(644,root,root,755)
 %doc docs/*
-%{product_dir}/%{zope_subname}
+%{_datadir}/%{name}
This page took 0.057333 seconds and 4 git commands to generate.