From b7f420112be7636dcd3be27df3ee3862a23a3706 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 5 Jan 2021 15:30:50 +0100 Subject: [PATCH] Extract and ship license file (#1912893) --- python-ply.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python-ply.spec b/python-ply.spec index f42dc0c..8d70b00 100644 --- a/python-ply.spec +++ b/python-ply.spec @@ -5,7 +5,7 @@ Name: python-%{modname} Summary: Python Lex-Yacc Version: 3.11 -Release: 9%{?dist} +Release: 10%{?dist} License: BSD URL: http://www.dabeaz.com/ply/ Source0: http://www.dabeaz.com/ply/%{modname}-%{version}.tar.gz @@ -54,6 +54,8 @@ find example/ -type f -name '*.py' -exec sed -i \ -e '1{\@^#!/usr/bin/env python@d}' -e '1{\@^#!/usr/local/bin/python@d}' \ {} ';' rm -rf *.egg-info +# extract license block from beginning of README.md +grep -B1000 "POSSIBILITY OF SUCH DAMAGE" README.md > LICENSE %build %py3_build @@ -72,10 +74,14 @@ popd %files -n python3-%{modname} %doc CHANGES README.md +%license LICENSE %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-*.egg-info/ %changelog +* Tue Jan 5 15:25:57 CET 2021 Christian Heimes - 3.11-10 +- Extract and ship license file (#1912893) + * Wed Jul 29 2020 Fedora Release Engineering - 3.11-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild