From 814527fc84adbdf29184262ad83c2c63b525b246 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Mon, 14 Jan 2008 08:10:01 +0000 Subject: [PATCH] - Move libparted libraries to /lib (#428420) --- parted.spec | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/parted.spec b/parted.spec index 9528560..174a475 100644 --- a/parted.spec +++ b/parted.spec @@ -1,10 +1,10 @@ -%define aclocaldir /usr/share/aclocal %define _sbindir /sbin +%define _libdir /%{_lib} Summary: The GNU disk partition manipulation program Name: parted Version: 1.8.8 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ Group: Applications/System URL: http://www.gnu.org/software/parted @@ -62,6 +62,18 @@ Parted library, you need to install this package. %install %{__rm} -rf %{buildroot} %{__make} install DESTDIR=%{buildroot} + +# Move devel package components in to the correct location +%{__mkdir} -p %{buildroot}%{_exec_prefix}/%{_lib} +%{__mv} %{buildroot}%{_libdir}/libparted.so %{buildroot}%{_exec_prefix}/%{_lib} +%{__mv} %{buildroot}%{_libdir}/pkgconfig %{buildroot}%{_exec_prefix}/%{_lib} +pushd %{buildroot}%{_exec_prefix}/%{_lib} +reallibrary="$(readlink libparted.so)" +%{__rm} -f libparted.so +ln -sf ../../%{_lib}/${reallibrary} libparted.so +popd + +# Remove components we do not ship %{__rm} -rf %{buildroot}%{_libdir}/*.la %{__rm} -rf %{buildroot}%{_infodir}/dir %{__rm} -rf %{buildroot}%{_bindir}/label @@ -95,10 +107,13 @@ fi %files devel %defattr(-,root,root,-) %{_includedir}/parted -%{_libdir}/libparted.so -%{_libdir}/pkgconfig/libparted.pc +%{_exec_prefix}/%{_lib}/libparted.so +%{_exec_prefix}/%{_lib}/pkgconfig/libparted.pc %changelog +* Mon Jan 14 2008 David Cantrell - 1.8.8-2 +- Move libparted libraries to /lib (#428420) + * Wed Jan 02 2008 David Cantrell - 1.8.8-1 - Upgraded to GNU parted-1.8.8 - License for GNU parted is now GPLv3+