From aba0dcc5ea239e51efda5ead765feb6c9f7bcce9 Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Jul 31 2022 01:40:46 +0000 Subject: Extract a LICENSE file from arpwatch.c’s comment header We have emailed upstream requesting a proper license file. --- 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