1
0
forked from pool/gnu_parallel

file licenses the right way

OBS-URL: https://build.opensuse.org/package/show/utilities/gnu_parallel?expand=0&rev=142
This commit is contained in:
Jan Engelhardt 2021-03-23 15:38:36 +00:00 committed by Git OBS Bridge
parent 78d97c8999
commit d9b17e91fb

View File

@ -42,7 +42,7 @@ commands in parallel.
%package doc %package doc
Summary: Documentation for GNU parallel Summary: Documentation for GNU parallel
License: GFDL-1.3-only AND CC-BY-SA-3.0 License: CC-BY-SA-3.0 AND GFDL-1.3-only
Group: Documentation/HTML Group: Documentation/HTML
%description doc %description doc
@ -59,7 +59,7 @@ This subpackage contains the documentation for Parallel.
%install %install
%make_install %make_install
cp -a CITATION NEWS README LICENSES/CC-BY-SA-4.0.txt LICENSES/GFDL-1.3-or-later.txt "%buildroot/%_docdir/%name/" cp -a CITATION NEWS README "%buildroot/%_docdir/%name/"
# fix shebang to to not use env & preserve the time stamps # fix shebang to to not use env & preserve the time stamps
sed -i.orig "s:^#\!/usr/bin/env\s\+perl\s\?$:#!%__perl:" "%buildroot/%_bindir/parallel" sed -i.orig "s:^#\!/usr/bin/env\s\+perl\s\?$:#!%__perl:" "%buildroot/%_bindir/parallel"
@ -67,7 +67,7 @@ touch -r "%buildroot/%_bindir/parallel.orig" "%buildroot/%_bindir/parallel"
rm "%buildroot/%_bindir/parallel.orig" rm "%buildroot/%_bindir/parallel.orig"
%files %files
%license LICENSES/GPL-3.0-or-later.txt %license LICENSES/GPL-3.0-or-later.txt LICENSES/CC-BY-SA-4.0.txt LICENSES/GFDL-1.3-or-later.txt
%_bindir/env_parallel* %_bindir/env_parallel*
%_bindir/niceload %_bindir/niceload
%_bindir/par* %_bindir/par*