Hello community, here is the log from the commit of package glucat for openSUSE:Factory checked in at 2020-01-20 22:57:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/glucat (Old) and /work/SRC/openSUSE:Factory/.glucat.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "glucat" Mon Jan 20 22:57:12 2020 rev:21 rq:765360 version:0.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/glucat/glucat.changes 2019-03-21 09:53:35.330784177 +0100 +++ /work/SRC/openSUSE:Factory/.glucat.new.26092/glucat.changes 2020-01-20 22:57:12.999384414 +0100 @@ -1,0 +2,13 @@ +Sat Jan 11 13:36:40 UTC 2020 - Atri Bhattacharya <[email protected]> + +- Disable python extension by default for openSUSE >= 1550 as it + doesn't build against python3. +- Build PDF documentation for openSUSE > 1500 also; introduces + new BuildRequires: tex(etoc.sty), tex(hanging.sty), + tex(newunicodechar.sty), tex(stackengine.sty), tex(ulem.sty). +- Drop glucat-convert-demos-to-python3.patch: No longer needed + since PDF documentation builds with previous change; drop + libtool BuildRequires and don't run autoreconf before configure, + both of which were only needed for this patch. + +------------------------------------------------------------------- Old: ---- glucat-disable-pdf-doc.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ glucat.spec ++++++ --- /var/tmp/diff_new_pack.5yhjVH/_old 2020-01-20 22:57:13.587384640 +0100 +++ /var/tmp/diff_new_pack.5yhjVH/_new 2020-01-20 22:57:13.587384640 +0100 @@ -1,7 +1,7 @@ # # spec file for package glucat # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,11 +15,14 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%if 0%{?suse_version} <= 1500 -%global _with_pdfdoc 1 + +# SECTION DISABLE pyclical FOR openSUSE >= 1550: DOESN'T BUILD WITH PYTHON3 +%if 0%{?suse_version} < 1550 +%bcond_without python2 %else -%global _with_pdfdoc 0 +%bcond_with python2 %endif +# /SECTION Name: glucat Version: 0.8.2 @@ -29,36 +32,38 @@ Group: Development/Libraries/C and C++ URL: http://glucat.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM glucat-disable-pdf-doc.patch [email protected] -- Disable building pdf documentation until issues with TeXLive 2018 are sorted. -Patch0: glucat-disable-pdf-doc.patch BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: graphviz-gd BuildRequires: graphviz-gnome -BuildRequires: libtool +BuildRequires: libboost_headers-devel +%if %{with python2} BuildRequires: python-Cython BuildRequires: python-devel BuildRequires: python-numpy -BuildRequires: libboost_headers-devel -%if %{with pdfdoc} +%endif BuildRequires: texlive-collection-fontsrecommended BuildRequires: texlive-latex-bin BuildRequires: texlive-metafont-bin BuildRequires: tex(adjustbox.sty) BuildRequires: tex(caption.sty) BuildRequires: tex(colortbl.sty) +BuildRequires: tex(etoc.sty) BuildRequires: tex(fancyhdr.sty) BuildRequires: tex(float.sty) +BuildRequires: tex(hanging.sty) BuildRequires: tex(helvet.sty) BuildRequires: tex(multirow.sty) BuildRequires: tex(natbib.sty) +BuildRequires: tex(newunicodechar.sty) BuildRequires: tex(sectsty.sty) +BuildRequires: tex(stackengine.sty) BuildRequires: tex(tabu.sty) BuildRequires: tex(tocloft.sty) +BuildRequires: tex(ulem.sty) BuildRequires: tex(wasysym.sty) BuildRequires: tex(xtab.sty) -%endif %description GluCat is a library of template classes which model the universal @@ -98,7 +103,9 @@ %package -n python-glucat Summary: Library of C++ templates implementing universal Clifford algebras Group: Development/Libraries/C and C++ +%if %{with python2} Requires: python-base = %{py_ver} +%endif Recommends: %{name}-doc = %{version} %description -n python-glucat @@ -112,14 +119,15 @@ %prep %setup -q -%if ! %{with pdfdoc} -%patch0 -p1 -%endif %build -autoreconf -fvi sed -i "s|-march=native||g" configure -%configure --prefix=%{_prefix} --docdir=%{_docdir}/%{name} --with-demo-dir=%{_docdir}/%{name}/demos +%configure \ + --docdir=%{_docdir}/%{name} \ +%if %{without python2} + --disable-pyclical \ +%endif + --with-demo-dir=%{_docdir}/%{name}/demos # FIX A NON-UNIX EOF ENCODING sed -i 's/\r$//' ./pyclical/demos/plotting_demo_mayavi.py @@ -147,13 +155,13 @@ %files doc %dir %{_docdir}/%{name} %{_docdir}/%{name}/html/ -%if %{with pdfdoc} %{_docdir}/%{name}/pdf/ -%endif +%if %{with python2} %files -n python-glucat %{python_sitearch}/* %dir %{_docdir}/%{name} %{_docdir}/%{name}/demos/ +%endif %changelog
