Matej Cepl 2018-12-04 17:18:22 +00:00 committed by Git OBS Bridge
parent 4bb3111bd8
commit fb981a0c82

View File

@ -16,28 +16,26 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Tests are currently broken.
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pkginfo
Version: 1.4.2
Release: 0
Summary: Query metadatdata from sdists / bdists / installed packages
License: MIT
Group: Development/Languages/Python
Url: http://pypi.python.org/pypi/pkginfo/
URL: http://pypi.python.org/pypi/pkginfo/
Source: https://files.pythonhosted.org/packages/source/p/pkginfo/pkginfo-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(preun): update-alternatives
BuildArch: noarch
%if %{with tests}
BuildRequires: %{python_module nose}
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(post): update-alternatives
Requires(preun): update-alternatives
%python_subpackages
%description
@ -76,8 +74,8 @@ $python setup.py test -q
%python_uninstall_alternative pkginfo
%files %{python_files}
%defattr(-,root,root,-)
%doc README.txt CHANGES.txt LICENSE.txt TODO.txt
%license LICENSE.txt
%doc README.txt CHANGES.txt TODO.txt
%python_alternative %{_bindir}/pkginfo
%{python_sitelib}/pkginfo
%{python_sitelib}/pkginfo-%{version}-py*.egg-info