diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..591a0fa --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +zope.testing-3.9.5.tar.gz +/zope.testing-3.10.0.tar.gz +/zope.testing-3.10.2.tar.gz +/zope.testing-3.10.3.tar.gz +/zope.testing-4.1.1.tar.gz +/zope.testing-4.1.2.zip +/zope.testing-4.1.3.tar.gz +/zope.testing-4.5.0.tar.gz +/zope.testing-4.6.1.tar.gz diff --git a/Makefile b/Makefile deleted file mode 100644 index d2b23bc..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: python-zope-testing -# $Id$ -NAME := python-zope-testing -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/python-zope-testing.spec b/python-zope-testing.spec new file mode 100644 index 0000000..e9275a9 --- /dev/null +++ b/python-zope-testing.spec @@ -0,0 +1,227 @@ +%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 + +%global modname zope.testing + +%bcond_without python3 + +Name: python-zope-testing +Version: 4.6.1 +Release: 8%{?dist} +Summary: Zope Testing Framework +License: ZPLv2.1 +URL: https://pypi.io/project/%{modname} +Source0: https://pypi.io/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz + +BuildArch: noarch + +%description +This package provides a number of testing frameworks. It includes a +flexible test runner, and supports both doctest and unittest. + + +%package -n python2-zope-testing +Summary: Zope Testing Framework +%{?python_provide:%python_provide python2-zope-testing} + +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-zope-exceptions +BuildRequires: python2-zope-interface +Requires: python2-zope-exceptions +Requires: python2-zope-interface + +%description -n python2-zope-testing +This package provides a number of testing frameworks. It includes a +flexible test runner, and supports both doctest and unittest. + +%if %{with python3} +%package -n python%{python3_pkgversion}-zope-testing +Summary: Zope Testing Framework +%{?python_provide:%python_provide python%{python3_pkgversion}-zope-testing} + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-zope-exceptions +BuildRequires: python%{python3_pkgversion}-zope-interface +Requires: python%{python3_pkgversion}-zope-exceptions +Requires: python%{python3_pkgversion}-zope-interface + +%description -n python%{python3_pkgversion}-zope-testing +This package provides a number of testing frameworks. It includes a +flexible test runner, and supports both doctest and unittest. +%endif + +%prep +%setup -q -n %{modname}-%{version} + +rm -rf %{modname}.egg-info + +%build +%{py2_build} +%if %{with python3} +%{py3_build} +%endif + +%install +%{py2_install} +# __init__.py* are not needed since .pth file is used +rm -f %{buildroot}%{python2_sitelib}/zope/__init__.py* +%if %{with python3} +%{py3_install} +# __init__.py* are not needed since .pth file is used +rm -f %{buildroot}%{python3_sitelib}/zope/__init__.py* +%endif + +%check +%{__python2} setup.py test +%if %{with python3} +%{__python3} setup.py test +%endif + +%files -n python2-zope-testing +%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst src/zope/testing/*.txt +%{python2_sitelib}/zope/testing/ +%exclude %{python2_sitelib}/zope/testing/*.txt +%{python2_sitelib}/%{modname}-*.egg-info +%{python2_sitelib}/%{modname}-*-nspkg.pth + +%if %{with python3} +%files -n python%{python3_pkgversion}-zope-testing +%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst src/zope/testing/*.txt +%{python3_sitelib}/zope/testing/ +%exclude %{python3_sitelib}/zope/testing/*.txt +%{python3_sitelib}/%{modname}-*.egg-info +%{python3_sitelib}/%{modname}-*-nspkg.pth +%endif + +%changelog +* Sat Mar 09 2019 Carl George - 4.6.1-8 +- EPEL compatibility + +* Sat Feb 02 2019 Fedora Release Engineering - 4.6.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 4.6.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jun 17 2018 Miro Hrončok - 4.6.1-5 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 4.6.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 4.6.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 4.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Jan 05 2017 Ralph Bean - 4.6.1-1 +- new version + +* Mon Dec 19 2016 Miro Hrončok - 4.5.0-6 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Ralph Bean - 4.5.0-5 +- Add an explicit python2 subpackage. +- Modernize python macros. + +* Tue Jul 19 2016 Fedora Release Engineering - 4.5.0-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 4.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 4.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Wed Sep 16 2015 Ralph Bean - 4.5.0-1 +- new version + +* Thu Jun 18 2015 Fedora Release Engineering - 4.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Aug 20 2014 Ralph Bean - 4.1.3-1 +- Latest upstream. +- Modernized python macros. + +* Sun Jun 08 2014 Fedora Release Engineering - 4.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 14 2014 Bohuslav Kabrda - 4.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Sun Aug 04 2013 Fedora Release Engineering - 4.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Feb 25 2013 Ralph Bean - 4.1.2-1 +- Latest upstream. +- Enabled python3 tests in the check section. +- Updated the with_python3 conditional. +- README and CHANGES renamed from .txt to .rst. + +* Thu Feb 14 2013 Fedora Release Engineering - 4.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Dec 11 2012 Ralph Bean - 4.1.1-1 +- Latest upstream release. +- Packaged a python3 subpackage. + +* Sat Jul 21 2012 Fedora Release Engineering - 3.10.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 7 2012 Robin Lee - 3.10.3-1 +- Update to 3.10.3 (ZTK 1.1.3) + +* Wed Feb 09 2011 Fedora Release Engineering - 3.10.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jan 3 2011 Robin Lee - 3.10.2-1 +- Update to 3.10.2 +- Move the documents to proper place +- Run the tests + +* Tue Aug 31 2010 Robin Lee - 3.10.0-2 +- Requirement: python-zope-filesystem removed, python-zope-exceptions added +- Spec cleaned up + +* Mon Aug 30 2010 Robin Lee - 3.10.0-1 +- Update to 3.10.0 +- Rearrange documents + +* Sat Jul 31 2010 David Malcolm - 3.9.5-5 +- actually remove the requirement on python-zope-exceptions this time + +* Fri Jul 30 2010 David Malcolm - 3.9.5-4 +- add missing build-time requirement on python-setuptools + +* Fri Jul 30 2010 David Malcolm - 3.9.5-3 +- remove requirement on python-zope-exceptions for now (bug 619478) +- add missing zope-testrunner executable to %%files + +* Thu Jul 22 2010 David Malcolm - 3.9.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Thu Jun 17 2010 Robin Lee - 3.9.5-1 +- Update to 3.9.5 +- Rearrange documents +- Requires: python-zope-interface and python-zope-exceptions added + +* Sun Jul 26 2009 Fedora Release Engineering - 3.7.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Jun 15 2009 Conrad Meyer - 3.7.3-3 +- Actually fix file conflict with python-zope-filesystem. + +* Sat Jun 13 2009 Conrad Meyer - 3.7.3-2 +- Fix file conflict with python-zope-filesystem. + +* Wed Apr 22 2009 Conrad Meyer - 3.7.3-1 +- Bump to 3.7.3. + +* Sun Dec 14 2008 Conrad Meyer - 3.7.1-1 +- Initial package. diff --git a/sources b/sources index e69de29..70df1af 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (zope.testing-4.6.1.tar.gz) = 13ab0ce01efc42227980e79e97ea91d37d377b83d38e897750cee344e9ab1a82f6d860d7884374da55cd0e102447f56fb69970fbfad2de927c0cee3c18b0ddb9