From 6348e7089876dae2ad660f4a1918534a0950dc0abbaac0f3448404857b778087 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Wed, 4 Apr 2018 15:41:16 +0000 Subject: [PATCH] Accepting request 593295 from home:kukuk:branches:devel:tools:lttng - Use %license instead of %doc [bsc#1082318] OBS-URL: https://build.opensuse.org/request/show/593295 OBS-URL: https://build.opensuse.org/package/show/devel:tools:lttng/babeltrace?expand=0&rev=15 --- babeltrace.changes | 5 +++++ babeltrace.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/babeltrace.changes b/babeltrace.changes index 3a23faa..73cec62 100644 --- a/babeltrace.changes +++ b/babeltrace.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 3 16:07:06 CEST 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + ------------------------------------------------------------------- Thu Mar 15 16:19:49 UTC 2018 - sor.alexei@meowr.ru diff --git a/babeltrace.spec b/babeltrace.spec index 3ad4fa6..ddfafc2 100644 --- a/babeltrace.spec +++ b/babeltrace.spec @@ -85,12 +85,15 @@ make %{?_smp_mflags} V=1 %install %make_install find %{buildroot} -type f -name "*.la" -delete -print +# remove licenses from doc +rm -f %{buildroot}%{_docdir}/%{name}/{LICENSE,mit-license.txt,gpl-2.0.txt} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files +%license LICENSE mit-license.txt gpl-2.0.txt %doc %{_docdir}/%{name}/ %{_bindir}/%{name}* %{_libdir}/%{soname}*.so.%{sover}*