2014-02-04 13:41:12 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-pkginfo
|
|
|
|
#
|
2024-03-16 10:29:30 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2014-02-04 13:41:12 +01: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-04 14:47:24 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-04 13:41:12 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-21 16:15:30 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2014-02-04 13:41:12 +01:00
|
|
|
Name: python-pkginfo
|
2024-06-20 15:21:50 +02:00
|
|
|
Version: 1.11.1
|
2014-02-04 13:41:12 +01:00
|
|
|
Release: 0
|
2018-12-19 04:59:44 +01:00
|
|
|
Summary: Python package for querying metadatdata from sdists/bdists/installed packages
|
2017-04-19 18:14:06 +02:00
|
|
|
License: MIT
|
2014-02-04 13:41:12 +01:00
|
|
|
Group: Development/Languages/Python
|
2020-08-16 19:30:09 +02:00
|
|
|
URL: https://pypi.python.org/pypi/pkginfo/
|
2017-04-19 18:14:06 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pkginfo/pkginfo-%{version}.tar.gz
|
2024-06-03 12:52:32 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
|
|
BuildRequires: %{python_module pip}
|
2017-04-19 18:14:06 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-06-03 12:52:32 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-05-20 18:41:20 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-08-16 19:30:09 +02:00
|
|
|
Requires: python-setuptools
|
2018-12-04 18:18:22 +01:00
|
|
|
Requires(post): update-alternatives
|
2024-03-16 10:29:30 +01:00
|
|
|
Requires(postun): update-alternatives
|
2018-12-04 18:18:22 +01:00
|
|
|
BuildArch: noarch
|
2019-06-20 17:54:21 +02:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
2023-01-21 07:48:38 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-06-20 17:54:21 +02:00
|
|
|
# /SECTION
|
2017-04-19 18:14:06 +02:00
|
|
|
%python_subpackages
|
2014-02-04 13:41:12 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides an API for querying the distutils metadata written in
|
|
|
|
the PKG-INFO file inside a source distriubtion (an sdist) or a
|
|
|
|
binary distribution (e.g., created by running bdist_egg). It can
|
|
|
|
also query the EGG-INFO directory of an installed distribution, and
|
|
|
|
the *.egg-info stored in a "development checkout"
|
|
|
|
(e.g, created by running setup.py develop).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pkginfo-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-06-03 12:52:32 +02:00
|
|
|
%pyproject_wheel
|
2014-02-04 13:41:12 +01:00
|
|
|
|
|
|
|
%install
|
2024-06-03 12:52:32 +02:00
|
|
|
%pyproject_install
|
2017-04-19 18:14:06 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pkginfo
|
|
|
|
|
|
|
|
%check
|
2019-06-20 17:54:21 +02:00
|
|
|
%pytest
|
2017-04-19 18:14:06 +02:00
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative pkginfo
|
|
|
|
|
2023-01-21 07:48:38 +01:00
|
|
|
%postun
|
2017-04-19 18:14:06 +02:00
|
|
|
%python_uninstall_alternative pkginfo
|
2014-02-04 13:41:12 +01:00
|
|
|
|
2017-04-19 18:14:06 +02:00
|
|
|
%files %{python_files}
|
2018-12-04 18:18:22 +01:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.txt CHANGES.txt TODO.txt
|
2017-04-19 18:14:06 +02:00
|
|
|
%python_alternative %{_bindir}/pkginfo
|
2014-02-04 13:41:12 +01:00
|
|
|
%{python_sitelib}/pkginfo
|
2024-06-03 12:52:32 +02:00
|
|
|
%{python_sitelib}/pkginfo-%{version}.dist-info
|
2014-02-04 13:41:12 +01:00
|
|
|
|
|
|
|
%changelog
|