%if 0%{?fedora} >= 12 || 0%{?rhel} >= 8 %global with_py3 1 %endif %global pkgname ZODB3 Name: python-%{pkgname} Version: 3.11.0 Release: 1%{?dist} Summary: Zope Object Database: Object Database and Persistence Group: Development/Libraries License: ZPLv2.1 URL: http://www.zodb.org/ Source0: http://pypi.python.org/packages/source/Z/%{pkgname}/%{pkgname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-BTrees BuildRequires: python-devel BuildRequires: python-persistent BuildRequires: python-setuptools BuildRequires: python-transaction BuildRequires: python-ZEO BuildRequires: python-ZODB %if 0%{?with_py3} BuildRequires: python3-BTrees BuildRequires: python3-devel BuildRequires: python3-persistent BuildRequires: python3-setuptools BuildRequires: python3-transaction BuildRequires: python3-ZEO BuildRequires: python3-ZODB %endif Requires: python-BTrees Requires: python-persistent Requires: python-transaction Requires: python-ZEO Requires: python-ZODB %global common_desc \ The Zope Object Database provides an object-oriented database for Python \ that provides a high-degree of transparency. Applications can take \ advantage of object database features with few, if any, changes to \ application logic. ZODB includes features such as a pluggable storage \ interface, rich transaction support, and undo. %description %{common_desc} %if 0%{?with_py3} %package -n python3-%{pkgname} Summary: Client-server storage implementation for ZODB Requires: python3-BTrees Requires: python3-persistent Requires: python3-transaction Requires: python3-ZEO Requires: python3-ZODB %description -n python3-%{pkgname} %{common_desc} %endif %prep %setup -q -c # Remove prebuilt egg rm -fr %{pkgname}-%{version}/%{pkgname}.egg-info # Fix encodings for fil in %{pkgname}-%{version}/HISTORY.txt; do iconv -f ISO-8859-1 -t UTF-8 $fil > $fil.utf8 touch -r $fil $fil.utf8 mv -f $fil.utf8 $fil done %if 0%{?with_py3} # Prepare for a python3 build cp -a %{pkgname}-%{version} python3-%{pkgname}-%{version} %endif %build # Python 2 build pushd %{pkgname}-%{version} %{__python2} setup.py build popd %if 0%{?with_py3} # Python 3 build pushd python3-%{pkgname}-%{version} %{__python3} setup.py build popd %endif %install # Python 2 install pushd %{pkgname}-%{version} %{__python2} setup.py install -O1 --skip-build --root %{buildroot} popd %if 0%{?with_py3} # Python 3 install pushd python3-%{pkgname}-%{version} %{__python3} setup.py install -O1 --skip-build --root %{buildroot} popd %endif %files %doc %{pkgname}-%{version}/CHANGES.txt %{pkgname}-%{version}/HISTORY.txt %doc %{pkgname}-%{version}/README.txt %{python2_sitelib}/%{pkgname}* %if 0%{?with_py3} %files -n python3-%{pkgname} %doc %{pkgname}-%{version}/CHANGES.txt %{pkgname}-%{version}/HISTORY.txt %doc %{pkgname}-%{version}/README.txt %{python3_sitelib}/%{pkgname}* %endif %changelog * Mon Oct 20 2014 Jerry James - 3.11.0-1 - Update to 3.11.0 * Sun Aug 17 2014 Fedora Release Engineering - 3.10.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 3.10.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Jul 30 2013 Jerry James - 3.10.5-5 - Adapt to versionless _docdir in Rawhide * Thu Feb 14 2013 Fedora Release Engineering - 3.10.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 3.10.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jan 10 2012 Jerry James - 3.10.5-2 - Mass rebuild for Fedora 17 - Switch to the RPM 4.9 style of provides filtering * Mon Nov 21 2011 Jerry James - 3.10.5-1 - Update to 3.10.5 * Fri Nov 18 2011 Jerry James - 3.10.4-1 - Update to 3.10.4 * Sun May 1 2011 Robin Lee - 3.10.3-2 - Enable the tests * Wed Apr 27 2011 Jerry James - 3.10.3-1 - Update to 3.10.3 * Sun Feb 20 2011 Robin Lee - 3.10.2-1 - Update to 3.10.2 * Tue Feb 08 2011 Fedora Release Engineering - 3.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 3 2011 Robin Lee - 3.10.1-1 - Update to 3.10.1 * Wed Oct 13 2010 Robin Lee - 3.10.0-1 - Update to 3.10.0 final * Thu Sep 30 2010 Robin Lee - 3.10.0-0.6.b7 - Update to 3.10.0b7 * Wed Sep 29 2010 jkeating - 3.10.0-0.5.b6 - Rebuilt for gcc bug 634757 * Sat Sep 18 2010 Robin Lee - 3.10.0-0.4.b6 - Filter out private shared library provides - Rearrage the documents - Exclude the tests from installation * Thu Sep 9 2010 Robin Lee - 3.10.0-0.3.b6 - Update to 3.10.0b6 - An unused line of comment removed - A deeper path used in the find command * Sat Sep 4 2010 Robin Lee - 3.10.0-0.2.b5 - Update to 3.10.0b5 - Use recommended commands to remove shebangs - Requires python-setuptools, which is used by generated scripts * Wed Sep 1 2010 Robin Lee - 3.10.0-0.1.b4 - Update to 3.10.0b4 - Spec cleaned up * Tue Jun 22 2010 Robin Lee - 3.9.5-2 - Don't move the text files * Wed Jun 16 2010 Robin Lee - 3.9.5-1 - Update to 3.9.5 - Take over the review request (#476600). - Don't split out per-extension subpackages. - BR: python-setuptools added - Requires: python-zope-testing removed - Make a -devel subpackage to contain all the header files - Remove the C source files installed by setup.py - Include more documents - Don't move the executable scripts * Wed Oct 28 2009 Conrad Meyer - 3.9.3-1 - Bumped to 3.9.3. - Numerous minor fixes from review (#476600). - Split into several subpackages. * Mon Dec 15 2008 Conrad Meyer - 3.9.0-0.1.a7 - Initial package.