From 5655d6c609514751431b58554e6bd49fe12ee64d9ebc5872795c5edcce97d49f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 15 Nov 2016 10:17:13 +0000 Subject: [PATCH] - update to 0.2.1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=8 --- python-sqlparse.changes | 5 +++++ python-sqlparse.spec | 25 ++++--------------------- sqlparse-0.1.15.tar.gz | 3 --- sqlparse-0.2.1.tar.gz | 3 +++ 4 files changed, 12 insertions(+), 24 deletions(-) delete mode 100644 sqlparse-0.1.15.tar.gz create mode 100644 sqlparse-0.2.1.tar.gz diff --git a/python-sqlparse.changes b/python-sqlparse.changes index bb85989..82de469 100644 --- a/python-sqlparse.changes +++ b/python-sqlparse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 15 10:13:47 UTC 2016 - dmueller@suse.com + +- update to 0.2.1 + ------------------------------------------------------------------- Wed May 13 16:39:54 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-sqlparse.spec b/python-sqlparse.spec index 27d5a6d..dfaf75e 100644 --- a/python-sqlparse.spec +++ b/python-sqlparse.spec @@ -1,7 +1,7 @@ # # spec file for package python-sqlparse # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,13 @@ Name: python-sqlparse -Version: 0.1.15 +Version: 0.2.1 Release: 0 Summary: Non-validating SQL parser License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/andialbrecht/sqlparse -Source: https://pypi.python.org/packages/source/s/sqlparse/sqlparse-%{version}.tar.gz +Source: https://pypi.io/packages/source/s/sqlparse/sqlparse-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-setuptools @@ -43,40 +43,23 @@ parsing, splitting and formatting SQL statements. %prep %setup -q -n sqlparse-%{version} -sed -i "s|\(bin/sqlformat\)|\1-%{py_ver}|" setup.py -mv bin/sqlformat{,-%{py_ver}} %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -ln -s %{_bindir}/sqlformat-%{py_ver} %{buildroot}%{_bindir}/sqlformat %check py.test tests -%pre -# Since /usr/bin/sqlformat became ghosted to be used with update-alternatives, we have -# to get rid of the old binary resulting from the non-update-alternativies-ified package: -[ -h %{_bindir}/sqlformat ] || rm -f %{_bindir}/sqlformat - -%post -update-alternatives --install %{_bindir}/sqlformat sqlformat %{_bindir}/sqlformat-%{py_ver} 20 - -%preun -if [ $1 -eq 0 ] ; then - update-alternatives --remove sphinx-build %{_bindir}/sqlformat-%{py_ver} -fi - %files %defattr(-,root,root,-) -%doc COPYING AUTHORS CHANGES README.rst +%doc AUTHORS README.rst %ghost %{_bindir}/sqlformat %if 0%{?suse_version} >= 1230 %ghost %{_sysconfdir}/alternatives/sqlformat %endif -%{_bindir}/sqlformat-%{py_ver} %{python_sitelib}/* %changelog diff --git a/sqlparse-0.1.15.tar.gz b/sqlparse-0.1.15.tar.gz deleted file mode 100644 index 04f90d1..0000000 --- a/sqlparse-0.1.15.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce92c9f134b1cd461a27c502197464b5f245261ad0fbb26d7bf659f28a5c11b2 -size 57863 diff --git a/sqlparse-0.2.1.tar.gz b/sqlparse-0.2.1.tar.gz new file mode 100644 index 0000000..04acde3 --- /dev/null +++ b/sqlparse-0.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c98a2bdffe67f1bb817b72a7ba4d38be592e0f07c5acea4adebcec12c4377d1 +size 53463