forked from pool/python-pkginfo
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pkginfo?expand=0&rev=9
This commit is contained in:
parent
4bb3111bd8
commit
fb981a0c82
@ -16,28 +16,26 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
# Tests are currently broken.
|
# Tests are currently broken.
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-pkginfo
|
Name: python-pkginfo
|
||||||
Version: 1.4.2
|
Version: 1.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Query metadatdata from sdists / bdists / installed packages
|
Summary: Query metadatdata from sdists / bdists / installed packages
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
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
|
Source: https://files.pythonhosted.org/packages/source/p/pkginfo/pkginfo-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(preun): update-alternatives
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
%endif
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(preun): update-alternatives
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -76,8 +74,8 @@ $python setup.py test -q
|
|||||||
%python_uninstall_alternative pkginfo
|
%python_uninstall_alternative pkginfo
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE.txt
|
||||||
%doc README.txt CHANGES.txt LICENSE.txt TODO.txt
|
%doc README.txt CHANGES.txt TODO.txt
|
||||||
%python_alternative %{_bindir}/pkginfo
|
%python_alternative %{_bindir}/pkginfo
|
||||||
%{python_sitelib}/pkginfo
|
%{python_sitelib}/pkginfo
|
||||||
%{python_sitelib}/pkginfo-%{version}-py*.egg-info
|
%{python_sitelib}/pkginfo-%{version}-py*.egg-info
|
||||||
|
Loading…
Reference in New Issue
Block a user