!6 Add license to the setup.py
From: @lb1107039128 Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
df5e9e1c26
29
0001-Add-license-to-the-setup.py-35.patch
Normal file
29
0001-Add-license-to-the-setup.py-35.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From 16c20000574ff8609e5315b6cf78fffa3ae138f5 Mon Sep 17 00:00:00 2001
|
||||
From: Gabi Maeztu <gabriel.maeztu@gmail.com>
|
||||
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
|
||||
|
||||
@ -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 <liubo1@xfusion.com> - 1.6.0-9
|
||||
- Add license to the setup.py
|
||||
|
||||
* Fri Nov 29 2019 zhujunhao <zhujunhao5@huawei.com> - 1.6.0-8
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user