[python-zope-interface] - Remove python-zope-filesystem from requirements - Own %%{python_sitearch}/zope/ - BR: python-setup

cheeselee cheeselee at fedoraproject.org
Tue Aug 31 01:58:06 UTC 2010


commit 6d99a62a843741881db2a8cb199e20b0d563e4c8
Author: Robin Lee <robinlee.sysu at gmail.com>
Date:   Tue Aug 31 09:57:45 2010 +0800

    - Remove python-zope-filesystem from requirements
    - Own %%{python_sitearch}/zope/
    - BR: python-setuptools-devel renamed to python-setuptools
    - Spec cleaned up

 python-zope-interface.spec |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/python-zope-interface.spec b/python-zope-interface.spec
index 616c1c7..6bea068 100644
--- a/python-zope-interface.spec
+++ b/python-zope-interface.spec
@@ -1,18 +1,13 @@
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-
 Name:		python-zope-interface
 Version:	3.6.1
-Release:	2%{?dist}
+Release:	3%{?dist}
 Summary:	Zope 3 Interface Infrastructure
 Group:		Development/Libraries
 License:	ZPLv2.1
 URL:		http://pypi.python.org/pypi/zope.interface
 Source0:	http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:	python-devel
-# zope.interface 3.5.0 won't build the C extension if distutils are used
-BuildRequires:  python-setuptools-devel
-Requires:       python-zope-filesystem
+BuildRequires:	python-setuptools
 
 %description
 Interfaces are a mechanism for labeling objects as conforming to a given API
@@ -27,7 +22,6 @@ This is a separate distribution of the zope.interface package used in Zope 3.
 CFLAGS="%{optflags}" %{__python} setup.py build
 
 %install
-%{__rm} -rf %{buildroot}
 %{__python} setup.py install -O1 --skip-build --root  %{buildroot}
 
 # Will put docs in %{_docdir} instead
@@ -37,21 +31,26 @@ CFLAGS="%{optflags}" %{__python} setup.py build
 %{__rm} -f %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.c
 
 # Fix permissions of shared objects to placate rpmlint
-%{__chmod} 755  %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.so
+%{__chmod} 755 %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.so
 
 %check
 # Skipped; would require zope.testing, which isn't in Fedora yet
 
-%clean
-%{__rm} -rf %{buildroot}
-
 %files
 %defattr(-,root,root,-)
 %doc CHANGES.txt COPYRIGHT.txt LICENSE.txt src/zope/interface/*.txt
-%{python_sitearch}/zope/*
-%{python_sitearch}/zope.interface*
+%{python_sitearch}/zope/interface/
+%dir %{python_sitearch}/zope/
+%{python_sitearch}/zope.interface-*.egg-info
+%{python_sitearch}/zope.interface-*-nspkg.pth
 
 %changelog
+* Tue Aug 31 2010 Robin Lee <robinlee.sysu at gmail.com> - 3.6.1-3
+- Remove python-zope-filesystem from requirements
+- Own %%{python_sitearch}/zope/
+- BR: python-setuptools-devel renamed to python-setuptools
+- Spec cleaned up
+
 * Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 3.6.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
 


More information about the scm-commits mailing list