update to 1.0.5 (beta)

This commit is contained in:
remi 2012-08-08 18:09:34 +02:00
commit 007e48990c
3 changed files with 23 additions and 13 deletions

2
.gitignore vendored
View file

@ -1 +1,3 @@
*spec~
/mysql-connector-python-0.3.2-devel.tar.gz
/mysql-connector-python-1.0.5.tar.gz

View file

@ -7,14 +7,17 @@
%endif
Name: mysql-connector-python
Version: 0.3.2
Release: 5%{?dist}
Version: 1.0.5
Release: 1%{?dist}
Summary: MySQL Connector for Python 2
Group: Development/Languages
License: GPLv2 with exceptions
URL: https://launchpad.net/myconnpy
Source0: http://launchpad.net/myconnpy/0.3/%{version}/+download/%{name}-%{version}-devel.tar.gz
URL: http://dev.mysql.com/usingmysql/python/
# 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)
@ -44,9 +47,8 @@ is necessary to run this Python DB API v2.0 compliant driver.
%prep
%setup -q -n %{name}-%{version}-devel
%{__chmod} -x python?/examples/*py
%setup -q
chmod -x python?/examples/*py
%build
@ -54,12 +56,12 @@ is necessary to run this Python DB API v2.0 compliant driver.
%install
%{__rm} -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
%if 0%{?with_python3}
# Python 3 build
%{__python3} setup.py install --root $RPM_BUILD_ROOT
%{__rm} -rf build
rm -rf build
%endif
# Python 2 build (end with this for tests)
@ -71,25 +73,31 @@ is necessary to run this Python DB API v2.0 compliant driver.
%clean
%{__rm} -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING EXCEPTIONS-CLIENT README
%doc ChangeLog COPYING README
%doc python2/examples
%doc docs
%{python_sitelib}/*
%if 0%{?with_python3}
%files -n mysql-connector-python3
%defattr(-,root,root,-)
%doc ChangeLog COPYING EXCEPTIONS-CLIENT README
%doc ChangeLog COPYING README
%doc python3/examples
%doc docs
%{python3_sitelib}/*
%endif
%changelog
* Wed Aug 8 2012 Remi Collet <remi@fedoraproject.org> - 1.0.5-1
- version 1.0.5 (beta)
- move from launchpad (devel) to dev.mysql.com
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 0.3.2-5
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3

View file

@ -1 +1 @@
2ffdfa21c0a870cc7080f9f9a5ee3d87 mysql-connector-python-0.3.2-devel.tar.gz
5c3c0b1ad696610a4df944cb82651c10 mysql-connector-python-1.0.5.tar.gz