- install the actual expand binary

This commit is contained in:
Dan Horák 2016-07-27 14:23:25 +02:00
parent 755bc93d48
commit 3dda332cfb

View File

@ -1,6 +1,6 @@
Name: libmspack
Version: 0.5
Release: 0.6.alpha%{?dist}
Release: 0.7.alpha%{?dist}
Summary: Library for CAB and related files compression and decompression
Group: System Environment/Libraries
@ -36,6 +36,11 @@ chmod a-x mspack/mspack.h
%build
CFLAGS="%{optflags} -fno-strict-aliasing" \
%configure --disable-static --disable-silent-rules
# disable rpath the hard way
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
@ -44,7 +49,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
rm $RPM_BUILD_ROOT%{_libdir}/libmspack.la
# avoid conflict with expand from coreutils
install -D -p -m 755 test/expand $RPM_BUILD_ROOT%{_bindir}/msexpand
libtool --mode=install install -D -p -m 755 test/expand $RPM_BUILD_ROOT%{_bindir}/msexpand
iconv -f ISO_8859-1 -t utf8 ChangeLog --output Changelog.utf8
touch -r ChangeLog Changelog.utf8
@ -75,6 +80,9 @@ popd
%changelog
* Wed Jul 27 2016 Dan Horák <dan[at]danny.cz> - 0.5-0.7.alpha
- install the actual expand binary
* Wed Jul 27 2016 Dan Horák <dan[at]danny.cz> - 0.5-0.6.alpha
- install the expand tool as msexpand (#1319357)