rpms/zope/FC-5 zope.spec,1.28,1.29

Jonathan Steffan (jsteffan) fedora-extras-commits at redhat.com
Wed May 23 21:06:19 UTC 2007


Author: jsteffan

Update of /cvs/extras/rpms/zope/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24463

Modified Files:
	zope.spec 
Log Message:
Added zope.pth



Index: zope.spec
===================================================================
RCS file: /cvs/extras/rpms/zope/FC-5/zope.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- zope.spec	8 Apr 2007 04:36:25 -0000	1.28
+++ zope.spec	23 May 2007 21:05:44 -0000	1.29
@@ -1,5 +1,7 @@
 %define python_minver 2.4.2
 
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
 %define zope_user      zope
 %define zope_group     %{zope_user}
 
@@ -13,7 +15,7 @@
 Name:    zope
 Summary: Web application server for flexible content management applications
 Version: 2.9.7
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: ZPL
 Group: 	 System Environment/Daemons
 URL:     http://www.zope.org/
@@ -120,6 +122,11 @@
 echo "Zope %{version}-%{release}" > \
     "$RPM_BUILD_ROOT%{software_home}/version.txt"
 
+# write zope.pth
+install -d $RPM_BUILD_ROOT%{python_sitearch}
+echo "%{software_home}" > \
+    "$RPM_BUILD_ROOT%{python_sitearch}/zope.pth"
+
 # Compile .pyc
 %{__python} -c "import compileall; \
     compileall.compile_dir(\"$RPM_BUILD_ROOT%{zope_home}\", \
@@ -179,10 +186,14 @@
 %attr(-, %{zope_user}, %{zope_group}) %{instance_home}/README.txt
 %attr(-, %{zope_user}, %{zope_group}) %{instance_home}/var
 %attr(-, %{zope_user}, %{zope_group}) %config %{instance_home}/etc
+%{python_sitearch}/zope.pth
 
 
 
 %changelog
+* Wed May 23 2007 Jonathan Steffan <jon a fedoraunity.org> 2.9.7-2
+- Added zope.pth to fix misc. zope scripts including some zeo stuff
+
 * Mon Apr 2 2007 Jonathan Steffan <jon a fedoraunity.org> 2.9.7-1
 - Removed hotfix 20070320
 - Updated to 2.9.7




More information about the fedora-extras-commits mailing list