|
Orion Poplawski |
403fbf9 |
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
Orion Poplawski |
403fbf9 |
%{!?python2_sitearch: %global python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
Orion Poplawski |
403fbf9 |
%{!?python3_sitearch: %global python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
53e8334 |
|
|
|
53e8334 |
%global modulename pyodbc
|
|
Orion Poplawski |
403fbf9 |
%if 0%{?fedora}
|
|
|
53e8334 |
%bcond_without python3 1
|
|
Orion Poplawski |
403fbf9 |
%else
|
|
Orion Poplawski |
403fbf9 |
%bcond_with python3 1
|
|
Orion Poplawski |
403fbf9 |
%endif
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
Name: pyodbc
|
|
Orion Poplawski |
5b99178 |
Version: 3.0.10
|
|
|
9006fb1 |
Release: 11%{?dist}
|
|
rayvd |
c416da5 |
Summary: Python DB API 2.0 Module for ODBC
|
|
rayvd |
c416da5 |
Group: Development/Languages
|
|
rayvd |
c416da5 |
License: MIT
|
|
Orion Poplawski |
5b99178 |
URL: https://github.com/mkleehammer/pyodbc
|
|
Orion Poplawski |
5b99178 |
Source0: https://github.com/mkleehammer/pyodbc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
rayvd |
c416da5 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
rayvd |
5092b59 |
BuildRequires: unixODBC-devel
|
|
rayvd |
5092b59 |
BuildRequires: python-devel
|
|
rayvd |
c416da5 |
|
|
|
53e8334 |
%if 0%{?with_python3}
|
|
|
53e8334 |
BuildRequires: python3-devel
|
|
|
53e8334 |
%endif
|
|
|
53e8334 |
|
|
|
b7d6f3a |
%global _description\
|
|
|
b7d6f3a |
A Python DB API 2 and 3 module for ODBC. This project provides an up-to-date,\
|
|
|
b7d6f3a |
convenient interface to ODBC using native data types like datetime and\
|
|
rayvd |
c416da5 |
decimal.
|
|
rayvd |
c416da5 |
|
|
|
b7d6f3a |
%description %_description
|
|
|
b7d6f3a |
|
|
|
b7d6f3a |
%package -n python2-%{modulename}
|
|
|
b7d6f3a |
Summary: %summary
|
|
|
b7d6f3a |
Requires: unixODBC, python >= 2.4
|
|
|
b7d6f3a |
%{?python_provide:%python_provide python2-%{modulename}}
|
|
|
b7d6f3a |
# Remove before F30
|
|
|
9006fb1 |
Provides: pyodbc = %{version}-%{release}
|
|
|
b7d6f3a |
Provides: pyodbc%{?_isa} = %{version}-%{release}
|
|
|
b7d6f3a |
Obsoletes: pyodbc < %{version}-%{release}
|
|
|
b7d6f3a |
|
|
|
b7d6f3a |
%description -n python2-%{modulename} %_description
|
|
|
b7d6f3a |
|
|
|
53e8334 |
%if 0%{?with_python3}
|
|
|
53e8334 |
%package -n python3-%{modulename}
|
|
|
53e8334 |
Summary: Python DB API 2.0 Module for ODBC
|
|
|
53e8334 |
Group: Development/Languages
|
|
|
53e8334 |
Requires: python3 >= 3.4
|
|
|
53e8334 |
|
|
|
53e8334 |
%description -n python3-%{modulename}
|
|
|
53e8334 |
A Python DB API 2 and 3 module for ODBC. This project provides an up-to-date,
|
|
|
53e8334 |
convenient interface to ODBC using native data types like datetime and
|
|
|
53e8334 |
decimal.
|
|
|
53e8334 |
%endif
|
|
|
53e8334 |
|
|
|
53e8334 |
|
|
rayvd |
c416da5 |
%prep
|
|
Orion Poplawski |
403fbf9 |
%setup -qc
|
|
Orion Poplawski |
403fbf9 |
mv %{name}-%{version} python2
|
|
|
53e8334 |
%if 0%{?with_python3}
|
|
Orion Poplawski |
403fbf9 |
cp -a python2 python3
|
|
|
53e8334 |
%endif
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
%build
|
|
Orion Poplawski |
403fbf9 |
pushd python2
|
|
Orion Poplawski |
403fbf9 |
%{__python2} setup.py build
|
|
Orion Poplawski |
403fbf9 |
popd
|
|
|
53e8334 |
%if 0%{?with_python3}
|
|
Orion Poplawski |
403fbf9 |
pushd python3
|
|
|
53e8334 |
%{__python3} setup.py build
|
|
|
53e8334 |
popd
|
|
|
53e8334 |
%endif
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
%install
|
|
rayvd |
c416da5 |
%{__rm} -rf %{buildroot}
|
|
Orion Poplawski |
403fbf9 |
pushd python2
|
|
Orion Poplawski |
403fbf9 |
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
Orion Poplawski |
403fbf9 |
popd
|
|
|
53e8334 |
%if 0%{?with_python3}
|
|
Orion Poplawski |
403fbf9 |
pushd python3
|
|
|
53e8334 |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
53e8334 |
popd
|
|
|
53e8334 |
%endif
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
%clean
|
|
rayvd |
c416da5 |
%{__rm} -rf %{buildroot}
|
|
rayvd |
c416da5 |
|
|
|
53e8334 |
|
|
|
b7d6f3a |
%files -n python2-%{modulename}
|
|
Orion Poplawski |
403fbf9 |
%{!?_licensedir:%global license %%doc}
|
|
Orion Poplawski |
403fbf9 |
%license python2/LICENSE.txt
|
|
Orion Poplawski |
5b99178 |
%doc python2/README.md python2/notes.txt
|
|
Orion Poplawski |
403fbf9 |
%{python2_sitearch}/*
|
|
rayvd |
c416da5 |
|
|
|
53e8334 |
%if 0%{?with_python3}
|
|
|
53e8334 |
%files -n python3-%{name}
|
|
Orion Poplawski |
403fbf9 |
%{!?_licensedir:%global license %%doc}
|
|
Orion Poplawski |
403fbf9 |
%license python3/LICENSE.txt
|
|
Orion Poplawski |
5b99178 |
%doc python3/README.md python3/notes.txt
|
|
|
53e8334 |
%{python3_sitearch}/*
|
|
|
53e8334 |
%endif
|
|
|
53e8334 |
|
|
rayvd |
c416da5 |
%changelog
|
|
|
9006fb1 |
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.10-11
|
|
|
9006fb1 |
- Add Provides for the old name without %%_isa
|
|
|
9006fb1 |
|
|
|
b7d6f3a |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.10-10
|
|
|
b7d6f3a |
- Python 2 binary package renamed to python2-pyodbc
|
|
|
b7d6f3a |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
b7d6f3a |
|
|
|
f9dfa77 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.10-9
|
|
|
f9dfa77 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
f9dfa77 |
|
|
|
75d1214 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.10-8
|
|
|
75d1214 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
75d1214 |
|
|
|
553e9e4 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.10-7
|
|
|
553e9e4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
553e9e4 |
|
|
|
54d7625 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.0.10-6
|
|
|
54d7625 |
- Rebuild for Python 3.6
|
|
|
54d7625 |
|
|
|
61b4011 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.10-5
|
|
|
61b4011 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
61b4011 |
|
|
|
3529950 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.10-4
|
|
|
3529950 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
3529950 |
|
|
|
7edd9a0 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.10-3
|
|
|
7edd9a0 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
7edd9a0 |
|
|
|
1ece2fc |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.10-2
|
|
|
1ece2fc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
1ece2fc |
|
|
Orion Poplawski |
5b99178 |
* Tue May 12 2015 Orion Poplawski <orion@cora.wnra.com> - 3.0.10-1
|
|
Orion Poplawski |
5b99178 |
- Update to 3.0.10
|
|
Orion Poplawski |
5b99178 |
|
|
Orion Poplawski |
403fbf9 |
* Tue May 12 2015 Orion Poplawski <orion@cora.wnra.com> - 3.0.7-4
|
|
Orion Poplawski |
403fbf9 |
- Cleanup and update spec
|
|
Orion Poplawski |
403fbf9 |
|
|
|
954dc1a |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.0.7-3
|
|
|
954dc1a |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
954dc1a |
|
|
|
53e8334 |
* Tue Feb 17 2015 Honza Horak <hhorak@redhat.com> - 3.0.7-2
|
|
|
53e8334 |
- Start compiling for python3
|
|
|
53e8334 |
Thanks Ganapathi Kamath
|
|
|
53e8334 |
|
|
|
91463be |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.7-1
|
|
|
91463be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
91463be |
|
|
|
4f98f35 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6-4
|
|
|
4f98f35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
4f98f35 |
|
|
|
61e21ca |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6-3
|
|
|
61e21ca |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
61e21ca |
|
|
|
d826bea |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6-2
|
|
|
d826bea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
d826bea |
|
|
|
a082143 |
* Mon Aug 13 2012 Honza Horak <hhorak@redhat.com> - 3.0.6-1
|
|
|
a082143 |
- Upstream released 3.0.6
|
|
|
a082143 |
|
|
|
ea7f480 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-7
|
|
|
ea7f480 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
ea7f480 |
|
|
|
eabcae9 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-6
|
|
|
eabcae9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
eabcae9 |
|
|
|
4b880ce |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-5
|
|
|
4b880ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
4b880ce |
|
|
|
bae58f5 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.1.5-4
|
|
|
bae58f5 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
bae58f5 |
|
|
|
87c40d8 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-3
|
|
|
87c40d8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
87c40d8 |
|
|
rayvd |
04f2b20 |
* Wed Apr 22 2009 Ray Van Dolson <rayvd@fedoraproject.org> - 2.1.5-2
|
|
rayvd |
04f2b20 |
- EVR bump
|
|
rayvd |
04f2b20 |
|
|
rayvd |
8f68f0d |
* Wed Apr 22 2009 Ray Van Dolson <rayvd@fedoraproject.org> - 2.1.5-1
|
|
rayvd |
8f68f0d |
- Upstream released 2.1.5
|
|
rayvd |
8f68f0d |
|
|
|
a1a931f |
* Mon Feb 23 2009 Ray Van Dolson <rayvd@fedoraproject.org> - 2.1.4-5
|
|
rayvd |
5092b59 |
- Removing versioned BuildRequires
|
|
rayvd |
5092b59 |
|
|
|
a1a931f |
* Mon Feb 23 2009 Ray Van Dolson <rayvd@fedoraproject.org> - 2.1.4-4
|
|
rayvd |
5092b59 |
- Changes for plague
|
|
rayvd |
5092b59 |
|
|
rayvd |
5092b59 |
* Sun Feb 22 2009 Ray Van Dolson <rayvd@fedoraproject.org> - 2.1.4-3
|
|
rayvd |
5092b59 |
- Removed extraneous Requires
|
|
|
13a84dc |
|
|
rayvd |
c2da542 |
* Sun Feb 22 2009 Ray Van Dolson <rayvd@fedoraproject.org> - 2.1.4-2
|
|
rayvd |
c2da542 |
- Added README.rst file from git repo
|
|
rayvd |
c2da542 |
|
|
rayvd |
c2da542 |
* Wed Jan 07 2009 Ray Van Dolson <rayvd@fedoraproject.org> - 2.1.4-1
|
|
rayvd |
c2da542 |
- Upstream released 2.1.4
|
|
|
597b6dd |
|
|
|
a1a931f |
* Wed Dec 03 2008 Ray Van Dolson <rayvd@fedoraproject.org> - 2.1.1-1
|
|
rayvd |
207aafe |
- New upstream version and homepage
|
|
|
66878dc |
|
|
rayvd |
c416da5 |
* Mon Jun 02 2008 Ray Van Dolson <rayvd@fedoraproject.org> - 2.0.58-3
|
|
rayvd |
c416da5 |
- Removed silly python BuildRequires
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
* Mon Jun 02 2008 Ray Van Dolson <rayvd@fedoraproject.org> - 2.0.58-2
|
|
rayvd |
c416da5 |
- Added python and python-devel to BuildRequires
|
|
rayvd |
c416da5 |
|
|
rayvd |
c416da5 |
* Fri May 30 2008 Ray Van Dolson <rayvd@fedoraproject.org> - 2.0.58-1
|
|
rayvd |
c416da5 |
- Initial package
|