Accepting request 629183 from devel:languages:python

- Use %license to install License file

OBS-URL: https://build.opensuse.org/request/show/629183
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-mimeparse?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2018-08-27 10:53:57 +00:00 committed by Git OBS Bridge
commit 7685f9ac95
2 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 14 07:24:10 UTC 2018 - tchvatal@suse.com
- Use %license to install License file
------------------------------------------------------------------- -------------------------------------------------------------------
Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-python-mimeparse # spec file for package python-python-mimeparse
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -24,18 +24,16 @@ Release: 0
Summary: Basic functions for parsing and matching mime-type names Summary: Basic functions for parsing and matching mime-type names
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/dbtsai/python-mimeparse URL: https://github.com/dbtsai/python-mimeparse
Source: https://pypi.io/packages/source/p/python-mimeparse/python-mimeparse-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/python-mimeparse/python-mimeparse-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch
%ifpython2 %ifpython2
Obsoletes: %{oldpython}-mimeparse < 0.1.4 Obsoletes: %{oldpython}-mimeparse < 0.1.4
Provides: %{oldpython}-mimeparse = %{version} Provides: %{oldpython}-mimeparse = %{version}
%endif %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@ -57,8 +55,8 @@ the HTTP specification [RFC 2616] for a complete explanation.
%python_exec mimeparse_test.py %python_exec mimeparse_test.py
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENSE
%doc LICENSE README.rst %doc README.rst
%pycache_only %{python_sitelib}/__pycache__ %pycache_only %{python_sitelib}/__pycache__
%{python_sitelib}/mimeparse.py* %{python_sitelib}/mimeparse.py*
%{python_sitelib}/python_mimeparse-%{version}-py%{python_version}.egg-info %{python_sitelib}/python_mimeparse-%{version}-py%{python_version}.egg-info