Hello community,
here is the log from the commit of package python-template-remover for
openSUSE:Factory checked in at 2020-05-20 18:44:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-template-remover (Old)
and /work/SRC/openSUSE:Factory/.python-template-remover.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-template-remover"
Wed May 20 18:44:40 2020 rev:2 rq:807164 version:0.1.9
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-template-remover/python-template-remover.changes
2019-02-14 14:33:16.355654973 +0100
+++
/work/SRC/openSUSE:Factory/.python-template-remover.new.2738/python-template-remover.changes
2020-05-20 18:45:29.801286963 +0200
@@ -1,0 +2,5 @@
+Tue May 19 08:03:14 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-template-remover.spec ++++++
--- /var/tmp/diff_new_pack.wkVlYY/_old 2020-05-20 18:45:31.341290422 +0200
+++ /var/tmp/diff_new_pack.wkVlYY/_new 2020-05-20 18:45:31.345290431 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-template-remover
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,27 +12,29 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-template-remover
Version: 0.1.9
Release: 0
-License: Apache-2.0
Summary: Remove the template markup from html files
-Url: http://github.com/deezer/template-remover
+License: Apache-2.0
Group: Development/Languages/Python
+URL: https://github.com/deezer/template-remover
Source:
https://files.pythonhosted.org/packages/source/t/template-remover/template-remover-%{version}.tar.gz
Source1:
https://raw.githubusercontent.com/deezer/template-remover/master/LICENSE
+BuildRequires: %{python_module docopt >= 0.6.1}
+BuildRequires: %{python_module nose >= 1.3}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-BuildRequires: %{python_module docopt >= 0.6.1}
-BuildRequires: %{python_module nose >= 1.3}
Requires: python-docopt >= 0.6.1
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
-
%python_subpackages
%description
@@ -44,7 +46,7 @@
%prep
%setup -q -n template-remover-%{version}
-cp %SOURCE1 .
+cp %{SOURCE1} .
%build
%python_build
@@ -52,15 +54,22 @@
%install
%python_install
mv %{buildroot}%{_bindir}/remove_template.py
%{buildroot}%{_bindir}/remove_template
+%python_clone -a %{buildroot}%{_bindir}/remove_template
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -R setup.py nosetests
+%post
+%python_install_alternative remove_template
+
+%postun
+%python_uninstall_alternative remove_template
+
%files %{python_files}
%license LICENSE
%doc README.rst
-%python3_only %{_bindir}/remove_template
+%python_alternative %{_bindir}/remove_template
%{python_sitelib}/*
%changelog