Python 2 binary package renamed to python2-pyodbc
This commit is contained in:
parent
f9dfa77598
commit
b7d6f3a889
27
pyodbc.spec
27
pyodbc.spec
@ -11,14 +11,13 @@
|
||||
|
||||
Name: pyodbc
|
||||
Version: 3.0.10
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
Summary: Python DB API 2.0 Module for ODBC
|
||||
Group: Development/Languages
|
||||
License: MIT
|
||||
URL: https://github.com/mkleehammer/pyodbc
|
||||
Source0: https://github.com/mkleehammer/pyodbc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: unixODBC, python >= 2.4
|
||||
BuildRequires: unixODBC-devel
|
||||
BuildRequires: python-devel
|
||||
|
||||
@ -26,11 +25,23 @@ BuildRequires: python-devel
|
||||
BuildRequires: python3-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
A Python DB API 2 and 3 module for ODBC. This project provides an up-to-date,
|
||||
convenient interface to ODBC using native data types like datetime and
|
||||
%global _description\
|
||||
A Python DB API 2 and 3 module for ODBC. This project provides an up-to-date,\
|
||||
convenient interface to ODBC using native data types like datetime and\
|
||||
decimal.
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python2-%{modulename}
|
||||
Summary: %summary
|
||||
Requires: unixODBC, python >= 2.4
|
||||
%{?python_provide:%python_provide python2-%{modulename}}
|
||||
# Remove before F30
|
||||
Provides: pyodbc%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: pyodbc < %{version}-%{release}
|
||||
|
||||
%description -n python2-%{modulename} %_description
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-%{modulename}
|
||||
Summary: Python DB API 2.0 Module for ODBC
|
||||
@ -76,7 +87,7 @@ popd
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
|
||||
%files
|
||||
%files -n python2-%{modulename}
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license python2/LICENSE.txt
|
||||
%doc python2/README.md python2/notes.txt
|
||||
@ -91,6 +102,10 @@ popd
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.10-10
|
||||
- Python 2 binary package renamed to python2-pyodbc
|
||||
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.10-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user