From 6fdb2d13aeef449c491a1664d3ced0c89dc76b71 Mon Sep 17 00:00:00 2001 From: Youngho Jeon Date: Mon, 14 Oct 2013 17:08:07 +0900 Subject: [PATCH] update spec file for license --- packaging/device-mapper.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/device-mapper.spec b/packaging/device-mapper.spec index 46f95e9..a96e757 100644 --- a/packaging/device-mapper.spec +++ b/packaging/device-mapper.spec @@ -53,6 +53,9 @@ make device-mapper %install rm -rf $RPM_BUILD_ROOT +mkdir -p %{buildroot}/usr/share/license +cp COPYING %{buildroot}/usr/share/license/%{name} +cat COPYING.LIB >> %{buildroot}/usr/share/license/%{name} make install_device-mapper DESTDIR=$RPM_BUILD_ROOT usrlibdir=$RPM_BUILD_ROOT/usr/%{_lib} sed -i 's/ (.*)//g' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc @@ -68,6 +71,7 @@ rm -rf $RPM_BUILD_ROOT %doc COPYING COPYING.LIB INSTALL README VERSION_DM WHATS_NEW_DM %attr(755,root,root) %{_sbindir}/dmsetup %{_mandir}/man8/dmsetup.8.gz +/usr/share/license/%{name} %files -n device-mapper-devel %defattr(-,root,root,-) -- 2.7.4