rear/Makefile
Pavel Cahyna d6b32523e0 Clean up source tarball and license
The file doc/rear-release-notes.txt in upstream sources is CC-BY-ND-3.0,
which is not an allowed license for documentation. Therefore use a
modified tarball without this file. Add a Makefile to remove the file
and generate the modified tarball from the upstream tarball: invoke
make rear-%{version}-clean.tar.gz
while in the tarball's directory.

Adjust License: and %files accordingly.

Resolves: RHEL-26827
2024-08-08 19:15:15 +02:00

4 lines
160 B
Makefile

rear-%-clean.tar.gz: rear-%.tar.gz
set -o pipefail; gunzip -c $< | tar --delete "rear-"$*"/doc/rear-release-notes.txt" -f - | gzip -c - > $@.tmp
mv $@.tmp $@