[python-sqlparse] Rebase to 0.1.11 Change the upstream URL

Honza Horak hhorak at fedoraproject.org
Mon May 12 08:29:48 UTC 2014


commit 3d57f7f5dc794c5c3d475805439ae5f8362c743b
Author: Honza Horak <hhorak at redhat.com>
Date:   Mon May 12 10:12:55 2014 +0200

    Rebase to 0.1.11
    Change the upstream URL

 .gitignore           |    1 +
 python-sqlparse.spec |   33 +++++++++++++++++++--------------
 sources              |    2 +-
 3 files changed, 21 insertions(+), 15 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 05279c3..92d4cfa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 sqlparse-0.1.1.tar.gz
 /sqlparse-0.1.2.tar.gz
+/sqlparse-0.1.11.tar.gz
diff --git a/python-sqlparse.spec b/python-sqlparse.spec
index f79b0e5..fd62527 100644
--- a/python-sqlparse.spec
+++ b/python-sqlparse.spec
@@ -1,18 +1,23 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
-Name:           python-sqlparse
-Version:        0.1.2
-Release:        5%{?dist}
+%global         shortname sqlparse
+
+Name:           python-%{shortname}
+Version:        0.1.11
+Release:        1%{?dist}
 Summary:        Non-validating SQL parser for Python
 
 Group:          Development/Languages
 License:        BSD
-URL:            http://code.google.com/p/python-sqlparse/
-Source0:        http://python-sqlparse.googlecode.com/files/sqlparse-0.1.2.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+URL:            https://github.com/andialbrecht/%{shortname}
+Source0:        https://github.com/andialbrecht/%{shortname}/archive/%{version}/%{shortname}-%{version}.tar.gz
 
 BuildArch:      noarch
-BuildRequires:  python-devel
+BuildRequires:  python2-devel
+BuildRequires:  python3-devel
+BuildRequires:  python-tools
+BuildRequires:  python3-tools
+BuildRequires:  python-tox
 
 %description
 sqlparse is a tool for parsing SQL strings.  It can generate pretty-printed
@@ -21,7 +26,7 @@ renderings of SQL in various formats.
 It is a python module, together with a command-line tool.
 
 %prep
-%setup -q -n sqlparse-%{version}
+%setup -q -n %{shortname}-%{version}
 
 %build
 %{__python} setup.py build
@@ -31,20 +36,20 @@ rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
 %check
-%{__python} tests/run_tests.py
+tox -e py27,py33
  
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 
 %files
-%defattr(-,root,root,-)
-%doc AUTHORS CHANGES COPYING README TODO
+%doc AUTHORS CHANGES COPYING README.rst TODO
 %{_bindir}/sqlformat
 %{python_sitelib}/*
 
 
 %changelog
+* Mon May 12 2014 Honza Horak <hhorak at redhat.com> - 0.1.11-1
+- Rebase to 0.1.11
+- Change the upstream URL
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.2-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index e9927e0..62bd5b6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-aa9852ad81822723adcd9f96838de14e  sqlparse-0.1.2.tar.gz
+0cf89e81a5a1ee5a75d973ceaacb7e88  sqlparse-0.1.11.tar.gz


More information about the scm-commits mailing list