rpms/python-paste/devel python-paste.spec,1.14,1.15

Kyle VanderBeek kylev at fedoraproject.org
Tue Jun 23 02:35:53 UTC 2009


Author: kylev

Update of /cvs/pkgs/rpms/python-paste/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11442

Modified Files:
	python-paste.spec 
Log Message:
Tidy up, modernize .spec, and lose the %ghost'ing


Index: python-paste.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-paste/devel/python-paste.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -p -r1.14 -r1.15
--- python-paste.spec	26 Feb 2009 22:44:27 -0000	1.14
+++ python-paste.spec	23 Jun 2009 02:35:22 -0000	1.15
@@ -1,9 +1,8 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
 
 Name:           python-paste
 Version:        1.7.2
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Tools for using a Web Server Gateway Interface stack
 Group:          System Environment/Libraries
 License:        MIT
@@ -25,6 +24,7 @@ interfaces.
 
 %prep
 %setup -q -n Paste-%{version}
+# Strip #! lines that make these seeme like scripts
 %{__sed} -i -e '/^#!.*/,1 d' paste/util/scgiserver.py paste/debug/doctest_webapp.py
 
 # clean docs directory
@@ -32,36 +32,31 @@ pushd docs
 rm StyleGuide.txt *.css */*.css */*.js
 popd
 
+
 %build
 %{__python} setup.py build
 
 
 %install
 rm -rf %{buildroot}
-%{__python} setup.py install --single-version-externally-managed \
-                             --skip-build -O1 --root=%{buildroot}
-
-echo '%defattr (0644,root,root,0755)' > pyfiles
-find %{buildroot}%{python_sitelib}/paste -type d | \
-    sed 's:%{buildroot}\(.*\):%dir \1:' >> pyfiles
-find %{buildroot}%{python_sitelib}/paste -not -type d -not -name '*.pyo' | \
-    sed 's:%{buildroot}\(.*\):\1:' >> pyfiles
-find %{buildroot}%{python_sitelib}/paste -not -type d -name '*.pyo' | \
-    sed 's:%{buildroot}\(.*\):%ghost \1:' >> pyfiles
-
+%{__python} setup.py install --skip-build --root %{buildroot}
 
 
 %clean
 rm -rf %{buildroot}
 
 
-%files -f pyfiles
+%files
 %defattr(-,root,root,-)
 %doc docs/*
-%{python_sitelib}/Paste-%{version}-py%{pyver}*
+%{python_sitelib}/*
 
 
 %changelog
+* Mon Jun 22 2009 Kyle VanderBeek <kylev at kylev.com> - 1.7.2-3
+- Package formerly ghost'ed .pyo files
+- Update to current python package methods
+
 * Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.7.2-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list