From fb981a0c8252fb5d487316ace2591bbb125e737f726ff7d0635303d7e7ff60e1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:18:22 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pkginfo?expand=0&rev=9 --- python-pkginfo.spec | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/python-pkginfo.spec b/python-pkginfo.spec index 147ccbd..a1aa007 100644 --- a/python-pkginfo.spec +++ b/python-pkginfo.spec @@ -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