Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-veusz for openSUSE:Factory checked in at 2022-11-04 17:38:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-veusz (Old) and /work/SRC/openSUSE:Factory/.python-veusz.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-veusz" Fri Nov 4 17:38:11 2022 rev:52 rq:1033546 version:3.5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-veusz/python-veusz.changes 2022-09-26 18:48:26.508081233 +0200 +++ /work/SRC/openSUSE:Factory/.python-veusz.new.2275/python-veusz.changes 2022-11-04 17:42:02.655029376 +0100 @@ -1,0 +2,40 @@ +Tue Nov 1 19:48:13 UTC 2022 - Atri Bhattacharya <badshah...@gmail.com> + +- Update to version 3.5.2: + * Fix broken ChangeLog. +- Changes from version 3.5.1: + * Fixes for EMF generating code (requires pyemf-3.1). +- Changes from version 3.5.0: + * Improvements in fitting, including: + - Assume absolute errors by default. + - Introduce minimum and maximum fit ranges. + - Add setting to give default error value and type + (absolute/relative). + - Plugin fixes, renaming --plugin to --veusz-plugin option. + - Bug fix for broken axis drawing. + - Mirrored axis bug fix. + - More keyboard shortcuts. + - Fix build system to use sip-build, which works with recent SIP + versions. + - Change high DPI scaling policy. + - Support _FillValue and missing_data attributes in HDF5 files + for NetCDF. +- Drop upstreamed patches: + * python-veusz-correct-platlib-dir.patch. + * veusz-sip65.patch. +- New BuildRequires: python-tomli. +- Re-work common data installation: + * Drop out-of-source icon veusz_256.png: Desktops now support + rendering svg icons directly. + * Split out a separate -common package for example, icon, and + test files common to all python flavours; install these to + %{_datadir}/veusz and symlink these to %python_sitearch dir as + veusz looks for these files in this location. + * Require veusz-common package from python flavours packages. + * Make updates from dir to symlinks possible by rm-ing dirs from + previous installs (%pre section). +- Clean up trailing spaces from old changelog entries. +- Run full gamut of tests for %check; needs BuildRequires: + xorg-x11-server-Xvfb. + +------------------------------------------------------------------- Old: ---- python-veusz-correct-platlib-dir.patch veusz-3.4.tar.gz veusz-sip65.patch veusz_256.png New: ---- veusz-3.5.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-veusz.spec ++++++ --- /var/tmp/diff_new_pack.mrvCn4/_old 2022-11-04 17:42:03.415033346 +0100 +++ /var/tmp/diff_new_pack.mrvCn4/_new 2022-11-04 17:42:03.423033388 +0100 @@ -16,34 +16,34 @@ # -%{?!python_module:%define python_module() python3-%{**}} +%define X_display ":98" + %define skip_python2 1 %define skip_python36 1 Name: python-veusz -Version: 3.4 +Version: 3.5.2 Release: 0 Summary: Scientific plotting library for Python # The entire source code is GPL-2.0+ except helpers/src/_nc_cntr.c which is Python-2.0 License: GPL-2.0-or-later AND Python-2.0 URL: https://veusz.github.io/ Source0: https://files.pythonhosted.org/packages/source/v/veusz/veusz-%{version}.tar.gz -Source3: veusz_256.png -# PATCH-FIX-UPSTREAM veusz-sip65.patch gh#veusz/veusz#595 -- fix build with SIP 6.5 -Patch0: veusz-sip65.patch -# PATCH-FIX-UPSTREAM python-veusz-correct-platlib-dir.patch gh#veusz/veusz#627 badshah...@gmail.com -- Use sysconfig to get correct platlib location for all python3 flavours -Patch1: python-veusz-correct-platlib-dir.patch BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module qt5-devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module sip-devel} +BuildRequires: %{python_module tomli} BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: hicolor-icon-theme +BuildRequires: man BuildRequires: python-rpm-macros BuildRequires: update-desktop-files +BuildRequires: xorg-x11-server-Xvfb Requires: python-numpy Requires: python-qt5 +Requires: veusz-common Recommends: python-astropy Recommends: python-h5py Recommends: veusz @@ -65,6 +65,7 @@ %package -n veusz Summary: GUI scientific plotting package Requires: python3-veusz = %{version} +Requires: veusz-common Requires(post): desktop-file-utils Requires(post): shared-mime-info Requires(postun):desktop-file-utils @@ -80,6 +81,17 @@ plotting functions, data with errors, keys, labels, stacked plots, multiple plots, contours, shapes and fitting data. +%package -n veusz-common +Summary: Common example and icons for all python flavors of veusz +BuildArch: noarch + +%description -n veusz-common +Veusz is a scientific plotting package, designed to create +publication-ready Postscript/PDF/SVG output. + +This package provides datafiles, examples, and icons used by all +python flavours of veusz. + %prep %autosetup -p1 -n veusz-%{version} find -name \*~ | xargs rm -f @@ -90,10 +102,20 @@ %build export CFLAGS="%{optflags}" %python_build +%make_build -C Documents/ man %install %python_install +# Copy common files to /usr/share/ and... +mkdir -p %{buildroot}%{_datadir}/veusz +cp -pr examples icons %{buildroot}%{_datadir}/veusz/ + +%{python_expand # ...symlink them back into python_sitearch +rm -fr %{buildroot}%{$python_sitearch}/veusz/{examples,icons} +ln -s -t %{buildroot}%{$python_sitearch}/veusz/ %{_datadir}/veusz/{examples,icons} +} + # Install .desktop, mime and appdata files from upstream tarball install -Dm0644 support/veusz.appdata.xml %{buildroot}%{_datadir}/appdata/veusz.appdata.xml install -Dm0644 support/veusz.xml %{buildroot}/%{_datadir}/mime/packages/veusz.xml @@ -102,20 +124,15 @@ --add-category=2DGraphics \ support/veusz.desktop -# move icon files to /usr/share/pixmaps/veusz -%python_expand install -m 0644 %{SOURCE3} %{buildroot}%{$python_sitearch}/veusz/icons/veusz_256.png -mkdir -p %{buildroot}%{_datadir}/pixmaps/veusz -ln -s %{python3_sitearch}/veusz/icons %{buildroot}%{_datadir}/pixmaps/veusz - -# hardlink main veusz icon also into hicolor-icon-theme dir (for desktop file) -for size in 16 32 48 64 128 256; do +# link main veusz icon also into hicolor-icon-theme dir (for desktop file) +for size in 16 32 48 64 128; do odir=%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps mkdir -p $odir - ln -s %{python3_sitearch}/veusz/icons/veusz_${size}.png ${odir}/veusz.png + ln -s %{_datadir}/veusz/icons/veusz_${size}.png ${odir}/veusz.png done odir=%{buildroot}%{_datadir}/icons/hicolor/scalable/apps mkdir -p $odir -ln -s %{python3_sitearch}/veusz/icons/veusz.svg $odir/veusz.svg +ln -s %{_datadir}/veusz/icons/veusz.svg $odir/veusz.svg # install man pages mkdir -p %{buildroot}%{_mandir}/man1 @@ -127,10 +144,20 @@ %python_expand %fdupes %{buildroot}%{$python_sitearch}/veusz/ %check +export DISPLAY="%{X_display}" +Xvfb %{X_display} >& Xvfb.log & +trap "kill $! || true" EXIT +sleep 5 %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} -QT_QPA_PLATFORM=minimal $python -B tests/runselftest.py +$python -B tests/runselftest.py } +%pretrans +# icons/examples/tests were dirs from previous installations, need to rm these first +if [ $1 -gt 1 ]; then + %python_expand rm -fr %{$python_sitearch}/veusz/{examples,icons} +fi + %files %{python_files} %doc README.md AUTHORS ChangeLog %doc Documents/manual/html @@ -142,11 +169,14 @@ %license COPYING %{_bindir}/veusz %{_datadir}/applications/veusz.desktop -%{_datadir}/pixmaps/veusz/ %dir %{_datadir}/appdata %{_datadir}/appdata/veusz.appdata.xml %{_datadir}/icons/hicolor/*/apps/veusz.* %{_datadir}/mime/packages/veusz.xml %{_mandir}/man1/* +%files -n veusz-common +%license COPYING +%{_datadir}/veusz/ + %changelog ++++++ veusz-3.4.tar.gz -> veusz-3.5.2.tar.gz ++++++ ++++ 10060 lines of diff (skipped)