From 09cabf510f227a5c6b64ae3872ea36d3d2e99c2b51c0b6080fd2e8a7b2e0d34b Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Fri, 17 Sep 2010 14:52:04 +0000 Subject: [PATCH] package according to shared library policy OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=32 --- baselibs.conf | 2 +- parted.changes | 6 ++++++ parted.spec | 27 +++++++++++++++++++++++---- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/baselibs.conf b/baselibs.conf index 42227e5..c4bcf5c 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1 @@ -parted +libparted0 diff --git a/parted.changes b/parted.changes index 347bc61..40079df 100644 --- a/parted.changes +++ b/parted.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 17 14:47:04 UTC 2010 - puzel@novell.com + +- package according to shared library policy: split libparted0 +- add build dependencies on libblkid and libuuid + ------------------------------------------------------------------- Fri Sep 17 13:47:05 UTC 2010 - puzel@novell.com diff --git a/parted.spec b/parted.spec index 6e0c5cb..0b82c75 100644 --- a/parted.spec +++ b/parted.spec @@ -43,9 +43,11 @@ Requires: /sbin/udevadm BuildRequires: check-devel BuildRequires: device-mapper-devel >= 1.02.33 BuildRequires: e2fsprogs-devel +BuildRequires: libblkid-devel >= 2.17 BuildRequires: libreiserfs-devel BuildRequires: libselinux-devel BuildRequires: libsepol-devel +BuildRequires: libuuid-devel BuildRequires: pkg-config BuildRequires: readline-devel PreReq: %install_info_prereq @@ -59,6 +61,16 @@ Obsoletes: parted-64bit GNU Parted is a program for creating, destroying, resizing, checking, and copying partitions, and the file systems on them. +%package -n libparted0 +License: GPLv3+ +Summary: Library for manipulating partitions +Group: System/Filesystems +AutoReqProv: on + +%description -n libparted0 +Libparted is a library for creating, destroying, resizing, checking +and copying partitions and the file systems on them. + %package devel License: GPLv3+ Summary: Parted Include Files and Libraries necessary for Development @@ -66,7 +78,7 @@ Group: Development/Libraries/C and C++ Requires: device-mapper-devel >= 1.02.33 Requires: e2fsprogs-devel Requires: libreiserfs-devel -Requires: parted = %version +Requires: libparted0 = %version # bug437293 %ifarch ppc64 Obsoletes: parted-devel-64bit @@ -109,19 +121,22 @@ rm %{buildroot}%{_libdir}/*.la rm -rf %{buildroot} %post -/sbin/ldconfig %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %postun -/sbin/ldconfig %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz +%post -n libparted0 +/sbin/ldconfig + +%postun -n libparted0 +/sbin/ldconfig + %files %defattr(-,root,root) %doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO %{_sbindir}/* %{_mandir}/man8/part*.8.gz -%{_libdir}/*.so.* %doc %{_infodir}/*.info* %files devel @@ -131,6 +146,10 @@ rm -rf %{buildroot} %{_libdir}/pkgconfig/libparted.pc %{_libdir}/*.so +%files -n libparted0 +%defattr(-,root,root) +%{_libdir}/*.so.* + %files lang -f %{name}.lang %changelog