forked from pool/python-mygpoclient
- Update to 1.10 * Add Python 3.11 and 3.12 to tests. * Switch from distutils to setuptools. * Remove unsupported Python 2.7 and 3.6 from tests. * Replace assertEquals with assertEqual. * Replace assert_ with assertIn or assertTrue. * Update to python 3.13 - Limit Python files matched in %files section - Switch build system from setuptools to pyproject.toml * Add python-pip and python-wheel to BuildRequires * Replace %python_build with %pyproject_wheel * Replace %python_install with %pyproject_install OBS-URL: https://build.opensuse.org/request/show/1251763 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mygpoclient?expand=0&rev=14
78 lines
2.6 KiB
RPMSpec
78 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-mygpoclient
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
# Copyright (c) 2010 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-mygpoclient
|
|
Version: 1.10
|
|
Release: 0
|
|
Summary: Python gpodder.net API Client Library
|
|
License: GPL-3.0-or-later
|
|
URL: https://gpodder.org/mygpoclient
|
|
Source: https://files.pythonhosted.org/packages/source/m/mygpoclient/mygpoclient-%{version}.tar.gz
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-simplejson
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
The mygpoclient library allows developers to utilize a Pythonic interface to
|
|
the my.gpodder.org web services.
|
|
|
|
%prep
|
|
%setup -q -n "mygpoclient-%{version}"
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/mygpo-bpsync.1
|
|
%python_clone -a %{buildroot}%{_bindir}/mygpo-simple-client
|
|
%python_clone -a %{buildroot}%{_bindir}/mygpo-list-devices
|
|
%python_clone -a %{buildroot}%{_bindir}/mygpo-bpsync
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%post
|
|
%python_install_alternative mygpo-simple-client
|
|
%python_install_alternative mygpo-list-devices
|
|
%python_install_alternative mygpo-bpsync mygpo-bpsync.1
|
|
|
|
%postun
|
|
%python_uninstall_alternative mygpo-simple-client
|
|
%python_uninstall_alternative mygpo-list-devices
|
|
%python_uninstall_alternative mygpo-bpsync
|
|
|
|
%files %{python_files}
|
|
%doc AUTHORS
|
|
%license COPYING
|
|
%python_alternative %{_bindir}/mygpo-bpsync
|
|
%python_alternative %{_bindir}/mygpo-list-devices
|
|
%python_alternative %{_bindir}/mygpo-simple-client
|
|
%python_alternative %{_mandir}/man1/mygpo-bpsync.1%{ext_man}
|
|
%{python_sitelib}/mygpoclient
|
|
%{python_sitelib}/mygpoclient-%{version}.dist-info
|
|
|
|
%changelog
|