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
This commit is contained in:
parent
b2e8130d36
commit
c3afce22ec
@ -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
|
||||
|
||||
|
19
parted.spec
19
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)
|
||||
|
Loading…
Reference in New Issue
Block a user