The attached patch updates the zope-2.7.2.0-20040722 spec file
fixing a problem where the %{l_prefix}/etc/zope/zope.conf file
isn't declared as a configuration file, and adding an option to
include documentation and zope tutorial.
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
When the customer has beaten upon you long enough, give him what he asks
for, instead of what he needs. This is very strong medicine, and is
normally only required once.
-- The Consultant's Curse:
--- zope.spec.20040722 2004-07-22 01:07:23.000000000 -0700
+++ zope.spec 2004-08-05 11:14:28.000000000 -0700
@@ -38,7 +38,10 @@
Group: Web
License: Zope Public License
Version: %{V_major}.%{V_minor}
-Release: 20040722
+Release: 20040805
+
+# package options
+%option with_zope_doc yes
# list of sources
Source0: http://zope.org/Products/Zope/%{V_major}/Zope-%{V_major}-%{V_minor}.tgz
@@ -122,9 +125,20 @@
# strip down installation
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/README.txt
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/skel
+%if %{with_zope_doc} == "yes"
+ newname=$RPM_BUILD_ROOT%{l_prefix}/zope-%{version}
+ mv $RPM_BUILD_ROOT%{l_prefix}/doc $newname
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/doc \
+ $RPM_BUILD_ROOT%{l_prefix}/share/zope
+ mv $newname $RPM_BUILD_ROOT%{l_prefix}/doc
+ mv $RPM_BUILD_ROOT%{l_prefix}/import \
+ $RPM_BUILD_ROOT%{l_prefix}/share/zope
+%else
rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc
rm -rf $RPM_BUILD_ROOT%{l_prefix}/import
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/skel
+%endif
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
@@ -135,6 +149,7 @@
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
+ '%config(noreplace) %{l_prefix}/etc/zope/zope.conf' \
'%attr(700,%{l_rusr},%{l_rgrp}) %dir %{l_prefix}/var/zope/log' \
'%attr(700,%{l_rusr},%{l_rgrp}) %dir %{l_prefix}/var/zope/var'