]> git.pld-linux.org Git - packages/Zope-COREBlog.git/commitdiff
- install into new dir (datadir) auto/ac/Zope-COREBlog-0_52b-2
authorciesiel <ciesiel@pld-linux.org>
Mon, 17 Nov 2003 11:18:27 +0000 (11:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- installzopeproduct
- cleaning

Changed files:
    Zope-COREBlog.spec -> 1.4

Zope-COREBlog.spec

index f86b122c7c22f4ff8557d5515c21327b2e98e5a6..2a42d1bce97446cc635e97b83d843b4b0959390a 100644 (file)
@@ -4,7 +4,7 @@ Summary:        Blog / Weblog / Web Nikki system on Zope
 Summary(pl):   System bloga/webloga oparty na Zope
 Name:          Zope-%{zope_subname}
 Version:       0.52b
-Release:       1
+Release:       2
 License:       GPL
 Group:         Development/Tools
 Source0:       http://zope.org/Members/ats/%{zope_subname}/%{zope_subname}%20%{version}/%{zope_subname}052b.tgz
@@ -12,11 +12,10 @@ Source0:    http://zope.org/Members/ats/%{zope_subname}/%{zope_subname}%20%{version
 URL:           http://zope.org/Members/ats/COREBlog/
 %pyrequires_eq python-modules
 Requires:      Zope >= 2.6.1
+Requires(post,postun):  /usr/sbin/installzopeproduct
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define        product_dir     /usr/lib/zope/Products
-
 %description
 Blog / Weblog / Web Nikki system on Zope.
 
@@ -33,30 +32,34 @@ mv -f stripogram/readme.txt docs/stripogram
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+cp -af * $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
 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.065817 seconds and 4 git commands to generate.