From f41893982fc305c98d34b0312a60aa912deac86d91b8ae5729fec107363abb6f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:26:16 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xcffib?expand=0&rev=4 --- python-xcffib.spec | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/python-xcffib.spec b/python-xcffib.spec index f785c76..ae1027b 100644 --- a/python-xcffib.spec +++ b/python-xcffib.spec @@ -16,17 +16,16 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} # Missing files for tests %bcond_with tests - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-xcffib Version: 0.5.1 Release: 0 Summary: A drop in replacement for xpyb, an XCB python binding License: Apache-2.0 Group: Development/Languages/Python -Url: http://github.com/tych0/xcffib +URL: http://github.com/tych0/xcffib Source: https://files.pythonhosted.org/packages/source/x/xcffib/xcffib-%{version}.tar.gz BuildRequires: %{python_module cffi} BuildRequires: %{python_module setuptools} @@ -34,13 +33,12 @@ BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: libxcb-devel BuildRequires: python-rpm-macros +Requires: python-cffi +Requires: python-six +BuildArch: noarch %if %{with tests} BuildRequires: %{python_module nose} %endif -Requires: python-cffi -Requires: python-six -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %python_subpackages %description @@ -63,8 +61,8 @@ replacement for xpyb. %endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.md +%license LICENSE +%doc README.md %{python_sitelib}/xcffib/ %{python_sitelib}/xcffib-%{version}-py*.egg-info