rpms/python-paste-deploy/devel python-paste-deploy.spec,1.13,1.14
Toshio くらとみ
toshio at fedoraproject.org
Fri Jan 29 20:41:03 UTC 2010
Author: toshio
Update of /cvs/pkgs/rpms/python-paste-deploy/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32721
Modified Files:
python-paste-deploy.spec
Log Message:
* Thu Jan 28 2010 Toshio Kuratomi <toshio at fedoraproject.org> - 1.3.3-2
- Modernise the build
Index: python-paste-deploy.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-paste-deploy/devel/python-paste-deploy.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- python-paste-deploy.spec 26 Jul 2009 20:48:56 -0000 1.13
+++ python-paste-deploy.spec 29 Jan 2010 20:41:03 -0000 1.14
@@ -1,9 +1,10 @@
-%{!?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]")}
+%if ! (0%{?fedora} >= 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%endif
Name: python-paste-deploy
Version: 1.3.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Load, configure, and compose WSGI applications and servers
Group: System Environment/Libraries
License: MIT
@@ -12,10 +13,10 @@ Source0: http://cheeseshop.python
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
-%if 0%{?fedora} >= 8
-BuildRequires: python-setuptools-devel
-%else
+%if 0%{?fedora} >= 13 || 0%{?rhel}
BuildRequires: python-setuptools
+%else
+BuildRequires: python-setuptools-devel
%endif
Requires: python-paste
@@ -35,27 +36,23 @@ this configuration file.
%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/deploy -type d | \
- sed 's:%{buildroot}\(.*\):%dir \1:' >> pyfiles
-find %{buildroot}%{python_sitelib}/paste/deploy -not -type d | \
- sed 's:%{buildroot}\(.*\):\1:' >> pyfiles
+%{__python} setup.py install --skip-build --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files -f pyfiles
-%defattr(-,root,root,-)
+%defattr(0644,root,root,0755)
%doc docs/*
-%{python_sitelib}/PasteDeploy-%{version}-py%{pyver}*
+%{python_sitelib}/*
%changelog
+* Thu Jan 28 2010 Toshio Kuratomi <toshio at fedoraproject.org> - 1.3.3-2
+- Modernise the build
+
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
More information about the scm-commits
mailing list