[packages/asymptote] - up to 3.15

baggins baggins at pld-linux.org
Fri Nov 13 09:48:44 CET 2026


commit db308bc265f6409c45e2bba5a9b454b7d1586958
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Nov 13 09:48:31 2026 +0100

    - up to 3.15

 asymptote-memrchr.patch | 22 ---------------
 asymptote-no-env.patch  | 10 -------
 asymptote-osmesa.patch  | 34 ----------------------
 asymptote.spec          | 75 +++++++++++++++++++------------------------------
 texinfo.patch           | 11 --------
 vulkan-libs.patch       | 20 +++++++++++++
 6 files changed, 49 insertions(+), 123 deletions(-)
---
diff --git a/asymptote.spec b/asymptote.spec
index 311662f..17e87f7 100644
--- a/asymptote.spec
+++ b/asymptote.spec
@@ -9,18 +9,15 @@ Summary:	Asymptote is a powerful descriptive vector graphics language for techni
 Summary(hu.UTF-8):	Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz
 Summary(pl.UTF-8):	Język opisu grafiki wektorowej do rysunków technicznych
 Name:		asymptote
-Version:	2.89
-Release:	7
+Version:	3.15
+Release:	1
 # uses GPL libraries (gsl, readline), so final license is GPL
 License:	GPL v3+ (LGPL v3+ code)
 Group:		Applications/Science
 Source0:	https://downloads.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
-# Source0-md5:	905c100fc40b4af24ebf7398b8cce2b7
-Patch0:		%{name}-memrchr.patch
-Patch1:		%{name}-info.patch
-Patch2:		%{name}-no-env.patch
-Patch3:		texinfo.patch
-Patch4:		%{name}-osmesa.patch
+# Source0-md5:	829f01a698f77ac8018d3b732ae18190
+Patch0:		%{name}-info.patch
+Patch1:		vulkan-libs.patch
 URL:		https://asymptote.sourceforge.net/
 BuildRequires:	GLM-devel
 %{?with_osmesa:BuildRequires:	Mesa-libOSMesa-devel}
@@ -184,21 +181,16 @@ Plik składni Vima dla plików asy.
 
 %prep
 %setup -q
-%patch -P 0 -p1
-%patch -P 1 -p1
-%patch -P 2 -p1
-%patch -P 3 -p1
-%patch -P 4 -p1
-
-# actually not executable, contain bogus shebang
-%{__sed} -i -e '1d' GUI/configs/*.py \
-	GUI/{CustMatTransform,DebugFlags,GuidesManager,InplaceAddObj,PrimitiveShape,SetCustomAnchor,Widg_*,Window1,__init__,labelEditor,xasy?*}.py
-# only some examples to execute
-%{__sed} -i -e '1d' GUI/UndoRedoStack.py base/asymptote.py
+%patch -P0 -p1
+%patch -P1 -p1
 
 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \
-      GUI/ContextWindow.py \
-      GUI/xasy.py
+     GUI/ContextWindow.py \
+     GUI/xasy.py \
+     base/asymptote.py
+
+# actually not executable, contain bogus shebang
+%{__sed} -i -e '0,/env python/{/env python/d}' GUI/*.py
 
 %build
 %{__autoconf}
@@ -220,6 +212,7 @@ Plik składni Vima dla plików asy.
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/%{name}
 
 %if %{with doc}
 %{__make} install \
@@ -228,8 +221,10 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 	DESTDIR=$RPM_BUILD_ROOT
 
-# useless at runtime
-%{__rm} $RPM_BUILD_ROOT%{_datadir}/asymptote/GUI/setup.py
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/%{name}/lib*.so $RPM_BUILD_ROOT%{_libdir}/%{name}/
+for f in $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.so ; do
+	ln -sr $f $RPM_BUILD_ROOT%{_datadir}/%{name}
+done
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}
 %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -267,7 +262,13 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc BUGS ChangeLog README ReleaseNotes TODO
 %attr(755,root,root) %{_bindir}/asy
+%dir %{_libdir}/%{name}
+%{_libdir}/asymptote/libasyopengl.so
+%{_libdir}/asymptote/libasyvulkan.so
 %dir %{_datadir}/%{name}
+%{_datadir}/asymptote/libasyopengl.so
+%{_datadir}/asymptote/libasyvulkan.so
+%{_datadir}/%{name}/collections
 %{_datadir}/%{name}/*.asy
 %{_datadir}/%{name}/asymptote.py
 %{_datadir}/%{name}/nopapersize.ps
@@ -290,30 +291,12 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_datadir}/%{name}/GUI
 %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
 %{_datadir}/%{name}/GUI/[!x]*.py
-%{_datadir}/asymptote/GUI/xasy2asy.py
-%{_datadir}/asymptote/GUI/xasyArgs.py
-%{_datadir}/asymptote/GUI/xasyBezierInterface.py
-%{_datadir}/asymptote/GUI/xasyFile.py
-%{_datadir}/asymptote/GUI/xasyOptions.py
-%{_datadir}/asymptote/GUI/xasyStrings.py
-%{_datadir}/asymptote/GUI/xasySvg.py
-%{_datadir}/asymptote/GUI/xasyTransform.py
-%{_datadir}/asymptote/GUI/xasyUtils.py
-%{_datadir}/asymptote/GUI/xasyValidator.py
-%{_datadir}/asymptote/GUI/xasyVersion.py
-%dir %{_datadir}/asymptote/GUI/configs
-%{_datadir}/asymptote/GUI/configs/xasyconfig.cson
-%{_datadir}/asymptote/GUI/configs/xasykeymap.cson
-%dir %{_datadir}/asymptote/GUI/pyUIClass
-%{_datadir}/asymptote/GUI/pyUIClass/custMatTransform.py
-%{_datadir}/asymptote/GUI/pyUIClass/labelTextEditor.py
-%{_datadir}/asymptote/GUI/pyUIClass/setCustomAnchor.py
-%{_datadir}/asymptote/GUI/pyUIClass/widg_addLabel.py
-%{_datadir}/asymptote/GUI/pyUIClass/widg_addPolyOpt.py
-%{_datadir}/asymptote/GUI/pyUIClass/widg_editBezier.py
-%{_datadir}/asymptote/GUI/pyUIClass/widgetPointEditor.py
-%{_datadir}/asymptote/GUI/pyUIClass/window1.py
+%{_datadir}/asymptote/GUI/xasy[0-9A-Z]*.py
+%{_datadir}/asymptote/GUI/configs
 %{_datadir}/asymptote/GUI/res
+%{_datadir}/asymptote/GUI/xasyicons
+%{_datadir}/asymptote/GUI/xasyqtui
+%{_datadir}/asymptote/GUI/xasyversion
 %{_mandir}/man1/xasy.1*
 
 %if %{with doc}
diff --git a/asymptote-memrchr.patch b/asymptote-memrchr.patch
deleted file mode 100644
index be4d17c..0000000
--- a/asymptote-memrchr.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- asymptote-2.13/prc/PRCdouble.cc~	2011-06-19 15:40:51.000000000 +0200
-+++ asymptote-2.13/prc/PRCdouble.cc	2011-06-20 08:40:37.743723350 +0200
-@@ -24,7 +24,7 @@
- 
- #ifdef WORDS_BIGENDIAN
- #ifndef HAVE_MEMRCHR
--void *memrchr(const void *buf,int c,size_t count)
-+const void *memrchr(const void *buf,int c,size_t count)
- {
-   unsigned char
-       *pcBuffer=(unsigned char *)buf,
---- asymptote-2.13/prc/PRCdouble.h~	2011-06-19 15:40:51.000000000 +0200
-+++ asymptote-2.13/prc/PRCdouble.h	2011-06-20 08:44:40.604913141 +0200
-@@ -133,7 +133,7 @@
- 
- #ifdef WORDS_BIGENDIAN
- #ifndef HAVE_MEMRCHR
--void *memrchr(const void *,int,size_t);
-+const void *memrchr(const void *,int,size_t);
- #endif
- #endif
- 
diff --git a/asymptote-no-env.patch b/asymptote-no-env.patch
deleted file mode 100644
index c49c477..0000000
--- a/asymptote-no-env.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- asymptote-2.61/Makefile.in.orig	2019-11-18 06:27:29.000000000 +0100
-+++ asymptote-2.61/Makefile.in	2019-12-23 20:22:06.892642859 +0100
-@@ -137,7 +137,6 @@
- 	echo @set Datadir @datadir@ >> doc/version.texi
- 	echo @set Docdir @docdir@ >> doc/version.texi
- 
--	echo "#!/usr/bin/env python3" > GUI/xasyVersion.py
- 	echo xasyVersion = \"$(revision)\" >> GUI/xasyVersion.py
- 
- 	if test -n "$(MSDOS)"; then \
diff --git a/asymptote-osmesa.patch b/asymptote-osmesa.patch
deleted file mode 100644
index 51e9e4e..0000000
--- a/asymptote-osmesa.patch
+++ /dev/null
@@ -1,34 +0,0 @@
---- asymptote-2.89/glrender.h.orig	2024-03-23 22:30:22.000000000 +0100
-+++ asymptote-2.89/glrender.h	2024-06-15 08:35:31.186777653 +0200
-@@ -44,6 +44,9 @@
- #endif
- 
- #ifdef HAVE_LIBOSMESA
-+#ifndef APIENTRY
-+#define APIENTRY
-+#endif
- #include <GL/osmesa.h>
- #endif
- 
-@@ -61,6 +64,9 @@
- #endif
- 
- #ifdef HAVE_LIBOSMESA
-+#ifndef APIENTRY
-+#define APIENTRY
-+#endif
- #include <GL/osmesa.h>
- #endif
- 
---- asymptote-2.89/GL/glew.c.orig	2024-03-23 22:30:22.000000000 +0100
-+++ asymptote-2.89/GL/glew.c	2024-06-15 15:10:28.971729067 +0200
-@@ -37,6 +37,9 @@
- #endif
- 
- #if defined(GLEW_OSMESA)
-+#  ifndef APIENTRY
-+#    define APIENTRY
-+#  endif
- #  define GLAPI extern
- #  include <GL/osmesa.h>
- #elif defined(GLEW_EGL)
diff --git a/texinfo.patch b/texinfo.patch
deleted file mode 100644
index 2569f05..0000000
--- a/texinfo.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- asymptote-2.70/doc/asymptote.texi~	2021-12-03 21:25:33.000000000 +0100
-+++ asymptote-2.70/doc/asymptote.texi	2021-12-03 21:27:46.836315745 +0100
-@@ -4,8 +4,6 @@
- @include version.texi
- @finalout
- 
-- at codequoteundirected on
--
- @copying
- This file documents @code{Asymptote}, version @value{VERSION}.
- 
diff --git a/vulkan-libs.patch b/vulkan-libs.patch
new file mode 100644
index 0000000..96c8a09
--- /dev/null
+++ b/vulkan-libs.patch
@@ -0,0 +1,20 @@
+--- asymptote-3.15/configure.ac.orig	2026-09-14 06:35:15.000000000 +0200
++++ asymptote-3.15/configure.ac	2026-11-12 10:20:53.865189416 +0100
+@@ -552,15 +552,8 @@
+           AC_CHECK_LIB([vulkan], [vkCreateInstance],
+           [
+           LIBS_SAVE=$LIBS
+-          case "$OSTYPE" in
+-               darwin*)
+-                 VULKAN_LIBS=""
+-               ;;
+-               *)
+-                 VULKAN_LIBS="-lMachineIndependent -lOSDependent -lGenericCodeGen "
+-               ;;
+-          esac
+-          ASY_VULKAN_LIBS="-lvulkan $VULKAN_LIBS-lSPIRV"
++          VULKAN_LIBS=""
++          ASY_VULKAN_LIBS="-lvulkan $VULKAN_LIBS -lSPIRV"
+           dnl On some distros (e.g., Ubuntu) libglslang.a is a thin C wrapper and
+           dnl the actual C++ implementation is in companion libraries. Try -lglslang
+           dnl alone first; if that fails, try with companions.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/asymptote.git/commitdiff/db308bc265f6409c45e2bba5a9b454b7d1586958



More information about the pld-cvs-commit mailing list