- update to 0.2.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=8
This commit is contained in:
parent
4d81896db1
commit
5655d6c609
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ce92c9f134b1cd461a27c502197464b5f245261ad0fbb26d7bf659f28a5c11b2
|
||||
size 57863
|
3
sqlparse-0.2.1.tar.gz
Normal file
3
sqlparse-0.2.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1c98a2bdffe67f1bb817b72a7ba4d38be592e0f07c5acea4adebcec12c4377d1
|
||||
size 53463
|
Loading…
x
Reference in New Issue
Block a user