From aba0dcc5ea239e51efda5ead765feb6c9f7bcce9 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sat, 30 Jul 2022 21:40:46 -0400 Subject: [PATCH] =?UTF-8?q?Extract=20a=20LICENSE=20file=20from=20arpwatch.?= =?UTF-8?q?c=E2=80=99s=20comment=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We have emailed upstream requesting a proper license file. --- arpwatch.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arpwatch.spec b/arpwatch.spec index d6ae73a..16945c5 100644 --- a/arpwatch.spec +++ b/arpwatch.spec @@ -102,6 +102,11 @@ sed -r -i 's|/usr/local/arpwatch|%{pkgstatedir}|g' *.8.in *.sh.in *.sh # Fix Python interpreter path (but note that this script is not installed) sed -r -i 's|/usr/local/bin/python|%{python3}|g' update-ethercodes.sh.in +# Emailed upstream requesting a separate LICENSE/COPYING file 2022-07-30. +# For now, we extract it from the main source file’s “header” comment. +awk '/^ \* / { print substr($0, 4); } /^ \*\// { exit }' arpwatch.c | + tee LICENSE + %build %configure --with-sendmail=/usr/sbin/sendmail PYTHON=%{python3} @@ -196,6 +201,7 @@ exit 0 %files +%license LICENSE %doc README %doc CHANGES %doc arpfetch