90 lines
2.8 KiB
RPMSpec
90 lines
2.8 KiB
RPMSpec
Name: python-mysqlclient
|
|
Version: 1.3.14
|
|
Release: 1mamba
|
|
Summary: Python interface to MySQL
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://sourceforge.net/projects/mysql-python/
|
|
Source: https://pypi.debian.net/mysqlclient/mysqlclient-%{version}.tar.gz
|
|
License: GPL, Python License, Zope Public License
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libmysqlclient-devel
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: libpython-devel
|
|
BuildRequires: libpython27-devel
|
|
BuildRequires: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: python-setuptools-devel
|
|
Provides: python-MySQL
|
|
Obsoletes: python-MySQL
|
|
Requires: python >= %python_version
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
mysqlclient is a fork of MySQL-python. It add Python 3.3 support and merges some pull requests.
|
|
|
|
|
|
MySQL support for Python. MySQL versions 3.23-5.1; and Python versions 2.3-2.6 are supported.
|
|
MySQLdb is the Python DB API-2.0 interface. _mysql is a low-level API similiar to the MySQL C API.
|
|
ZMySQLDA is a Database Adapter for Zope2.
|
|
|
|
%if "%{?with_pyver}"
|
|
%pyver_package
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q -n mysqlclient-%{version}
|
|
|
|
%build
|
|
rm -f doc/*~
|
|
export libdirname=%{_lib}
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%{__python} setup.py install \
|
|
-O1 --skip-build \
|
|
--root="%{buildroot}" \
|
|
--install-headers=%{_includedir}/python \
|
|
--install-lib=%{python_sitearch} \
|
|
--single-version-externally-managed \
|
|
--record=%{name}.filelist
|
|
|
|
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
|
%defattr(-,root,root)
|
|
%doc doc/*
|
|
|
|
%changelog
|
|
* Tue Dec 11 2018 Automatic Build System <autodist@mambasoft.it> 1.3.14-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Oct 25 2018 Automatic Build System <autodist@mambasoft.it> 1.3.13-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Oct 26 2017 Automatic Build System <autodist@mambasoft.it> 1.3.9-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sat Sep 17 2016 Automatic Build System <autodist@mambasoft.it> 1.3.7-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sat May 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.6-1mamba
|
|
- update to 1.3.6
|
|
- switched from python-MySQL and added python3 support
|
|
|
|
* Fri May 15 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.3-4mamba
|
|
- rebuilt with mariadb
|
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.3-3mamba
|
|
- python 2.7 mass rebuild
|
|
|
|
* Fri Jan 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.3-2mamba
|
|
- rebuilt in devel
|
|
|
|
* Mon Mar 07 2011 gil <puntogil@libero.it> 1.2.3-1mamba
|
|
- package created by autospec
|