diff --git a/0001-Add-license-to-the-setup.py-35.patch b/0001-Add-license-to-the-setup.py-35.patch new file mode 100644 index 0000000..a12d04b --- /dev/null +++ b/0001-Add-license-to-the-setup.py-35.patch @@ -0,0 +1,29 @@ +From 16c20000574ff8609e5315b6cf78fffa3ae138f5 Mon Sep 17 00:00:00 2001 +From: Gabi Maeztu +Date: Tue, 9 Oct 2018 18:52:33 +0200 +Subject: [PATCH] Add license to the setup.py (#35) + +* Add license to the setup.py + +In order to make automatic checking of license compliance faster, add license to the setup arguments. + +* missing comma +--- + setup.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/setup.py b/setup.py +index d15529a..3e3e89c 100755 +--- a/setup.py ++++ b/setup.py +@@ -34,6 +34,7 @@ setup( + description=("A module provides basic functions for parsing mime-type " + "names and matching them against a list of media-ranges."), + author="DB Tsai", ++ license="MIT", + author_email="dbtsai@dbtsai.com", + url="https://github.com/dbtsai/python-mimeparse", + download_url=("https://github.com/dbtsai/python-mimeparse/tarball/" + +-- +2.42.0.windows.2 + diff --git a/python-mimeparse.spec b/python-mimeparse.spec index 9a648f8..e4fcdab 100644 --- a/python-mimeparse.spec +++ b/python-mimeparse.spec @@ -1,12 +1,14 @@ Name: python-mimeparse Version: 1.6.0 -Release: 8 +Release: 9 Summary: Python module for handling mime-types. License: MIT URL: https://github.com/dbtsai/python-mimeparse Source0: https://files.pythonhosted.org/packages/source/p/python-mimeparse/%{name}-%{version}.tar.gz BuildArch: noarch +Patch0001: 0001-Add-license-to-the-setup.py-35.patch + %description This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. @@ -31,7 +33,7 @@ This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 %build %py2_build @@ -56,5 +58,8 @@ It can handle matching mime-types against a list of media-ranges. %{python3_sitelib}/* %changelog +* Mon Nov 27 2023 liubo - 1.6.0-9 +- Add license to the setup.py + * Fri Nov 29 2019 zhujunhao - 1.6.0-8 - Package init