Compare commits

..

No commits in common. 'i10ce' and 'i8ce' have entirely different histories.
i10ce ... i8ce

2
.gitignore vendored

@ -1 +1 @@
SOURCES/zope.event-5.0.tar.gz SOURCES/zope.event-4.2.0.tar.gz

@ -1 +1 @@
e63bf059a157f6edd8ff8beb58c20508799148ac SOURCES/zope.event-5.0.tar.gz 0ee288bac481d736ad3d4a68ef23092a981cb55f SOURCES/zope.event-4.2.0.tar.gz

@ -1,19 +1,14 @@
# Running the tests requires python3-zope-testrunner, which requires %if 0%{?fedora} || 0%{?rhel} > 7
# python3-zope-interface, which requires this package. Build in bootstrap %global with_python3 1
# mode to avoid the circular dependency. %endif
%bcond_with bootstrap
%bcond_without docs
# Install doc subpackage files into the main package doc directory
%global _docdir_fmt %{name}
Name: python-zope-event Name: python-zope-event
Version: 5.0 Version: 4.2.0
Release: 1%{?dist} Release: 12%{?dist}
Summary: Zope Event Publication Summary: Zope Event Publication
License: ZPL-2.1 License: ZPLv2.1
URL: https://pypi.python.org/pypi/zope.event/ URL: http://pypi.python.org/pypi/zope.event/
Source0: %pypi_source zope.event Source0: http://pypi.python.org/packages/source/z/zope.event/zope.event-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
%description %description
@ -23,158 +18,103 @@ on which more sophisticated event dispatching systems can be built.
(For example, a type-based event dispatching system that builds on (For example, a type-based event dispatching system that builds on
zope.event can be found in zope.component.) zope.event can be found in zope.component.)
%package -n python3-zope-event %package -n python2-zope-event
Summary: Zope Event Publication (Python 3) Summary: Zope Event Publication (Python 2)
%{?python_provide:%python_provide python2-zope-event}
BuildRequires: make BuildRequires: python2-devel
BuildRequires: python3-devel BuildRequires: python2-setuptools
%if %{with docs}
BuildRequires: python3-docs
BuildRequires: %{py3_dist sphinx}
%endif
%description -n python3-zope-event Requires: python2
%description -n python2-zope-event
The zope.event package provides a simple event system. It provides The zope.event package provides a simple event system. It provides
an event publishing system and a very simple event-dispatching system an event publishing system and a very simple event-dispatching system
on which more sophisticated event dispatching systems can be built. on which more sophisticated event dispatching systems can be built.
(For example, a type-based event dispatching system that builds on (For example, a type-based event dispatching system that builds on
zope.event can be found in zope.component.) zope.event can be found in zope.component.)
This package contains the version for Python 3. This package contains the version for Python 2.
%package doc %if 0%{?with_python3}
Summary: Documentation for zope.event %package -n python3-zope-event
Summary: Zope Event Publication (Python 3)
%{?python_provide:%python_provide python3-zope-event}
%description doc BuildRequires: python3-devel
Documentation for %{name}. BuildRequires: python3-setuptools
%prep BuildRequires: python3-sphinx
%autosetup -n zope.event-%{version} -p1
# Update the sphinx theme name Requires: python3
sed -i "s/'default'/'classic'/" docs/conf.py
# Use local objects.inv for intersphinx %description -n python3-zope-event
sed -i "s|\('https://docs\.python\.org/': \)None|\1'%{_docdir}/python3-docs/html/objects.inv'|" docs/conf.py The zope.event package provides a simple event system. It provides
an event publishing system and a very simple event-dispatching system
on which more sophisticated event dispatching systems can be built.
(For example, a type-based event dispatching system that builds on
zope.event can be found in zope.component.)
%generate_buildrequires This package contains the version for Python 3.
%if %{with bootstrap}
%pyproject_buildrequires
%else
%pyproject_buildrequires -t
%endif %endif
%prep
%setup -q -n zope.event-%{version}
rm -rf %{modname}.egg-info
%build %build
%pyproject_wheel %py2_build
%if 0%{?with_python3}
%py3_build
%endif
%if %{with docs}
# build the sphinx documents # build the sphinx documents
PYTHONPATH=$PWD/src make -C docs html pushd docs
rm -f docs/_build/html/.buildinfo PYTHONPATH=../src make SPHINXBUILD=sphinx-build-3 html
%endif rm -f _build/html/.buildinfo
popd
%install %install
%pyproject_install %if 0%{?with_python3}
%pyproject_save_files zope %py3_install
%endif
%py2_install
%if %{without bootstrap}
%check %check
%tox %{__python2} setup.py test
%if 0%{?with_python3}
%{__python3} setup.py test
%endif %endif
%files -n python3-zope-event -f %{pyproject_files} %files -n python2-zope-event
%doc CHANGES.rst COPYRIGHT.txt README.rst %doc CHANGES.rst COPYRIGHT.txt README.rst
%doc docs/_build/html/
%license LICENSE.txt %license LICENSE.txt
%{python2_sitelib}/zope/event/
%exclude %{python2_sitelib}/zope/event/tests.py*
%dir %{python2_sitelib}/zope/
#%{python2_sitelib}/zope/__init__*
%{python2_sitelib}/zope.event-*.egg-info
%{python2_sitelib}/zope.event-*-nspkg.pth
%if 0%{?with_python3}
%files -n python3-zope-event
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%doc docs/_build/html/
%license LICENSE.txt
%{python3_sitelib}/zope/event/
%exclude %{python3_sitelib}/zope/event/tests.py* %exclude %{python3_sitelib}/zope/event/tests.py*
%exclude %{python3_sitelib}/zope/event/__pycache__/tests* %exclude %{python3_sitelib}/zope/event/__pycache__/tests*
%dir %{python3_sitelib}/zope/
#%{python3_sitelib}/zope/__init__*
%{python3_sitelib}/zope.event-*.egg-info
%{python3_sitelib}/zope.event-*-nspkg.pth %{python3_sitelib}/zope.event-*-nspkg.pth
%files doc
%if %{with docs}
%doc docs/_build/html/
%endif %endif
%changelog %changelog
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 5.0-1 * Wed Jan 24 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 4.2.0-12
- Rebuilt for MSVSphere 10 - Rebuilt for MSVSphere 8.9
* Mon Jan 29 2024 Jerry James <loganjerry@gmail.com> - 5.0-1
- Version 5.0
- Convert the License field to SPDX
- Drop upstreamed patches
- Simplify with pyproject_save_files
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 4.5.0-7
- Rebuilt for Python 3.12
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 4.5.0-6
- Bootstrap for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Sep 20 2022 Miro Hrončok <mhroncok@redhat.com> - 4.5.0-4
- Disable bootstrap
- Enable docs
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-3.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.5.0-2.1
- Rebuilt for Python 3.11
* Thu Apr 21 2022 Orion Poplawski <orion@nwra.com> - 4.5.0-1.1
- Drop docs for EPEL9
* Fri Mar 4 2022 Jerry James <loganjerry@gmail.com> - 4.5.0-1
- Version 4.5.0 (bz 1475058)
- Add bootstrap conditional to break circular dependency when testing
- Add doc subpackage to hold Sphinx-built documentation
- Add tox and python3 patches to fix build and test failures
- Modernize the spec file
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 4.2.0-21
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 4.2.0-18
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 31 2019 Miro Hrončok <mhroncok@redhat.com> - 4.2.0-16
- Subpackage python2-zope-event has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.2.0-15
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 4.2.0-14
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-12 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save