Hello community,
here is the log from the commit of package python-gscholar for openSUSE:Factory
checked in at 2020-05-28 09:18:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gscholar (Old)
and /work/SRC/openSUSE:Factory/.python-gscholar.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gscholar"
Thu May 28 09:18:16 2020 rev:2 rq:809359 version:1.6.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gscholar/python-gscholar.changes
2018-06-02 12:08:02.269035479 +0200
+++
/work/SRC/openSUSE:Factory/.python-gscholar.new.3606/python-gscholar.changes
2020-05-28 09:18:17.529095933 +0200
@@ -1,0 +2,5 @@
+Tue May 26 06:34:31 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-gscholar.spec ++++++
--- /var/tmp/diff_new_pack.nP3h1B/_old 2020-05-28 09:18:18.029096848 +0200
+++ /var/tmp/diff_new_pack.nP3h1B/_new 2020-05-28 09:18:18.033096855 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-gscholar
#
-# 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,7 +12,7 @@
# 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/
#
@@ -23,12 +23,14 @@
Summary: Python library to query Google Scholar
License: MIT
Group: Development/Languages/Python
-Url: https://github.com/venthur/gscholar
+URL: https://github.com/venthur/gscholar
Source0:
https://files.pythonhosted.org/packages/source/g/gscholar/gscholar-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -47,12 +49,19 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/gscholar
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%post
+%python_install_alternative gscholar
+
+%postun
+%python_uninstall_alternative gscholar
+
%files %{python_files}
%license LICENSE
%doc README.md CHANGELOG.md
%{python_sitelib}/*
-%python3_only %{_bindir}/gscholar
+%python_alternative %{_bindir}/gscholar
%changelog