Disable doc building on EL7 for now
This commit is contained in:
parent
c2bac1837e
commit
d336bc6072
16
octave.spec
16
octave.spec
@ -1,6 +1,12 @@
|
|||||||
# From src/version.h:#define OCTAVE_API_VERSION
|
# From src/version.h:#define OCTAVE_API_VERSION
|
||||||
%global octave_api api-v49+
|
%global octave_api api-v49+
|
||||||
|
|
||||||
|
# Building docs fails on EL7 due to https://bugzilla.redhat.com/show_bug.cgi?id=1064453
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
%global builddocs 0
|
||||||
|
%else
|
||||||
|
%global builddocs 1
|
||||||
|
%endif
|
||||||
# For rc versions, change release manually
|
# For rc versions, change release manually
|
||||||
#global rcver 2
|
#global rcver 2
|
||||||
%if 0%{?rcver:1}
|
%if 0%{?rcver:1}
|
||||||
@ -126,8 +132,12 @@ export F77=gfortran
|
|||||||
%global atlasblaslib -lf77blas -latlas
|
%global atlasblaslib -lf77blas -latlas
|
||||||
%global atlaslapacklib -llapack
|
%global atlaslapacklib -llapack
|
||||||
%endif
|
%endif
|
||||||
|
%if !%{builddocs}
|
||||||
|
%global disabledocs --disable-docs
|
||||||
|
%endif
|
||||||
# JIT support is still experimental, and causes a segfault on ARM.
|
# JIT support is still experimental, and causes a segfault on ARM.
|
||||||
%configure --enable-shared --disable-static --enable-64=%enable64 \
|
%configure --enable-shared --disable-static --enable-64=%enable64 \
|
||||||
|
%{?disabledocs} \
|
||||||
--with-blas="-L%{_libdir}/atlas %{atlasblaslib}" \
|
--with-blas="-L%{_libdir}/atlas %{atlasblaslib}" \
|
||||||
--with-lapack="-L%{_libdir}/atlas %{atlaslapacklib}" \
|
--with-lapack="-L%{_libdir}/atlas %{atlaslapacklib}" \
|
||||||
--with-qrupdate \
|
--with-qrupdate \
|
||||||
@ -226,8 +236,10 @@ exec \$LIB_DIR/%{name}/%{version}%{?rctag}/${script} "\$@"
|
|||||||
EOF
|
EOF
|
||||||
chmod +x %{buildroot}%{_bindir}/${script}
|
chmod +x %{buildroot}%{_bindir}/${script}
|
||||||
done
|
done
|
||||||
|
%if %{builddocs}
|
||||||
# remove timestamp from doc-cache
|
# remove timestamp from doc-cache
|
||||||
sed -i -e '/^# Created by Octave/d' %{buildroot}%{_datadir}/%{name}/%{version}%{?rctag}/etc/doc-cache
|
sed -i -e '/^# Created by Octave/d' %{buildroot}%{_datadir}/%{name}/%{version}%{?rctag}/etc/doc-cache
|
||||||
|
%endif
|
||||||
|
|
||||||
# rpm macros
|
# rpm macros
|
||||||
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
|
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
|
||||||
@ -255,9 +267,11 @@ fi
|
|||||||
%{_bindir}/octave*
|
%{_bindir}/octave*
|
||||||
%{_libdir}/octave/
|
%{_libdir}/octave/
|
||||||
%{_libexecdir}/octave/
|
%{_libexecdir}/octave/
|
||||||
|
%if %{builddocs}
|
||||||
%{_mandir}/man1/octave*.1.*
|
%{_mandir}/man1/octave*.1.*
|
||||||
%{_infodir}/liboctave.info*
|
%{_infodir}/liboctave.info*
|
||||||
%{_infodir}/octave.info*
|
%{_infodir}/octave.info*
|
||||||
|
%endif
|
||||||
%{_datadir}/applications/octave.desktop
|
%{_datadir}/applications/octave.desktop
|
||||||
# octave_packages is %ghost, so need to list everything else separately
|
# octave_packages is %ghost, so need to list everything else separately
|
||||||
%dir %{_datadir}/octave
|
%dir %{_datadir}/octave
|
||||||
@ -273,7 +287,9 @@ fi
|
|||||||
%{_bindir}/mkoctfile
|
%{_bindir}/mkoctfile
|
||||||
%{_bindir}/mkoctfile-%{version}%{?rctag}
|
%{_bindir}/mkoctfile-%{version}%{?rctag}
|
||||||
%{_includedir}/octave-%{version}%{?rctag}/
|
%{_includedir}/octave-%{version}%{?rctag}/
|
||||||
|
%if %{builddocs}
|
||||||
%{_mandir}/man1/mkoctfile.1.*
|
%{_mandir}/man1/mkoctfile.1.*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc doc/liboctave/liboctave.html doc/liboctave/liboctave.pdf
|
%doc doc/liboctave/liboctave.html doc/liboctave/liboctave.pdf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user