Accepting request 570277 from home:badshah400:branches:science

- Disable building LaTeX-based PDF documentation until build
  failures are fixed.
- For the -gui package use post(un) scriptlets only for openSUSE
  <= 1320; for newer openSUSE, these are handled by rpm triggers
  automatically.

OBS-URL: https://build.opensuse.org/request/show/570277
OBS-URL: https://build.opensuse.org/package/show/science/cadabra2?expand=0&rev=15
This commit is contained in:
Atri Bhattacharya 2018-01-28 18:40:31 +00:00 committed by Git OBS Bridge
parent d47bb9fc24
commit 4994f68e8a
2 changed files with 27 additions and 11 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sat Jan 27 22:08:29 UTC 2018 - badshah400@gmail.com
- Disable building LaTeX-based PDF documentation until build
failures are fixed.
- For the -gui package use post(un) scriptlets only for openSUSE
<= 1320; for newer openSUSE, these are handled by rpm triggers
automatically.
-------------------------------------------------------------------
Fri Dec 29 08:33:37 UTC 2017 - kkaempf@suse.com

View File

@ -182,9 +182,11 @@ make %{?_smp_mflags}
popd
doxygen
pushd doxygen/latex
make %{?_smp_mflags}
popd
# FIXME: ENABLE WHEN LATEX DOC BUILDING IS FIXED
#pushd doxygen/latex
#make %{?_smp_mflags}
#popd
%install
%cmake_install DESTDIR=%{buildroot}
@ -198,20 +200,24 @@ install -D -m0644 %{S:2} %{buildroot}%{_datadir}/metainfo/%{name}-gtk.appdata.xm
sed -E -i "s|^#!/usr/bin/env python3|#!/usr/bin/python3|" %{buildroot}%{_bindir}/cadabra2
%post
%{_bindir}/texhash
# FIXME: ENABLE WHEN LATEX DOC BUILDING IS FIXED
#%{_bindir}/texhash
/sbin/ldconfig
%postun
# FIXME: ENABLE WHEN LATEX DOC BUILDING IS FIXED
#%{_bindir}/texhash
/sbin/ldconfig
%if 0%{?suse_version} <= 1320
%post gui
%icon_theme_cache_post
%desktop_database_post
%postun
%{_bindir}/texhash
/sbin/ldconfig
%postun gui
%icon_theme_cache_postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root)
@ -249,8 +255,9 @@ sed -E -i "s|^#!/usr/bin/env python3|#!/usr/bin/python3|" %{buildroot}%{_bindir}
%defattr(-,root,root)
%doc doxygen/html
%files doc-pdf
%defattr(-,root,root)
%doc doxygen/latex/refman.pdf
# FIXME: ENABLE WHEN LATEX DOC BUILDING IS FIXED
#%files doc-pdf
#%defattr(-,root,root)
#%doc doxygen/latex/refman.pdf
%changelog