2018-02-20 13:41:43 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-mygpoclient
|
|
|
|
|
#
|
2025-03-10 12:29:19 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-02-20 13:41:43 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2018-12-04 13:41:57 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-02-20 13:41:43 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2024-03-09 12:24:04 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-02-20 13:41:43 +00:00
|
|
|
Name: python-mygpoclient
|
2025-03-10 12:29:19 +00:00
|
|
|
Version: 1.10
|
2018-02-20 13:41:43 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python gpodder.net API Client Library
|
2018-12-04 13:41:57 +00:00
|
|
|
License: GPL-3.0-or-later
|
2019-10-14 14:00:37 +00:00
|
|
|
URL: https://gpodder.org/mygpoclient
|
2018-02-20 13:41:43 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/mygpoclient/mygpoclient-%{version}.tar.gz
|
2025-03-10 12:29:19 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-12-06 17:33:15 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-03-10 12:29:19 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-02-20 13:41:43 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-simplejson
|
2020-05-25 09:21:01 +00:00
|
|
|
Requires(post): update-alternatives
|
2025-03-10 12:29:19 +00:00
|
|
|
Requires(postun): update-alternatives
|
2018-02-20 13:41:43 +00:00
|
|
|
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
|
2025-03-10 12:29:19 +00:00
|
|
|
%pyproject_wheel
|
2018-02-20 13:41:43 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-03-10 12:29:19 +00:00
|
|
|
%pyproject_install
|
2020-05-25 09:21:01 +00:00
|
|
|
%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
|
2019-10-14 14:00:37 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-02-20 13:41:43 +00:00
|
|
|
|
2020-05-25 09:21:01 +00:00
|
|
|
%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
|
|
|
|
|
|
2018-02-20 13:41:43 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc AUTHORS
|
|
|
|
|
%license COPYING
|
2020-05-25 09:21:01 +00:00
|
|
|
%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}
|
2025-03-10 12:29:19 +00:00
|
|
|
%{python_sitelib}/mygpoclient
|
|
|
|
|
%{python_sitelib}/mygpoclient-%{version}.dist-info
|
2018-02-20 13:41:43 +00:00
|
|
|
|
|
|
|
|
%changelog
|