- Remove python-zope-filesystem from requirements

- Own %%{python_sitearch}/zope/
- BR: python-setuptools-devel renamed to python-setuptools
- Spec cleaned up
epel8
Robin Lee 15 years ago
parent e76296faaf
commit 6d99a62a84

@ -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@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@redhat.com> - 3.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

Loading…
Cancel
Save