update to 1.0.10

This commit is contained in:
Remi Collet 2013-05-08 15:12:16 +02:00
commit 0ed4f70bd4
4 changed files with 20 additions and 48 deletions

View file

@ -11,16 +11,17 @@
%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
Name: mysql-connector-python
Version: 1.0.9
Release: 1%{?versuffix:.%{versuffix}}%{?dist}
Version: 1.0.10
Release: 1%{?dist}
Summary: MySQL Connector for Python 2
Group: Development/Languages
License: GPLv2 with exceptions
URL: http://dev.mysql.com/usingmysql/python/
# Launch stripdocs.sh to remove non GPL documentation
Source0: %{name}-%{version}%{?versuffix}-nodocs.tar.bz2
Source1: stripdocs.sh
URL: http://dev.mysql.com/doc/connector-python/en/index.html
# Upstream has a mirror redirector for downloads, so the URL is hard to
# represent statically. You can get the tarball by following a link from
# http://dev.mysql.com/downloads/connector/python/
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -50,9 +51,8 @@ is necessary to run this Python DB API v2.0 compliant driver.
%prep
%setup -q -n %{name}-%{version}%{?versuffix}
%setup -q -n %{name}-%{version}
chmod -x python?/examples/*py
mv docs/README.txt README-docs
%build
@ -60,16 +60,16 @@ mv docs/README.txt README-docs
%install
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%if 0%{?with_python3}
# Python 3 build
%{__python3} setup.py install --root $RPM_BUILD_ROOT
%{__python3} setup.py install --root %{buildroot}
rm -rf build
%endif
# Python 2 build (end with this for tests)
%{__python} setup.py install --root $RPM_BUILD_ROOT
%{__python} setup.py install --root %{buildroot}
%check
@ -83,12 +83,12 @@ rm -rf build
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING README*
%doc ChangeLog COPYING README* docs/README_DOCS.txt
%doc python2/examples
%{python_sitelib}/*
@ -96,12 +96,16 @@ rm -rf $RPM_BUILD_ROOT
%if 0%{?with_python3}
%files -n mysql-connector-python3
%defattr(-,root,root,-)
%doc ChangeLog COPYING README*
%doc ChangeLog COPYING README* docs/README_DOCS.txt
%doc python3/examples
%{python3_sitelib}/*
%endif
%changelog
* Wed May 8 2013 Remi Collet <remi@fedoraproject.org> - 1.0.10-1
- version 1.0.10 GA
- archive is now free (no more doc to strip)
* Wed Feb 27 2013 Remi Collet <remi@fedoraproject.org> - 1.0.9-1
- version 1.0.9 GA
- disable test suite in mock, fix FTBFS #914203