From f8e6e9070c96e58dd5e336200319585e15710b2a Mon Sep 17 00:00:00 2001 From: Dmitry Kovalenko Date: Mon, 27 Mar 2017 10:15:57 +0300 Subject: [PATCH] Rework license file creation for packages Change-Id: Ia0be79eb837797f5a0e8c2206b9803aa3fcbf41a --- packaging/swap-probe.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packaging/swap-probe.spec b/packaging/swap-probe.spec index 50b3fce..299c8cc 100644 --- a/packaging/swap-probe.spec +++ b/packaging/swap-probe.spec @@ -136,14 +136,12 @@ export LIBDIR=%{_libdir} export INCLUDEDIR=%{_includedir} rm -rf ${RPM_BUILD_ROOT} -mkdir -p %{buildroot}/usr/share/license -cp LICENSE.MIT %{buildroot}/usr/share/license/%{name} -cat LICENSE.LGPLv2.1+ >> %{buildroot}/usr/share/license/%{name} %make_install %files -n swap-probe -/usr/share/license/%{name} +%license LICENSE.MIT +%license LICENSE.LGPLv2.1+ %manifest swap-probe.manifest %defattr(-,root,root,-) @@ -161,6 +159,8 @@ cat LICENSE.LGPLv2.1+ >> %{buildroot}/usr/share/license/%{name} %{_includedir}/linker_info.h %files -n swap-probe-elf +%license LICENSE.MIT +%license LICENSE.LGPLv2.1+ %manifest swap-probe-elf.manifest %defattr(-,root,root,-) %{_bindir}/parse_elf @@ -168,6 +168,7 @@ cat LICENSE.LGPLv2.1+ >> %{buildroot}/usr/share/license/%{name} %{_libdir}/libparserelf.so %files -n swap-probe-lsan +%license LICENSE.compiler-rt %manifest swap-probe-lsan.manifest %defattr(-,root,root,-) %{_libdir}/da_swap_lsan.so -- 2.7.4