From 25ce8dd35486bf05a0aa9a8aec096576e1c0bade Mon Sep 17 00:00:00 2001 From: Jiyong Min Date: Tue, 28 Mar 2017 19:13:49 +0900 Subject: [PATCH] Use license macro in spec file Change-Id: I0a02689b9be5e5df093e1de1cdd7c8ea025209b4 Signed-off-by: Jiyong Min --- packaging/libbmp.spec | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packaging/libbmp.spec b/packaging/libbmp.spec index 8cf046a..2f07980 100644 --- a/packaging/libbmp.spec +++ b/packaging/libbmp.spec @@ -44,10 +44,6 @@ rm -rf %{buildroot} %make_install rm -rf $RPM_BUILD_ROOT/usr/share/man -#license -mkdir -p %{buildroot}/%{_datadir}/license -cp -rf %{_builddir}/%{name}-%{version}/COPYING %{buildroot}/%{_datadir}/license/%{name} - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -55,7 +51,7 @@ cp -rf %{_builddir}/%{name}-%{version}/COPYING %{buildroot}/%{_datadir}/license/ %manifest libbmp.manifest %defattr(-,root,root,-) %{_libdir}/libbmp*.so.* -%{_datadir}/license/%{name} +%license COPYING %files devel %manifest libbmp.manifest @@ -63,10 +59,10 @@ cp -rf %{_builddir}/%{name}-%{version}/COPYING %{buildroot}/%{_datadir}/license/ %{_includedir}/* %{_libdir}/libbmp*.so %{_libdir}/pkgconfig/* -%{_datadir}/license/%{name} +%license COPYING %files tool %manifest libbmp.manifest %defattr(-,root,root,-) %{_bindir}/* -%{_datadir}/license/%{name} +%license COPYING -- 2.7.4