From c3afce22ecd035ee2637c3cf968dc92fa6c3b89b19753c0b50df7acc5ec8a7fb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 24 Jun 2016 07:49:52 +0000 Subject: [PATCH] Accepting request 403569 from home:jengelh:branches:Base:System - install_info should run in %preun; otherwise the files to operate are gone already. - Drop with-pic: only useful for static libs (which are not built) Drop redundant %clean and switch from LDFLAGS to LIBS because that's the proper variable name OBS-URL: https://build.opensuse.org/request/show/403569 OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=122 --- parted.changes | 7 +++++++ parted.spec | 19 ++++++------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/parted.changes b/parted.changes index f99c61d..69d7f50 100644 --- a/parted.changes +++ b/parted.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Jun 18 07:08:01 UTC 2016 - jengelh@inai.de + +- install_info should run in %preun; otherwise the files to operate + are gone already. +- Drop with-pic: only useful for static libs (which are not built) + ------------------------------------------------------------------- Tue Jun 14 11:09:20 UTC 2016 - puzel@suse.com diff --git a/parted.spec b/parted.spec index cd06241..527cafd 100644 --- a/parted.spec +++ b/parted.spec @@ -89,7 +89,7 @@ and copying partitions, and the file systems on them. %package -n libparted0 Summary: Library for manipulating partitions -Group: System/Filesystems +Group: System/Libraries %description -n libparted0 Libparted is a library for creating, destroying, resizing, checking @@ -146,10 +146,9 @@ to develop applications that require these. %build export CFLAGS="%{optflags} `ncursesw6-config --cflags`" -export LDFLAGS="`ncursesw6-config --libs`" +export LIBS="`ncursesw6-config --libs`" AUTOPOINT=true autoreconf --force --install %configure --disable-static \ - --with-pic \ --enable-device-mapper=yes \ --enable-dynamic-loading=no \ --enable-selinux \ @@ -158,24 +157,18 @@ AUTOPOINT=true autoreconf --force --install make %{?_smp_mflags} %install -%makeinstall +%make_install rm %{buildroot}%{_libdir}/*.la %find_lang %{name} -%clean -rm -rf %{buildroot} - %post %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%postun +%preun %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%post -n libparted0 -/sbin/ldconfig - -%postun -n libparted0 -/sbin/ldconfig +%post -n libparted0 -p /sbin/ldconfig +%postun -n libparted0 -p /sbin/ldconfig %files %defattr(-,root,root)