2016-12-05 14:48:19 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pymod2pkg
|
|
|
|
#
|
2024-01-07 20:05:19 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2016-12-05 14:48:19 +00:00
|
|
|
#
|
|
|
|
# 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-14 11:55:50 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-12-05 14:48:19 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global sname pymod2pkg
|
|
|
|
Name: python-pymod2pkg
|
2024-01-07 20:05:19 +00:00
|
|
|
Version: 0.28.0
|
2016-12-05 14:48:19 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: OpenStack Packaging - python module name to package name map
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Python
|
2018-09-11 07:55:08 +00:00
|
|
|
URL: https://wiki.openstack.org/wiki/Rpm-packaging
|
2024-01-07 20:05:19 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pymod2pkg/pymod2pkg-0.28.0.tar.gz
|
2016-12-05 14:48:19 +00:00
|
|
|
BuildRequires: openstack-macros
|
2020-04-01 11:11:56 +00:00
|
|
|
BuildRequires: python3-distro
|
2019-08-23 08:22:10 +00:00
|
|
|
BuildRequires: python3-pbr >= 2.0.0
|
2018-12-14 11:55:50 +00:00
|
|
|
BuildRequires: python3-stestr
|
|
|
|
BuildRequires: python3-testresources
|
|
|
|
BuildRequires: python3-testtools
|
2016-12-05 14:48:19 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
pymod2pkg is a simple python module for translating python module names to
|
|
|
|
corresponding package names which is a common problem in the packaging world.
|
|
|
|
|
2020-04-01 11:11:56 +00:00
|
|
|
%package -n python3-pymod2pkg
|
|
|
|
Summary: OpenStack Packaging - python module name to package name map
|
|
|
|
Requires: python3-distro
|
|
|
|
Requires: python3-pbr >= 2.0.0
|
2020-04-20 07:53:19 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Obsoletes: python2-pymod2pkg < 0.23.0
|
|
|
|
%endif
|
2020-04-01 11:11:56 +00:00
|
|
|
|
|
|
|
%description -n python3-pymod2pkg
|
|
|
|
pymod2pkg is a simple python module for translating python module names to
|
|
|
|
corresponding package names which is a common problem in the packaging world.
|
|
|
|
|
|
|
|
This package contains the Python 3.x module.
|
|
|
|
|
2018-12-14 11:55:50 +00:00
|
|
|
%package -n python-pymod2pkg-doc
|
2016-12-05 14:48:19 +00:00
|
|
|
Summary: Documentation for python module name to package name map library
|
2019-08-20 04:40:30 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
BuildRequires: python3-openstackdocstheme
|
2016-12-05 14:48:19 +00:00
|
|
|
|
2018-12-14 11:55:50 +00:00
|
|
|
%description -n python-pymod2pkg-doc
|
2016-12-05 14:48:19 +00:00
|
|
|
Documentation for python module name to package name map library.
|
|
|
|
|
|
|
|
%prep
|
2024-01-07 20:05:19 +00:00
|
|
|
%autosetup -p1 -n pymod2pkg-0.28.0
|
2016-12-23 12:51:58 +00:00
|
|
|
%py_req_cleanup
|
2016-12-05 14:48:19 +00:00
|
|
|
|
|
|
|
%build
|
2020-04-01 11:11:56 +00:00
|
|
|
%{py3_build}
|
2018-12-14 11:55:50 +00:00
|
|
|
|
2016-12-05 14:48:19 +00:00
|
|
|
# generate html docs
|
2019-08-20 04:40:30 +00:00
|
|
|
%sphinx_build -b html doc/source doc/build/html
|
2016-12-05 14:48:19 +00:00
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
|
|
|
|
%install
|
2020-04-01 11:11:56 +00:00
|
|
|
%{py3_install}
|
2016-12-05 14:48:19 +00:00
|
|
|
|
|
|
|
%check
|
2023-03-03 21:32:27 +00:00
|
|
|
%{openstack_stestr_run}
|
2016-12-05 14:48:19 +00:00
|
|
|
|
2020-04-01 11:11:56 +00:00
|
|
|
%files -n python3-pymod2pkg
|
2016-12-05 14:48:19 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README*
|
2020-04-01 11:11:56 +00:00
|
|
|
%{_bindir}/pymod2pkg
|
2024-01-07 20:05:19 +00:00
|
|
|
%{_bindir}/reqs2pkg
|
|
|
|
%{python3_sitelib}/pymod2pkg
|
|
|
|
%{python3_sitelib}/pymod2pkg-%{version}*-info
|
2016-12-05 14:48:19 +00:00
|
|
|
|
2018-12-14 11:55:50 +00:00
|
|
|
%files -n python-pymod2pkg-doc
|
2016-12-05 14:48:19 +00:00
|
|
|
%doc doc/build/html
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|