Compare commits
No commits in common. "517086fb98944c8936b72173301de9fa03ba5946" and "25bc2287834bcc5d5ad96805ea44a20ab5dfb387" have entirely different histories.
517086fb98
...
25bc228783
@ -1,10 +1,13 @@
|
|||||||
|
%global with_python2 1
|
||||||
|
%global with_python3 1
|
||||||
|
|
||||||
Name: python-zope-event
|
Name: python-zope-event
|
||||||
Version: 5.0
|
Version: 4.2.0
|
||||||
Release: 1
|
Release: 12
|
||||||
Summary: Zope Event Publication
|
Summary: Zope Event Publication
|
||||||
License: ZPLv2.1
|
License: ZPLv2.1
|
||||||
URL: http://pypi.python.org/pypi/zope.event/
|
URL: http://pypi.python.org/pypi/zope.event/
|
||||||
Source0: https://files.pythonhosted.org/packages/46/c2/427f1867bb96555d1d34342f1dd97f8c420966ab564d58d18469a1db8736/zope.event-5.0.tar.gz
|
Source0: http://pypi.python.org/packages/source/z/zope.event/zope.event-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -14,6 +17,27 @@ 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.)
|
||||||
|
|
||||||
|
%if 0%{?with_python2}
|
||||||
|
%package -n python2-zope-event
|
||||||
|
Summary: Zope Event Publication (Python 2)
|
||||||
|
%{?python_provide:%python_provide python2-zope-event}
|
||||||
|
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
BuildRequires: python2-setuptools
|
||||||
|
|
||||||
|
Requires: python2
|
||||||
|
|
||||||
|
%description -n python2-zope-event
|
||||||
|
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.)
|
||||||
|
|
||||||
|
This package contains the version for Python 2.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_python3}
|
||||||
%package -n python3-zope-event
|
%package -n python3-zope-event
|
||||||
Summary: Zope Event Publication (Python 3)
|
Summary: Zope Event Publication (Python 3)
|
||||||
%{?python_provide:%python_provide python3-zope-event}
|
%{?python_provide:%python_provide python3-zope-event}
|
||||||
@ -33,13 +57,22 @@ on which more sophisticated event dispatching systems can be built.
|
|||||||
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 3.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n zope.event-%{version}
|
%setup -q -n zope.event-%{version}
|
||||||
rm -rf %{modname}.egg-info
|
rm -rf %{modname}.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# build with python2
|
||||||
|
%if 0%{?with_python2}
|
||||||
|
%py2_build
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# build with python3
|
||||||
|
%if 0%{?with_python3}
|
||||||
%py3_build
|
%py3_build
|
||||||
|
%endif
|
||||||
|
|
||||||
# build the sphinx documents
|
# build the sphinx documents
|
||||||
pushd docs
|
pushd docs
|
||||||
@ -48,11 +81,35 @@ rm -f _build/html/.buildinfo
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if 0%{?with_python2}
|
||||||
|
%py2_install
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_python3}
|
||||||
%py3_install
|
%py3_install
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if 0%{?with_python2}
|
||||||
|
%{__python2} setup.py test
|
||||||
|
%endif
|
||||||
|
%if 0%{?with_python3}
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_python2}
|
||||||
|
%files -n python2-zope-event
|
||||||
|
%doc CHANGES.rst COPYRIGHT.txt README.rst
|
||||||
|
%doc docs/_build/html/
|
||||||
|
%license LICENSE.txt
|
||||||
|
%{python2_sitelib}/zope/event/
|
||||||
|
%exclude %{python2_sitelib}/zope/event/tests.py*
|
||||||
|
%dir %{python2_sitelib}/zope/
|
||||||
|
%{python2_sitelib}/zope.event-*.egg-info
|
||||||
|
%{python2_sitelib}/zope.event-*-nspkg.pth
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_python3}
|
||||||
%files -n python3-zope-event
|
%files -n python3-zope-event
|
||||||
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
|
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
|
||||||
%doc docs/_build/html/
|
%doc docs/_build/html/
|
||||||
@ -63,23 +120,8 @@ popd
|
|||||||
%dir %{python3_sitelib}/zope/
|
%dir %{python3_sitelib}/zope/
|
||||||
%{python3_sitelib}/zope.event-*.egg-info
|
%{python3_sitelib}/zope.event-*.egg-info
|
||||||
%{python3_sitelib}/zope.event-*-nspkg.pth
|
%{python3_sitelib}/zope.event-*-nspkg.pth
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Jul 10 2023 chenzixuan<chenzixuan@kylinos.cn> - 5.0-1
|
|
||||||
- Update package to version 5.0
|
|
||||||
|
|
||||||
* Thu Feb 9 2023 wubijie <wubijie@kylinos.cn> - 4.6-1
|
|
||||||
- Update package to version 4.6
|
|
||||||
|
|
||||||
* Tue Aug 02 2022 zhaoshuang <zhaoshuang@uniontech.com> - 4.5.0-1
|
|
||||||
- update to v4.5.0
|
|
||||||
|
|
||||||
* Thu Oct 29 2020 xinghe <xinghe1@huawei.com> - 4.2.0-14
|
|
||||||
- remove python2 dependency
|
|
||||||
|
|
||||||
* Tue Sep 8 2020 Ge Wang <wangge20@huawei.com> - 4.2.0-13
|
|
||||||
- Modify Source0 Url
|
|
||||||
|
|
||||||
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.2.0-12
|
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.2.0-12
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
BIN
zope.event-4.2.0.tar.gz
Normal file
BIN
zope.event-4.2.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user