rpms/parted/devel parted.spec,1.116,1.117

David Cantrell (dcantrel) fedora-extras-commits at redhat.com
Mon Jan 14 08:10:39 UTC 2008


Author: dcantrel

Update of /cvs/pkgs/rpms/parted/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2722

Modified Files:
	parted.spec 
Log Message:
* Mon Jan 14 2008 David Cantrell <dcantrell at redhat.com> - 1.8.8-2
- Move libparted libraries to /lib (#428420)



Index: parted.spec
===================================================================
RCS file: /cvs/pkgs/rpms/parted/devel/parted.spec,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -r1.116 -r1.117
--- parted.spec	3 Jan 2008 02:26:18 -0000	1.116
+++ parted.spec	14 Jan 2008 08:10:01 -0000	1.117
@@ -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 @@
 %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 @@
 %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 <dcantrell at redhat.com> - 1.8.8-2
+- Move libparted libraries to /lib (#428420)
+
 * Wed Jan 02 2008 David Cantrell <dcantrell at redhat.com> - 1.8.8-1
 - Upgraded to GNU parted-1.8.8
 - License for GNU parted is now GPLv3+




More information about the fedora-extras-commits mailing list