forked from pool/python-venusian
- Don't use sphinx-build and clean up the SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-venusian?expand=0&rev=23
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 23 09:19:30 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Don't use sphinx-build and clean up the SPEC file.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 17 06:18:22 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Mon Aug 17 06:18:22 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-venusian
|
# spec file for package python-venusian
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
# Copyright (c) 2013-2019 LISA GmbH, Bingen, Germany.
|
# Copyright (c) 2013-2019 LISA GmbH, Bingen, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,7 +17,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-venusian
|
Name: python-venusian
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
@@ -27,7 +26,8 @@ License: SUSE-Repoze AND ZPL-2.1
|
|||||||
URL: https://github.com/Pylons/venusian
|
URL: https://github.com/Pylons/venusian
|
||||||
Source: https://files.pythonhosted.org/packages/source/v/venusian/venusian-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/v/venusian/venusian-%{version}.tar.gz
|
||||||
Patch0: fix-pylons-sphinx-theme.diff
|
Patch0: fix-pylons-sphinx-theme.diff
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -57,17 +57,18 @@ Requires: %{name} = %{version}
|
|||||||
This package contains documentation files for %{name}.
|
This package contains documentation files for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n venusian-%{version}
|
%autosetup -p1 -n venusian-%{version}
|
||||||
%patch0 -p1
|
|
||||||
rm -rf venusian.egg-info
|
rm -rf venusian.*-info
|
||||||
sed -i '/addopts/d' setup.cfg
|
sed -i '/addopts/d' setup.cfg
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
PYTHONPATH=src python3 setup.py build_sphinx && rm -v build/sphinx/html/{.buildinfo,objects.inv}
|
PYTHONPATH=src python3 -msphinx docs build/sphinx/html \
|
||||||
|
&& rm -rv build/sphinx/html/{.buildinfo,objects.inv,.doctrees}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -77,7 +78,7 @@ PYTHONPATH=src python3 setup.py build_sphinx && rm -v build/sphinx/html/{.buildi
|
|||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%{python_sitelib}/venusian
|
%{python_sitelib}/venusian
|
||||||
%{python_sitelib}/venusian-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/venusian-%{version}*-info
|
||||||
|
|
||||||
%files %{python_files doc}
|
%files %{python_files doc}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
Reference in New Issue
Block a user