2010-12-11 17:13:00 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-py2pack
|
|
|
|
#
|
2020-10-27 09:11:06 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2010-12-11 17:13:00 +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.
|
2012-04-13 12:22:11 +00:00
|
|
|
|
2018-12-04 13:57:57 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-12-11 17:13:00 +00:00
|
|
|
#
|
|
|
|
|
2014-02-10 10:13:31 +00:00
|
|
|
|
2017-05-03 14:54:26 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-05-31 08:03:37 +00:00
|
|
|
Name: python-py2pack
|
2020-11-10 13:06:03 +00:00
|
|
|
Version: 0.8.6
|
2011-01-25 14:19:00 +00:00
|
|
|
Release: 0
|
2018-12-07 08:20:35 +00:00
|
|
|
Summary: Script for generating distribution packages from Python packages on PyPI
|
2016-07-01 13:09:06 +00:00
|
|
|
License: Apache-2.0
|
2010-12-11 17:13:00 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 17:20:39 +00:00
|
|
|
URL: https://github.com/openSUSE/py2pack
|
2017-05-03 14:54:26 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/py2pack/py2pack-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module Jinja2}
|
|
|
|
BuildRequires: %{python_module metaextract}
|
|
|
|
BuildRequires: %{python_module pbr}
|
2017-06-22 08:38:00 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-05-03 14:54:26 +00:00
|
|
|
BuildRequires: %{python_module six}
|
2019-03-28 08:30:06 +00:00
|
|
|
# SECTION doc requirements
|
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
BuildRequires: python3-sphinxcontrib-programoutput
|
|
|
|
# /SECTION
|
2017-06-22 08:38:00 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2011-09-20 14:58:36 +00:00
|
|
|
Requires: python-Jinja2
|
2017-02-14 12:12:17 +00:00
|
|
|
Requires: python-metaextract
|
|
|
|
Requires: python-pbr
|
2020-12-10 13:31:20 +00:00
|
|
|
Requires: python-requests
|
2017-03-20 15:32:42 +00:00
|
|
|
Requires: python-setuptools
|
2016-07-01 13:09:06 +00:00
|
|
|
Requires: python-six
|
2017-06-22 08:38:00 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2010-12-11 17:13:00 +00:00
|
|
|
BuildArch: noarch
|
2017-05-03 14:54:26 +00:00
|
|
|
%python_subpackages
|
2010-12-11 17:13:00 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This script allows to generate RPM spec or DEB dsc files from Python modules.
|
|
|
|
It allows to list Python modules or search for them on the Python Package Index
|
|
|
|
(PyPI). Conveniently, it can fetch tarballs and changelogs making it an
|
|
|
|
universal tool to package Python modules.
|
|
|
|
|
2017-05-03 14:54:26 +00:00
|
|
|
%package -n %{name}-doc
|
|
|
|
Summary: Documentation for %{name}
|
2017-06-22 08:38:00 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-05-03 14:54:26 +00:00
|
|
|
Provides: %{python_module py2pack-doc = %{version}}
|
|
|
|
|
|
|
|
%description -n %{name}-doc
|
|
|
|
Documentation and help files for %{name}.
|
|
|
|
|
2010-12-11 17:13:00 +00:00
|
|
|
%prep
|
2011-05-31 08:03:37 +00:00
|
|
|
%setup -q -n py2pack-%{version}
|
2010-12-11 17:13:00 +00:00
|
|
|
|
|
|
|
%build
|
2017-05-03 14:54:26 +00:00
|
|
|
%python_build
|
|
|
|
python3 setup.py build_sphinx
|
2017-02-14 12:12:17 +00:00
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
2010-12-11 17:13:00 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-03 14:54:26 +00:00
|
|
|
%python_install
|
2017-06-22 08:38:00 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/py2pack
|
2019-03-28 08:30:06 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-06-22 08:38:00 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative py2pack
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative py2pack
|
2015-08-13 11:48:06 +00:00
|
|
|
|
2017-05-03 14:54:26 +00:00
|
|
|
%files %{python_files}
|
2017-06-22 08:38:00 +00:00
|
|
|
%python_alternative %{_bindir}/py2pack
|
2015-08-13 11:48:06 +00:00
|
|
|
%{python_sitelib}/py2pack-%{version}-py*.egg-info
|
2017-05-03 14:54:26 +00:00
|
|
|
%{python_sitelib}/py2pack/
|
|
|
|
|
|
|
|
%files -n %{name}-doc
|
2018-12-04 17:20:39 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS
|
2017-05-03 14:54:26 +00:00
|
|
|
%doc doc/build/html/
|
2010-12-11 17:13:00 +00:00
|
|
|
|
|
|
|
%changelog
|