python-zope-interface/python-zope-interface.spec

61 lines
1.9 KiB
RPMSpec

Name: python-zope-interface
Version: 4.7.2
Release: 1
Summary: Zope 3 Interface Infrastructure
Group: Development/Libraries
License: ZPLv2.1
URL: https://pypi.org/project/zope.interface
Source0: https://files.pythonhosted.org/packages/f8/44/8531e65de6fde76e6055f5ce93e8a482dff534cea9bebcac7845e2273efd/zope.interface-%{version}.tar.gz
%description
Interfaces are a mechanism for labeling objects as conforming to a given API
or contract.
This is a separate distribution of the zope.interface package used in Zope 3.
%package -n python3-zope-interface
Summary: Zope 3 Interface Infrastructure
%{?python_provide:%python_provide python3-zope-interface}
BuildRequires: python3-devel python3-setuptools python3-nose python3-zope-event
Requires: python3-zope-event
%description -n python3-zope-interface
Interfaces are a mechanism for labeling objects as conforming to a given API
or contract.
This is a separate distribution of the zope.interface package used in Zope 3.
%prep
%autosetup -n zope.interface-%{version}
rm -rf %{modname}.egg-info
%build
%py3_build
%install
%py3_install
%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/{,tests/}*.txt
%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/_zope_interface_coptimizations.c
%check
PYTHONPATH=$(pwd) nosetests-3
%files -n python3-zope-interface
%doc README.rst CHANGES.rst COPYRIGHT.txt docs/
%license LICENSE.txt
%{python3_sitearch}/zope/interface/
%dir %{python3_sitearch}/zope/
%exclude %{python3_sitearch}/zope/interface/tests/
%exclude %{python3_sitearch}/zope/interface/common/tests/
%{python3_sitearch}/zope.interface-*.egg-info
%{python3_sitearch}/zope.interface-*-nspkg.pth
%changelog
* Wed Aug 5 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 4.7.2-1
- Upgrade to 4.7.2 to remove deprecated use of setuptools features
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.5.0-3
- Package init