forked from pool/python-pyjokes
- update to 0.8.3:
* update docs * add unit tests * correct license specification - Fix LICENSE url - Initial release of python-pyjokes 0.5.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyjokes?expand=0&rev=10
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyjokes
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,17 +16,17 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pyjokes
|
||||
Version: 0.6.0
|
||||
Version: 0.8.3
|
||||
Release: 0
|
||||
Summary: One line jokes for programmers (jokes as a service)
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pyjokes/pyjokes
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyjokes/pyjokes-%{version}.tar.gz
|
||||
Source99: https://raw.githubusercontent.com/pyjokes/pyjokes/master/LICENCE.txt
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry-core}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
@@ -41,13 +41,12 @@ from a specific category (neutral/adult/chuck/all). The default is neutral.
|
||||
|
||||
%prep
|
||||
%setup -q -n pyjokes-%{version}
|
||||
cp %{SOURCE99} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyjokes
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyjoke
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
@@ -61,10 +60,11 @@ cp %{SOURCE99} .
|
||||
%python_uninstall_alternative pyjoke
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%doc README.md
|
||||
%license LICENCE.txt
|
||||
%python_alternative %{_bindir}/pyjoke
|
||||
%python_alternative %{_bindir}/pyjokes
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/pyjokes
|
||||
%{python_sitelib}/pyjokes-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user