|
|
|
@ -1,28 +1,24 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.7.3)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 3;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
# Bconds are needed for Python bootstrap
|
|
|
|
|
%bcond docs %{undefined rhel}
|
|
|
|
|
%bcond tests 1
|
|
|
|
|
|
|
|
|
|
# Install doc subpackage files into the main package doc directory
|
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
|
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
|
|
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
|
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Filter private shared library provides
|
|
|
|
|
%filter_provides_in %{python2_sitearch}/zope/interface/.*\.so$
|
|
|
|
|
%filter_setup
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-zope-interface
|
|
|
|
|
Version: 7.1.1
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Version: 4.6.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Zope 3 Interface Infrastructure
|
|
|
|
|
License: ZPL-2.1
|
|
|
|
|
License: ZPLv2.1
|
|
|
|
|
URL: https://pypi.io/project/zope.interface
|
|
|
|
|
Source0: %{pypi_source zope.interface}
|
|
|
|
|
Patch0001: 0001-setup.py.patch
|
|
|
|
|
Source0: https://pypi.io/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Interfaces are a mechanism for labeling objects as conforming to a given API
|
|
|
|
@ -30,236 +26,113 @@ or contract.
|
|
|
|
|
|
|
|
|
|
This is a separate distribution of the zope.interface package used in Zope 3.
|
|
|
|
|
|
|
|
|
|
%package -n python2-zope-interface
|
|
|
|
|
Summary: Zope 3 Interface Infrastructure
|
|
|
|
|
%{?python_provide:%python_provide python2-zope-interface}
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
BuildRequires: python2-nose
|
|
|
|
|
BuildRequires: python2-zope-event
|
|
|
|
|
|
|
|
|
|
Requires: python2-zope-event
|
|
|
|
|
|
|
|
|
|
# since F14
|
|
|
|
|
Obsoletes: python-zope-filesystem <= 1-8
|
|
|
|
|
|
|
|
|
|
%description -n python2-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.
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%package -n python3-zope-interface
|
|
|
|
|
Summary: Zope 3 Interface Infrastructure
|
|
|
|
|
%{?python_provide:%python_provide python3-zope-interface}
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
|
BuildRequires: 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.
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for zope.interface
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python3-docs
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n zope.interface-%{version} -p1
|
|
|
|
|
%setup -n zope.interface-%{version} -q
|
|
|
|
|
|
|
|
|
|
# Remove version limit from setuptools
|
|
|
|
|
sed -i '/setuptools/s/<.*"/"/' pyproject.toml
|
|
|
|
|
rm -rf %{modname}.egg-info
|
|
|
|
|
|
|
|
|
|
# Update the sphinx theme name
|
|
|
|
|
sed -i "s/'default'/'classic'/" docs/conf.py
|
|
|
|
|
|
|
|
|
|
# Use local objects.inv for intersphinx
|
|
|
|
|
sed -i "s|\('https://docs\.python\.org/': \)None|\1'%{_docdir}/python3-docs/html/objects.inv'|" docs/conf.py
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires %{?with_docs: -x docs} %{?with_tests: -x test}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
%install
|
|
|
|
|
# python3 block
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
# build the sphinx documents
|
|
|
|
|
PYTHONPATH=$PWD/src make -C docs html
|
|
|
|
|
rm -f docs/_build/html/.buildinfo
|
|
|
|
|
# Will put docs in %%{_docdir} instead
|
|
|
|
|
%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/{,tests/}*.txt
|
|
|
|
|
|
|
|
|
|
# C files don't need to be packaged
|
|
|
|
|
%{__rm} -f %{buildroot}%{python3_sitearch}/zope/interface/_zope_interface_coptimizations.c
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
# do it again for python2
|
|
|
|
|
%py2_install
|
|
|
|
|
|
|
|
|
|
# Will put docs in %%{_docdir} instead
|
|
|
|
|
%{__rm} -f %{buildroot}%{python2_sitearch}/zope/interface/{,tests/}*.txt
|
|
|
|
|
|
|
|
|
|
# C files don't need to be packaged
|
|
|
|
|
rm -f %{buildroot}%{python3_sitearch}/zope/interface/_zope_interface_coptimizations.c
|
|
|
|
|
%{__rm} -f %{buildroot}%{python2_sitearch}/zope/interface/_zope_interface_coptimizations.c
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
# We have to run tests installed together with the package
|
|
|
|
|
# https://github.com/zopefoundation/zope.interface/issues/196
|
|
|
|
|
pushd %{buildroot}%{python3_sitearch}
|
|
|
|
|
PURE_PYTHON=1 python3 -m unittest discover -vv -s zope/interface -t .
|
|
|
|
|
popd
|
|
|
|
|
PYTHONPATH=$(pwd) nosetests-2
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
PYTHONPATH=$(pwd) nosetests-3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python2-zope-interface
|
|
|
|
|
%doc README.rst CHANGES.rst COPYRIGHT.txt docs/
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%{python2_sitearch}/zope/interface/
|
|
|
|
|
# Co-own %%{python2_sitearch}/zope/
|
|
|
|
|
%dir %{python2_sitearch}/zope/
|
|
|
|
|
%exclude %{python2_sitearch}/zope/interface/tests/
|
|
|
|
|
%exclude %{python2_sitearch}/zope/interface/common/tests/
|
|
|
|
|
%{python2_sitearch}/zope.interface-*.egg-info
|
|
|
|
|
%{python2_sitearch}/zope.interface-*-nspkg.pth
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python3-zope-interface
|
|
|
|
|
%doc README.rst CHANGES.rst
|
|
|
|
|
%license COPYRIGHT.txt LICENSE.txt
|
|
|
|
|
%doc README.rst CHANGES.rst COPYRIGHT.txt docs/
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%{python3_sitearch}/zope/interface/
|
|
|
|
|
# Co-own %%{python3_sitearch}/zope/
|
|
|
|
|
%dir %{python3_sitearch}/zope/
|
|
|
|
|
%exclude %{python3_sitearch}/zope/interface/tests/
|
|
|
|
|
%exclude %{python3_sitearch}/zope/interface/common/tests/
|
|
|
|
|
%{python3_sitearch}/zope.interface-*.dist-info
|
|
|
|
|
%{python3_sitearch}/zope.interface-*.egg-info
|
|
|
|
|
%{python3_sitearch}/zope.interface-*-nspkg.pth
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%files doc
|
|
|
|
|
%doc docs/_build/html/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 7.1.1-3
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Fri Nov 08 2024 Kaleb S. KEITHLEY <kkeithle@redhat.com> - 7.1.1-3
|
|
|
|
|
- epel10
|
|
|
|
|
|
|
|
|
|
* Sun Oct 27 2024 Lumir Balhar <lbalhar@redhat.com> - 7.1.1-2
|
|
|
|
|
- Remove version limit from setuptools
|
|
|
|
|
|
|
|
|
|
* Thu Oct 24 2024 Lumir Balhar <lbalhar@redhat.com> - 7.1.1-1
|
|
|
|
|
- Update to 7.1.1 (rhbz#2321317)
|
|
|
|
|
|
|
|
|
|
* Tue Oct 15 2024 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 7.1.0-3
|
|
|
|
|
- Rebuild for rust-add-determinism-0.4.1-1.fc42
|
|
|
|
|
|
|
|
|
|
* Mon Oct 14 2024 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 7.1.0-2
|
|
|
|
|
- Rebuild for rust-add-determinism-0.4.0-2.fc42
|
|
|
|
|
|
|
|
|
|
* Fri Oct 11 2024 Lumir Balhar <lbalhar@redhat.com> - 7.1.0-1
|
|
|
|
|
- Update to 7.1.0 (rhbz#2317779)
|
|
|
|
|
|
|
|
|
|
* Thu Sep 26 2024 Lumir Balhar <lbalhar@redhat.com> - 7.0.3-2
|
|
|
|
|
- Fix FTBFS with Python 3.13.0rc2
|
|
|
|
|
|
|
|
|
|
* Wed Aug 28 2024 Lumir Balhar <lbalhar@redhat.com> - 7.0.3-1
|
|
|
|
|
- Update to 7.0.3 (rhbz#2307991)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2024 Lumir Balhar <lbalhar@redhat.com> - 7.0.1-1
|
|
|
|
|
- Update to 7.0.1 (rhbz#2282309)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.3-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 6.3-4
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 6.3-3
|
|
|
|
|
- Bootstrap for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Tue May 14 2024 Karolina Surma <ksurma@redhat.com> - 6.3-2
|
|
|
|
|
- Fix the build with Python 3.13.0b1
|
|
|
|
|
|
|
|
|
|
* Mon Apr 15 2024 Lumir Balhar <lbalhar@redhat.com> - 6.3-1
|
|
|
|
|
- Update to 6.3 (rhbz#2274748)
|
|
|
|
|
|
|
|
|
|
* Sun Apr 14 2024 Miroslav Suchý <msuchy@redhat.com> - 6.2-2
|
|
|
|
|
- convert ZPLv2.1 license to SPDX
|
|
|
|
|
|
|
|
|
|
* Fri Feb 16 2024 Lumir Balhar <lbalhar@redhat.com> - 6.2-1
|
|
|
|
|
- Update to 6.2 (rhbz#2264505)
|
|
|
|
|
|
|
|
|
|
* Mon Jan 29 2024 Karolina Surma <ksurma@redhat.com> - 6.0-5
|
|
|
|
|
- Make test_document compatible with Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Aug 16 2023 Lumír Balhar <lbalhar@redhat.com> - 6.0-1
|
|
|
|
|
- Update to 6.0 (rhbz#2179283)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.2-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 5.5.2-4
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 5.5.2-3
|
|
|
|
|
- Bootstrap for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Nov 18 2022 Lumír Balhar <lbalhar@redhat.com> - 5.5.2-1
|
|
|
|
|
- Update to 5.5.2 (rhbz#2143698)
|
|
|
|
|
|
|
|
|
|
* Thu Nov 03 2022 Lumír Balhar <lbalhar@redhat.com> - 5.5.1-1
|
|
|
|
|
- Update to 5.5.1
|
|
|
|
|
Resolves: rhbz#2139843
|
|
|
|
|
|
|
|
|
|
* Mon Oct 10 2022 Lumír Balhar <lbalhar@redhat.com> - 5.5.0-1
|
|
|
|
|
- Update to 5.5.0
|
|
|
|
|
Resolves: rhbz#2046687
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 5.4.0-7
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 5.4.0-6
|
|
|
|
|
- Bootstrap for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Sep 8 2021 Jerry James <loganjerry@gmail.com> - 5.4.0-4
|
|
|
|
|
- BR gcc to build the optimized interface
|
|
|
|
|
- Add doc subpackage to hold Sphinx-built documentation
|
|
|
|
|
- Modernize the spec file
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 5.4.0-2
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* Thu Apr 29 2021 Lumír Balhar <lbalhar@redhat.com> - 5.4.0-1
|
|
|
|
|
- Update to 5.4.0 (#1949876)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Nov 19 2020 Lumír Balhar <lbalhar@redhat.com> - 5.2.0-1
|
|
|
|
|
- Update to 5.2.0 (#1894930)
|
|
|
|
|
|
|
|
|
|
* Fri Oct 02 2020 Lumír Balhar <lbalhar@redhat.com> - 5.1.2-1
|
|
|
|
|
- Update to 5.1.2 (#1883998)
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 5.1.0-2
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu Apr 09 2020 Lumír Balhar <lbalhar@redhat.com> - 5.1.0-1
|
|
|
|
|
- Update to 5.1.0 (#1822171)
|
|
|
|
|
|
|
|
|
|
* Fri Mar 20 2020 Lumír Balhar <lbalhar@redhat.com> - 5.0.2-1
|
|
|
|
|
- Update to 5.0.2 (#1815086)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 4.7.1-1
|
|
|
|
|
- Update to 4.7.1 (#1771185)
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2019 Lumír Balhar <lbalhar@redhat.com> - 4.6.0-5
|
|
|
|
|
- Python 2 subpackage removed
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.6.0-4
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 4.6.0-3
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
* Wed Jan 24 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 4.6.0-1
|
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
|
|
|
|
|
* Tue Feb 05 2019 Lumír Balhar <lbalhar@redhat.com> - 4.6.0-1
|
|
|
|
|
- New upstream version
|
|
|
|
@ -500,4 +373,3 @@ Resolves: rhbz#2046687
|
|
|
|
|
* Mon Feb 07 2005 Jeff Pitman <symbiont+pyvault@berlios.de> 3.0.1-1
|
|
|
|
|
- new rpm
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|