From eb82b15afd7a894014ab72f1b70e74006d890956 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Mar 11 2019 23:56:41 +0000 Subject: Version 3.7.17 does not work with python36. Converting back to 34 --- diff --git a/python-apsw.spec b/python-apsw.spec index 0393bba..68d7e89 100644 --- a/python-apsw.spec +++ b/python-apsw.spec @@ -6,7 +6,7 @@ # EPEL branch (currently, "3" in epel7). # For old Fedora versions -%{!?python3_pkgversion:%global python3_pkgversion 3} +%{!?python3_other_pkgversion:%global python3_other_pkgversion 3} %if 0%{?rhel} == 7 %global sqlite_version 3.7.17 @@ -36,7 +36,7 @@ Name: python-apsw Version: %{real_version} -Release: 4%{?dist} +Release: 5%{?dist} Summary: Another Python SQLite Wrapper Group: Development/Libraries License: zlib @@ -44,7 +44,7 @@ URL: https://github.com/rogerbinns/apsw Source: https://github.com/rogerbinns/apsw/releases/download/%{pkg_version}/apsw-%{pkg_version}.zip BuildRequires: python2-devel -BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_other_pkgversion}-devel BuildRequires: sqlite-devel >= %{sqlite_version} Requires: sqlite >= %{sqlite_version} @@ -65,11 +65,11 @@ engine. In contrast to other wrappers such as pysqlite it focuses on being a minimal layer over SQLite attempting just to translate the complete SQLite API into Python. -%package -n python%{python3_pkgversion}-apsw +%package -n python%{python3_other_pkgversion}-apsw Summary: Another Python SQLite Wrapper -%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} +%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{srcname}} -%description -n python%{python3_pkgversion}-apsw +%description -n python%{python3_other_pkgversion}-apsw APSW is a Python %{python3_version} wrapper for the SQLite embedded relational database engine. In contrast to other wrappers such as pysqlite it focuses on being a minimal layer over SQLite attempting just to translate the @@ -96,13 +96,16 @@ CFLAGS="%{optflags}" python%{python3_version} setup.py build_ext --inplace test %{python2_sitearch}/apsw*.so %{python2_sitearch}/apsw*.egg-info -%files -n python%{python3_pkgversion}-apsw +%files -n python%{python3_other_pkgversion}-apsw %doc doc/* %{python3_sitearch}/apsw*.so %{python3_sitearch}/apsw*.egg-info %changelog +* Thu Mar 07 2019 Troy Dawson - %{pkg_version}-5 +- Version 3.7.17 does not work with python36. Converting back to 34 + * Thu Mar 07 2019 Troy Dawson - %{pkg_version}-4 - Rebuilt to change main python from 3.4 to 3.6