explicitly install libcurl man pages

This commit is contained in:
Kamil Dudka 2017-08-09 11:43:42 +02:00
parent 574639b8f6
commit ffdd721180

View File

@ -241,20 +241,24 @@ done
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install -C build-minimal/src
mv -v ${RPM_BUILD_ROOT}%{_bindir}/curl{,.minimal}
# install libcurl.m4
install -d $RPM_BUILD_ROOT%{_datadir}/aclocal
install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT%{_datadir}/aclocal
# install the executable and library that will be packaged as curl and libcurl
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install -C build-full
cd build-full
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
# install libcurl man pages, which will be included in libcurl-devel
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install -C docs/libcurl
# install zsh completion for curl
# (we have to override LD_LIBRARY_PATH because we eliminated rpath)
LD_LIBRARY_PATH="$RPM_BUILD_ROOT%{_libdir}:$LD_LIBRARY_PATH" \
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" \
install -C build-full/scripts
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install -C scripts
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
install -d $RPM_BUILD_ROOT%{_datadir}/aclocal
install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT%{_datadir}/aclocal
%post -n libcurl -p /sbin/ldconfig
%postun -n libcurl -p /sbin/ldconfig