Compare commits

...
Sign in to create a new pull request.

7 commits

Author SHA1 Message Date
Python Maint
ffc0c38337 Rebuilt for Python 3.15.0b4 ABI change 2026-07-22 20:19:54 +02:00
Fedora Release Engineering
b4caa53a0d Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:27:45 +00:00
Jeremy Sanders
3ef2556c08 Update to Veusz 4.2.1 2026-06-21 17:11:16 +01:00
Python Maint
6602dc159b Rebuilt for Python 3.15 2026-06-04 09:33:19 +02:00
Fedora Release Engineering
ee9f2ab2b3 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:53:05 +00:00
Jeremy Sanders
e08602245d Remove python-tomli requirement 2025-10-12 11:36:12 +01:00
Jeremy Sanders
5c8b1ae3f0 Update to Veusz 4.2 2025-10-12 09:54:01 +01:00
3 changed files with 64 additions and 46 deletions

3
.gitignore vendored
View file

@ -46,3 +46,6 @@ veusz-1.8.tar.gz
/veusz-3.6.1.tar.gz
/veusz-3.6.2.tar.gz
/veusz-4.1.tar.gz
/veusz-4.2.tar.gz
/veusz-4.2.1.tar.gz
/remove-vectorfield-test.patch

View file

@ -1 +1,2 @@
SHA512 (veusz-4.1.tar.gz) = 02e73aaa1888cad63b88fef8fd8f52a92c4cda90e253d7f628b29190b41e1672c89e5989ec3f282c3f58cc420402d4dcdf514b782e6e663a4a5b18a4a67ee308
SHA512 (veusz-4.2.1.tar.gz) = 7433f5f7d17f0b45b2a2e3e9d85aa19dcbbdb583f75697ba0919592c99fa9cfd859f94996548b43f7ac3e9e479453041a790d4e3022bb8e699b0e421002e1d58
SHA512 (remove-vectorfield-test.patch) = b1a05e8a50ead8ea52fec3bdcaffbf731a12ce56a66f7f7256f65ecd75126ccd27ee8f23241a6ffb6c67d62dd9eee034e1b548609448f81165be7ff2dcaf95a9

View file

@ -1,27 +1,29 @@
Name: veusz
Version: 4.1
Release: 4%{?dist}
Version: 4.2.1
Release: 3%{?dist}
Summary: GUI scientific plotting package
License: GPL-2.0-or-later AND (LGPL-2.1-only OR GPL-3.0-only) AND PSF-2.0 AND CC0-1.0
URL: https://veusz.github.io/
Source0: https://github.com/veusz/veusz/releases/download/veusz-%{version}/veusz-%{version}.tar.gz
Patch0: remove-vectorfield-test.patch
# see RHBZ#2491178
ExcludeArch: s390x
BuildRequires: gcc gcc-c++
BuildRequires: python3 python3-devel python3-setuptools
BuildRequires: python3-devel
BuildRequires: python3-numpy
BuildRequires: qt6-qtbase-devel qt6-qtsvg-devel
BuildRequires: python3-pyqt6 python3-pyqt6-devel
BuildRequires: python3-pyqt6-sip python3dist(sip)
BuildRequires: python3dist(sip)
BuildRequires: python3-h5py
BuildRequires: python3-tomli
BuildRequires: desktop-file-utils
Requires: python3dist(pyqt6-sip) >= 13, python3dist(pyqt6-sip) < 14
Requires: python3-pyqt6 python3-pyqt6-sip
Requires: python3-pyqt6
Requires: python3-numpy
Requires: qt6-qtsvg
Requires: /usr/bin/env
Recommends: python3-h5py python3-astropy ghostscript qt6-qtimageformats
Provides: python3-veusz
@ -30,8 +32,8 @@ Provides: python3-veusz
# https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering
%global __provides_exclude_from ^%{python3_sitearch}/veusz/helpers/.*\\.so$
# install docs in version specific for old releases
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%generate_buildrequires
%pyproject_buildrequires
%description
Veusz is a 2D and 3D scientific plotting package, designed to create
@ -43,33 +45,24 @@ ternary plots, vector plots, contours, images, shapes and fitting
data. 3D point, surface, volume and function plots are also supported.
%prep
%setup -q -n veusz-%{version}
find -name \*~ | xargs rm -f
%autosetup -v -n veusz-%{version} -p1
# remove shebangs from scripts which aren't installed
# (veusz allows these to be executed if app isn't installed properly)
sed -i '/^#!/d' veusz/veusz_main.py
sed -i '/^#!/d' veusz/veusz_listen.py
# delete hidden file in docs
rm -f Documents/manual/html/.buildinfo
%build
%py3_build
%pyproject_wheel
%install
rm -rf %{buildroot}
# veusz-resource-dir: put data files in location given
%{python3} setup.py install --skip-build --root %{buildroot} \
--veusz-resource-dir=%{buildroot}/%{_datadir}/veusz \
--disable-install-examples
# tell veusz where its resource directory is in _datadir
ln -s %{_datadir}/veusz \
%{buildroot}%{python3_sitearch}/veusz/resources
# tell it where to look for examples and COPYING
ln -s %{_pkgdocdir}/examples \
%{buildroot}%{_datadir}/veusz
%pyproject_install
%pyproject_save_files veusz
# install desktop file
desktop-file-install \
@ -81,22 +74,20 @@ mkdir -p %{buildroot}%{_datadir}/mime/packages/
install -p support/veusz.xml -m 0644 %{buildroot}%{_datadir}/mime/packages/
# appdata file
mkdir -p %{buildroot}%{_datadir}/appdata/
install -p support/veusz.appdata.xml -m 0644 %{buildroot}%{_datadir}/appdata/
install -D -p -m 0644 support/veusz.appdata.xml \
%{buildroot}%{_metainfodir}/veusz.appdata.xml
# symlink main veusz icon into pixmaps (for desktop file)
mkdir %{buildroot}%{_datadir}/pixmaps
ln -s ../veusz/icons/veusz_48.png %{buildroot}%{_datadir}/pixmaps/veusz.png
# copy main icon into pixmaps (for desktop file)
install -D -p -m 0644 icons/veusz.png \
%{buildroot}%{_datadir}/pixmaps/veusz.png
# also link in hicolor icons
# also copy in hicolor icons
for size in 16 32 48 64 128; do
odir=%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
mkdir -p $odir
ln -s %{_datadir}/veusz/icons/veusz_${size}.png ${odir}/veusz.png
install -D -p -m 0644 icons/veusz_${size}.png \
%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/veusz.png
done
odir=%{buildroot}%{_datadir}/icons/hicolor/scalable/apps
mkdir -p $odir
ln -s %{_datadir}/veusz/icons/veusz.svg $odir
install -D -p -m 0644 icons/veusz.svg \
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/veusz.svg
# install man pages
mkdir -p %{buildroot}%{_mandir}/man1
@ -104,29 +95,53 @@ install -p Documents/man-page/veusz.1 -m 0644 \
%{buildroot}%{_mandir}/man1
%check
# as the data directory hasn't got the same absolute path we have
# to define VEUSZ_RESOURCE_DIR
# emf_export relies on pyemf3 which isn't packaged
%pyproject_check_import -e veusz.document.emf_export -e veusz.examples.*
PYTHONPATH=%{buildroot}%{python3_sitearch} \
VEUSZ_RESOURCE_DIR=%{buildroot}%{_datadir}/veusz \
QT_QPA_PLATFORM=minimal \
%{python3} tests/runselftest.py
%files
%doc README.md AUTHORS COPYING
%doc examples
%doc Documents/manual/html
%{_bindir}/veusz
%{_mandir}/man1/veusz.1.gz
%{_datadir}/applications/veusz.desktop
%{_datadir}/mime/packages/veusz.xml
%{_datadir}/appdata/veusz.appdata.xml
%{_metainfodir}/veusz.appdata.xml
%{_datadir}/pixmaps/veusz.png
%{_datadir}/icons/hicolor/*/apps/veusz.*
%{_datadir}/veusz
%{python3_sitearch}/veusz-*.egg-info
%{python3_sitearch}/veusz-%{version}.dist-info/
%{python3_sitearch}/veusz
%changelog
* Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 4.2.1-3
- Rebuilt for Python 3.15.0b4 ABI change
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Sun Jun 21 2026 Jeremy Sanders <jeremy@jeremysanders> - 4.2.1-1
- Update to new Python packaging guidelines
- Update appdata location to _metainfodir
- Copy icons rather than symlink
- Remove line for versioned docdir
- Remove examples from documentation
- Cleanup dependencies and build dependencies
- Update to Veusz 4.2.1
* Thu Jun 04 2026 Python Maint <python-maint@redhat.com> - 4.2-4
- Rebuilt for Python 3.15
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Sun Oct 12 2025 Jeremy Sanders <jeremy@jeremysanders.net> - 4.2-2
- Remove python3-tomli build requirement
* Sun Oct 12 2025 Jeremy Sanders <jeremy@jeremysanders.net> - 4.2-1
- Update to Veusz 4.2
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 4.1-4
- Rebuilt for Python 3.14.0rc3 bytecode
@ -609,4 +624,3 @@ with Python licensing
* Mon Jun 19 2006 Jeremy Sanders <jeremy@jeremysanders.net> - 0.10-2
- Renamed from python-veusz to veusz