20
0

Accepting request 1275987 from devel:languages:python:numeric

- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1275987
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gscholar?expand=0&rev=5
This commit is contained in:
2025-05-09 16:49:58 +00:00
committed by Git OBS Bridge
2 changed files with 17 additions and 7 deletions
+5
View File
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 9 05:10:20 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Sun Oct 9 17:57:08 UTC 2022 - Arun Persaud <arun@gmx.de>
+12 -7
View File
@@ -1,7 +1,7 @@
#
# spec file for package python-gscholar
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,21 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-gscholar
Version: 2.1.0
Release: 0
Summary: Python library to query Google Scholar
License: MIT
Group: Development/Languages/Python
URL: https://github.com/venthur/gscholar
Source0: https://files.pythonhosted.org/packages/source/g/gscholar/gscholar-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -44,13 +44,17 @@ and get references in various formats (e.g. bibtex, endnote, etc.)
sed -i -e '/^#!\//, 1d' gscholar/gscholar.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/gscholar
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# only 3 tests are available on the github tar-ball
# but most need a network connection to google scholar
# so we skip the tests here.
%post
%python_install_alternative gscholar
@@ -60,7 +64,8 @@ sed -i -e '/^#!\//, 1d' gscholar/gscholar.py
%files %{python_files}
%license LICENSE
%doc README.md CHANGELOG.md
%{python_sitelib}/gscholar*
%{python_sitelib}/gscholar
%{python_sitelib}/gscholar-%{version}.dist-info
%python_alternative %{_bindir}/gscholar
%changelog