]> git.pld-linux.org Git - packages/Zope-ExternalEditor.git/commitdiff
- install in %{_datadir}/%{name}
authorJacek Konieczny <jajcus@pld-linux.org>
Sun, 16 Nov 2003 15:47:46 +0000 (15:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- installzopeproduct in %post/%postun

Changed files:
    Zope-ExternalEditor.spec -> 1.10

Zope-ExternalEditor.spec

index 45c518b59940701b838c993f507dd53ff9bdfd01..1558668943772510bfd25eec15572beff6ac1209 100644 (file)
@@ -16,8 +16,6 @@ Requires:     Zope
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define        product_dir     /usr/lib/zope/Products
-
 %description
 ExternalEditor is a Zope product, a new way to integrate Zope more seamlessly
 with client-side tools. 
@@ -37,12 +35,12 @@ dost
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-install -m 644 {*.py,*.gif,*.dtml,README.txt} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+install -m 644 {*.py,*.gif,*.dtml,README.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}
 
 # rm $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.py
 
@@ -50,16 +48,20 @@ install -m 644 {*.py,*.gif,*.dtml,README.txt} $RPM_BUILD_ROOT%{product_dir}/%{zo
 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
 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 CHANGES.txt INSTALL-UNIX.txt LICENSE.txt README.txt
-%{product_dir}/%{zope_subname}
+%{_datadir}/%{name}
This page took 0.108947 seconds and 4 git commands to generate.