Name: python3-bsddb3 Version: 6.2.6 Release: 3%{?dist} Summary: Python 3 bindings for BerkleyDB License: BSD URL: https://pypi.python.org/pypi/bsddb3/ Source0: https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz Requires: python(abi) >= 3.0 Provides: python%{python3_pkgversion}-bsddb3 BuildRequires: python%{python3_pkgversion}-devel BuildRequires: libdb-devel %description This package contains Python wrappers for Berkeley DB, the Open Source embedded database system. The Python wrappers allow you to store Python string objects of any length. %prep %setup -q -n bsddb3-%{version} %build CFLAGS="%{optflags}" %{__python3} setup.py build %install rm -rf %{buildroot} %{__python3} setup.py install --skip-build --root "%{buildroot}" # Get rid of unneeded header rm -f %{buildroot}/%{_includedir}/python3.?m/bsddb3/bsddb.h # Fix script shebangs and permissions scripts=(%{buildroot}/%{python3_sitearch}/bsddb3/{dbshelve.py,tests/test_dbtables.py}) chmod 0755 "${scripts[@]}" sed -E --in-place 's@#!\/usr\/bin\/python|#!\/usr\/bin\/env python[[:digit:]]*@#!\/usr\/bin\/python3@' "${scripts[@]}" %check %{__python3} test.py %files %doc ChangeLog PKG-INFO README.txt LICENSE.txt %{python3_sitearch}/bsddb3/ %{python3_sitearch}/bsddb3-%{version}-py3.?.egg-info %changelog * Tue Jul 24 2018 Jiri Kastner - 6.2.6-2 - fix for el7 :wq * Sat Jul 14 2018 Fedora Release Engineering - 6.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jul 03 2018 Jan Staněk - 6.2.6-1 - Update to 6.2.6 (https://www.jcea.es/programacion/pybsddb.htm#bsddb3-6.2.6) * Tue Jun 19 2018 Miro Hrončok - 6.2.5-5 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 6.2.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Oct 11 2017 Jan Staněk - 6.2.5-3 - Apply the shebang fix to the right files. * Tue Oct 10 2017 Jan Staněk - 6.2.5-2 - Fix generic python shebangs (https://pagure.io/packaging-committee/issue/698) * Wed Oct 04 2017 Jan Stanek - 6.2.5-1 - Update to 6.2.5 (https://www.jcea.es/programacion/pybsddb.htm#bsddb3-6.2.5) * Thu Aug 03 2017 Fedora Release Engineering - 6.2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 6.2.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 6.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 26 2017 Jan Stanek - 6.2.4-1 - Update to version 6.2.4 (https://www.jcea.es/programacion/pybsddb.htm#bsddb3-6.2.4) * Mon Dec 19 2016 Miro Hrončok - 6.2.0-3 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 6.2.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu May 05 2016 Jan Stanek - 6.2.0-1 - Update to version 6.2.0 (https://www.jcea.es/programacion/pybsddb.htm#bsddb3-6.2.0) * Thu Feb 04 2016 Fedora Release Engineering - 6.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Nov 18 2015 Jan Stanek - 6.1.1-1 - Update to version 6.1.1 (https://www.jcea.es/programacion/pybsddb.htm#bsddb3-6.1.1) * Tue Nov 10 2015 Fedora Release Engineering - 6.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 6.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 6.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 6.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 14 2014 Bohuslav Kabrda - 6.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Fri Dec 06 2013 Jan Stanek - 6.0.1-1 - Update to 6.0.1 * Mon Sep 23 2013 Jan Stanek - 6.0.0-1 - Initial package