Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package muparserx for openSUSE:Factory checked in at 2023-03-02 23:04:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/muparserx (Old) and /work/SRC/openSUSE:Factory/.muparserx.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "muparserx" Thu Mar 2 23:04:06 2023 rev:3 rq:1068636 version:4.0.11 Changes: -------- --- /work/SRC/openSUSE:Factory/muparserx/muparserx.changes 2021-11-24 23:54:43.652427657 +0100 +++ /work/SRC/openSUSE:Factory/.muparserx.new.31432/muparserx.changes 2023-03-02 23:04:31.784161526 +0100 @@ -1,0 +2,8 @@ +Wed Mar 1 20:14:46 UTC 2023 - Stefan Brüns <[email protected]> + +- Split fairly large API documentation from devel subpackage +- Use SVGs for inheritance graphs in API doc. Fixes unreproducible + image rasterization (depends on CPU features), and the files + are significantly smaller. Also avoids graphviz-gnome dep. + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ muparserx.spec ++++++ --- /var/tmp/diff_new_pack.5lKXAZ/_old 2023-03-02 23:04:32.252163864 +0100 +++ /var/tmp/diff_new_pack.5lKXAZ/_new 2023-03-02 23:04:32.256163884 +0100 @@ -1,7 +1,7 @@ # # spec file for package muparserx # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2015 Angelos Tzotsos <[email protected]>. # # All modifications and additions to the file contributed by third parties @@ -17,6 +17,11 @@ # +%global flavor @BUILD_FLAVOR@%nil +%if "%flavor" == "doc" +%define psuffix -doc-src +%endif + %define libbase 4_0_11 Name: muparserx Version: 4.0.11 @@ -24,73 +29,103 @@ Summary: A C++ Library for Parsing Expressions License: BSD-2-Clause Group: Development/Libraries/C and C++ -URL: http://muparserx.beltoforion.de +URL: https://beltoforion.de/en/muparserx/ Source: https://github.com/beltoforion/muparserx/archive/v%version.tar.gz -BuildRequires: cmake >= 2.8.0 -BuildRequires: dos2unix -BuildRequires: doxygen BuildRequires: fdupes +%if "%flavor" != "doc" +BuildRequires: cmake >= 2.8.0 BuildRequires: gcc BuildRequires: gcc-c++ -BuildRequires: graphviz-gnome BuildRequires: pkgconfig +%else +BuildRequires: dos2unix +BuildRequires: doxygen +BuildRequires: graphviz +BuildArch: noarch +%endif %description A C++ Library for Parsing Expressions with Strings, Complex Numbers, Vectors, Matrices and more. %package devel -Summary: Development files for muparserx +Summary: Development files for muParserX Group: Development/Languages/C and C++ -Requires: lib%{name}%{libbase} = %{version} +Requires: lib%name%libbase = %version %description devel The muparserx development files. A C++ Library for Parsing Expressions with Strings, Complex Numbers, Vectors, Matrices and more. -%package -n lib%{name}%{libbase} +%package devel-doc +Summary: Development files for muparserx +Group: Documentation/HTML + +%description devel-doc +The API documentation for muParserX. + +%package -n lib%name%libbase Summary: A C++ Library for Parsing Expressions Group: System/Libraries -%description -n lib%{name}%{libbase} +%description -n lib%name%libbase The muparserx shared library. A C++ Library for Parsing Expressions with Strings, Complex Numbers, Vectors, Matrices and more. %prep %autosetup -p0 +# Use SVG images: +# 1. significantly smaller than png +# 2. graphviz-core suffices +# 3. output is reproducible, instead of arch/CPU dependent via gnome/pango rasterizer +echo -e "DOT_FONTNAME = sans\nDOT_IMAGEFORMAT = svg\nSVG_INTERACTIVE = yes" >> doc/doxyfile.dox %build +%if "%flavor" == "doc" +dos2unix sample/* +pushd doc +doxygen doxyfile.dox +popd + +%else %cmake \ -DBUILD_SHARED_LIBS:BOOL=ON \ - -DBUILD_SAMPLES:BOOL=OFF \ - -DCMAKE_BUILD_TYPE:STRING=Release + -DBUILD_EXAMPLES:BOOL=OFF \ + %nil %cmake_build +%endif %install +%if "%flavor" != "doc" %cmake_install -mv %{buildroot}/usr/share/cmake %{buildroot}%{_libdir} -dos2unix sample/* -pushd doc -doxygen doxyfile.dox -mkdir -p %{buildroot}%{_docdir}/%{name}-devel -cp -r html %{buildroot}%{_docdir}/%{name}-devel/ -popd +mv %buildroot%_datadir/cmake %buildroot%_libdir -%fdupes %{buildroot}/%{_prefix} +%else +mkdir -p %buildroot%_docdir/%name-devel-doc +cp -r doc/html %buildroot%_docdir/%name-devel-doc/ +%endif -%post -n lib%{name}%{libbase} -p /sbin/ldconfig +%fdupes %buildroot/%_prefix -%postun -n lib%{name}%{libbase} -p /sbin/ldconfig +%post -n lib%name%libbase -p /sbin/ldconfig +%postun -n lib%name%libbase -p /sbin/ldconfig -%files -n lib%{name}%{libbase} +%if "%flavor" != "doc" +%files -n lib%name%libbase %license LICENSE -%{_libdir}/libmuparserx.so.* +%_libdir/libmuparserx.so.* %files devel -%doc Readme.md sample html -%{_libdir}/libmuparserx.so -%{_includedir}/* -%{_libdir}/pkgconfig/%{name}.pc -%{_libdir}/cmake/%{name} +%doc Readme.md +%_libdir/libmuparserx.so +%_includedir/* +%_libdir/pkgconfig/%name.pc +%_libdir/cmake/%name + +%else + +%files devel-doc +%doc doc/html sample +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>doc</package> </multibuild>
