From 3c2753cf754423700c23cf78663b10589d8f2d589724dd3c4e198a88d1ccde71 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:10:21 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=21 --- python-bleach.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/python-bleach.spec b/python-bleach.spec index b53936d..8567b4b 100644 --- a/python-bleach.spec +++ b/python-bleach.spec @@ -24,7 +24,7 @@ Release: 0 Summary: An easy whitelist-based HTML-sanitizing tool License: Apache-2.0 Group: Development/Languages/Python -Url: http://github.com/jsocol/bleach +URL: http://github.com/jsocol/bleach Source: https://files.pythonhosted.org/packages/source/b/bleach/bleach-%{version}.tar.gz BuildRequires: %{python_module html5lib >= 0.99999999} BuildRequires: %{python_module pytest-runner} @@ -37,9 +37,7 @@ BuildRequires: python-rpm-macros Requires: python-html5lib >= 0.99999999 Requires: python-six Requires: python-webencodings -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -71,16 +69,16 @@ http://bleach.readthedocs.org/ %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} } %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES LICENSE README.rst +%license LICENSE +%doc CHANGES README.rst %{python_sitelib}/* %changelog