Hello community,
here is the log from the commit of package python-sqlalchemy-migrate for
openSUSE:Factory checked in at 2017-09-05 15:14:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sqlalchemy-migrate (Old)
and /work/SRC/openSUSE:Factory/.python-sqlalchemy-migrate.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sqlalchemy-migrate"
Tue Sep 5 15:14:22 2017 rev:20 rq:507972 version:0.11.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-sqlalchemy-migrate/python-sqlalchemy-migrate.changes
2017-03-17 15:07:35.277028347 +0100
+++
/work/SRC/openSUSE:Factory/.python-sqlalchemy-migrate.new/python-sqlalchemy-migrate.changes
2017-09-05 15:14:23.420236000 +0200
@@ -1,0 +2,6 @@
+Mon Jul 3 15:10:45 UTC 2017 - [email protected]
+
+- convert to singlespec
+- split -doc package
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-sqlalchemy-migrate.spec ++++++
--- /var/tmp/diff_new_pack.Ahg7Y5/_old 2017-09-05 15:14:24.236121317 +0200
+++ /var/tmp/diff_new_pack.Ahg7Y5/_new 2017-09-05 15:14:24.240120754 +0200
@@ -17,6 +17,7 @@
#
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-sqlalchemy-migrate
Version: 0.11.0
Release: 0
@@ -25,27 +26,28 @@
Group: Development/Libraries/Python
Url: http://pypi.python.org/pypi/sqlalchemy-migrate
Source:
https://pypi.io/packages/source/s/sqlalchemy-migrate/sqlalchemy-migrate-%{version}.tar.gz
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module pbr}
+BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
-BuildRequires: python-pbr
+BuildRequires: python-rpm-macros
# Documentation requirements:
-BuildRequires: python-SQLAlchemy >= 0.7.8
-BuildRequires: python-Sphinx >= 1.1.2
+BuildRequires: python3-SQLAlchemy >= 0.7.8
+BuildRequires: python3-Sphinx >= 1.1.2
# Test requirements:
#BuildRequires: python-ScriptTest >= 1.0
-BuildRequires: python-Tempita >= 0.4
-BuildRequires: python-decorator
-#BuildRequires: python-pysqlite
-#BuildRequires: python-pytz
+BuildRequires: %{python_module Tempita >= 0.4}
+BuildRequires: %{python_module decorator}
Requires: python-SQLAlchemy >= 0.7.8
Requires: python-Tempita >= 0.4
Requires: python-decorator
Requires: python-six >= 1.7.0
Requires: python-sqlparse
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
+Requires(post): update-alternatives
+Requires(preun): update-alternatives
BuildArch: noarch
-%endif
+
+%python_subpackages
%description
Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with
@@ -55,29 +57,57 @@
database change repository mechanism which can be used from the command line as
well as from inside python code.
+%package -n python-sqlalchemy-migrate-doc
+Summary: Documentation for %{name}
+Group: Documentation/Other
+Provides: %{python_module sqlalchemy-migrate-doc = %{version}}
+
+%description -n python-sqlalchemy-migrate-doc
+Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with
+database schema changes in SQLAlchemy projects.
+
+Migrate extends SQLAlchemy to have database changeset handling. It provides a
+database change repository mechanism which can be used from the command line as
+well as from inside python code.
+
+This package contains the documentation.
+
%prep
%setup -q -n sqlalchemy-migrate-%{version}
find . -type f -name "*.py" -o -name "*.py_tmpl" | xargs sed -i "/#!/d" #
Remove shebang from non-executable scripts
sed -i "s/, 'sphinxcontrib.issuetracker'//g" doc/source/conf.py # No internet
access please
%build
-python setup.py build
-python setup.py build_sphinx && rm doc/build/html/.buildinfo # Build HTML
documentation
+%python_build
+python3 setup.py build_sphinx && rm doc/build/html/.buildinfo # Build HTML
documentation
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
%fdupes %{buildroot}%{python_sitelib}
+%python_clone -a %{buildroot}%{_bindir}/migrate
+%python_clone -a %{buildroot}%{_bindir}/migrate-repository
#NOTE(saschpe): enable tests later, there are one or two upstream issues
#%%check
#python setup.py test
-%files
+%post
+%python_install_alternative migrate
+%python_install_alternative migrate-repository
+
+%postun
+%python_uninstall_alternative migrate
+%python_uninstall_alternative migrate-repository
+
+%files %{python_files}
%defattr(-,root,root)
-%doc COPYING README.rst doc/build/html
-%{_bindir}/migrate
-%{_bindir}/migrate-repository
+%doc COPYING README.rst
+%python_alternative %{_bindir}/migrate
+%python_alternative %{_bindir}/migrate-repository
%{python_sitelib}/migrate
%{python_sitelib}/sqlalchemy_migrate-*
+%files -n python-sqlalchemy-migrate-doc
+%doc COPYING doc/build/html
+
%changelog