If we generate docs then install them
This commit is contained in:
parent
5dd9e740f5
commit
de82b42eba
@ -336,12 +336,6 @@ by nm-connection-editor and nm-applet in a non-graphical environment.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%if %{with regen_docs}
|
|
||||||
# back up pristine docs and use them instead of generated ones, which make
|
|
||||||
# multilib unhappy due to different timestamps in the generated content
|
|
||||||
cp -R docs ORIG-docs
|
|
||||||
%endif
|
|
||||||
|
|
||||||
autoreconf --install --force
|
autoreconf --install --force
|
||||||
intltoolize --automake --copy --force
|
intltoolize --automake --copy --force
|
||||||
%configure \
|
%configure \
|
||||||
@ -443,11 +437,8 @@ rm -f %{buildroot}%{_libdir}/*.la
|
|||||||
rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la
|
rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/*.la
|
||||||
rm -f %{buildroot}%{_libdir}/NetworkManager/*.la
|
rm -f %{buildroot}%{_libdir}/NetworkManager/*.la
|
||||||
|
|
||||||
%if %{with regen_docs}
|
# Ensure the documentation timestamps are constant to avoid multilib conflicts
|
||||||
# install the pristine docs
|
find %{buildroot}%{_datadir}/gtk-doc |xargs touch --reference configure.ac
|
||||||
cp ORIG-docs/libnm-glib/html/* %{buildroot}%{_datadir}/gtk-doc/html/libnm-glib/
|
|
||||||
cp ORIG-docs/libnm-util/html/* %{buildroot}%{_datadir}/gtk-doc/html/libnm-util/
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
Loading…
Reference in New Issue
Block a user