From df6b3a8434a6f8b7501e82e752d949f9e2addafdb9edbe3ea7f1cde684358c76 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 13 Feb 2025 12:50:01 +0000 Subject: [PATCH] [info=3af800cfa4dd0faeb2f8d8e64329075f8d7285c467f19089a57849dab69b24b6] OBS-URL: https://build.opensuse.org/package/show/science/asymptote?expand=0&rev=27 --- .gitattributes | 23 +++++ .gitignore | 1 + 2.90.tar.gz | 3 + 2.97.tar.gz | 3 + 2.99.tar.gz | 3 + _scmsync.obsinfo | 4 + asymptote.changes | 192 +++++++++++++++++++++++++++++++++++++++++ asymptote.spec | 101 ++++++++++++++++++++++ build.specials.obscpio | 3 + use-system-libs.patch | 35 ++++++++ 10 files changed, 368 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 2.90.tar.gz create mode 100644 2.97.tar.gz create mode 100644 2.99.tar.gz create mode 100644 _scmsync.obsinfo create mode 100644 asymptote.changes create mode 100644 asymptote.spec create mode 100644 build.specials.obscpio create mode 100644 use-system-libs.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/2.90.tar.gz b/2.90.tar.gz new file mode 100644 index 0000000..07fe955 --- /dev/null +++ b/2.90.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29ab94557ac4a9b3b10839a37e4d7aff9a9912d2424797f17590739d30bac76a +size 12549692 diff --git a/2.97.tar.gz b/2.97.tar.gz new file mode 100644 index 0000000..a756f72 --- /dev/null +++ b/2.97.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d38cfcc72b8f06cc098648de0b8e196ad9c2c0f9cc1e8cca13579c387a64ddb7 +size 27136385 diff --git a/2.99.tar.gz b/2.99.tar.gz new file mode 100644 index 0000000..88be4fd --- /dev/null +++ b/2.99.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:530c9c06eb8c229fb741f4cadba27b10547b2c27bde9e3c8c322030824b61b7f +size 27137651 diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..dea90d6 --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1739450987 +commit: 3af800cfa4dd0faeb2f8d8e64329075f8d7285c467f19089a57849dab69b24b6 +url: https://src.opensuse.org/jengelh/asymptote +revision: master diff --git a/asymptote.changes b/asymptote.changes new file mode 100644 index 0000000..c460f12 --- /dev/null +++ b/asymptote.changes @@ -0,0 +1,192 @@ +------------------------------------------------------------------- +Thu Feb 13 12:45:28 UTC 2025 - Jan Engelhardt + +- Update to release 2.99 + * Build system updates only + +------------------------------------------------------------------- +Sun Feb 9 17:46:26 UTC 2025 - Jan Engelhardt + +- Update to release 2.97 + * By default, orthographic projections now use ``center=true``; + the camera and target are automatically centered within the + scene. + * Triangle groups are used for indexed surfaces drawn with the + render option tessellate=true. + * GLSL error reporting was restored. + * New keywords ``autounravel`` and ``using`` were added. +- Add use-system-libs.patch + +------------------------------------------------------------------- +Thu Jul 18 04:04:22 UTC 2024 - Jan Engelhardt + +- Update to release 2.90 + * Support templated access with imported and top-level + structure types, templated access with types containing + static fields, and templated imports for parameter types + defined in imported modules. + * Decouple scaling of each dimension with a fixed version of + the original 2-variable simplex method. + * Fix approximate transparency rendering for GPUs without SSBO + support. + +------------------------------------------------------------------- +Thu Jun 13 08:26:44 UTC 2024 - Markéta Machová + +- Drop the dependency on /usr/bin/python3 symlink + * boo#1212476 + +------------------------------------------------------------------- +Thu Apr 11 16:18:35 UTC 2024 - Jan Engelhardt + +- Update to release 2.89 + * Avoid broken dvisvgm reassign-clippaths optimization. + * Use a unique signature hash for identifying templated imports. + * Optimize dvisvgm output by default. +- Delete 0001-Fix-without-lsp-issue-379.patch (merged) + +------------------------------------------------------------------- +Sat Jun 24 12:24:02 UTC 2023 - Jan Engelhardt + +- Update to release 2.86 + * Terminate phase1 of simplex method once a zero-cost solution + is found. + * Fix bug in XDR reads due to uninitialized variable. + * Add high-resolution clock; update FFT support. +- Add 0001-Fix-without-lsp-issue-379.patch + +------------------------------------------------------------------- +Sat Nov 19 22:16:05 UTC 2022 - Jan Engelhardt + +- Update to release 2.83 + * WebGL triangle groups were fixed. + * Context menus were added to Xasy objects to allow one to edit + the fill type, line type, color, line cap, and optionally add + arrowheads. + * Support for begingroup() and endgroup() was added to Xasy. + * Scaling in the vectorfield function was fixed. + * A quotient(x,y) bug when -1 < x/y < 0, introduced in version + 2.42, was fixed. + +------------------------------------------------------------------- +Wed Aug 10 10:52:38 UTC 2022 - Jan Engelhardt + +- Update to release 2.82 + * Support for Ghostscript 9.56 was added. + * The dvisvgmMultipleFiles option is now enabled by default. + * The mean color of multicoloured patches is output only for + PRC code. + * Subdivision crack adjustments were disabled for transparent + patches. + * The OpenGL transparency shader was further accelerated. + +------------------------------------------------------------------- +Thu Jun 16 21:15:48 UTC 2022 - Jan Engelhardt + +- Update to release 2.81 + * Schur decompositions were implemented. A bug in uniform() was + fixed. + * The Xasy bounding box and a crash when opening Xasy files + were fixed. + * The transparency offset buffer is zeroed when GPU compression + is unavailable. + * The surface constructor for solids of revolution was + documented. + * Opaque rendering on platforms lacking + GL_ARB_fragment_shader_interlock was fixed. + +------------------------------------------------------------------- +Thu Apr 21 09:55:30 UTC 2022 - Jan Engelhardt + +- Update to release 2.80 + * Compression of empty transparent pixel counts and other + optimizations were implemented in the transparency shader. A + weighted least-squares fit was added. + * LSP: Add basic Language Server Protocol. server code to + Asymptote. + * Add preliminary v3d standard. + +------------------------------------------------------------------- +Fri May 7 13:24:15 UTC 2021 - Jan Engelhardt + +- Update to release 2.70 + * Fix segmentation fault in subpath3 + * Make Gouraud image respect x and y picture scaling + +------------------------------------------------------------------- +Thu Dec 24 11:53:55 UTC 2020 - Jan Engelhardt + +- Update to release 2.68 + * Floating point exceptions in OpenGL libraries are now masked. + * A normalization used to render tubes was fixed. + * A Label align(Label,dir) function was added for aligning + label normals. + * A new settings.compress=true option controls PDF image + compression. + * A bool isometry(transform) function was added. + * The transpose function ignores uninitialized elements. + * Null fields are treated as undefined values in cvs mode and + in line mode. + * Uninitialized rendering variables were fixed. + * Logarithmic graphs of surfaces are supported. + * Files are opened without assuming an asy suffix. + * Support for Ghostscript 9.53 was implemented. + * The end argument of Margin functions is now optional. + * A function cputime().change.clock that returns the + high-resolution elapsed wall clock time was added. + * The centering of slides was fixed. + * Null characters and null strings are supported in the replace + function. + +------------------------------------------------------------------- +Sun Aug 30 10:58:46 UTC 2020 - Atri Bhattacharya + +- Update to version 2.67: + * Support was added for importing and inputting URLs. + * Compilation and 2D SVG to HTML conversion no longer requires + the GLM library; 2D html output is fit to the canvas unless + settings.absolute=true. + * Diagnostics for dvisvgm were enabled; SVG clipping was fixed. + * A -globalread setting (default true) was implemented. + * Files are opened using the search path, which now includes the + examples directory. + * An invalid array dimensions error was fixed. + * A WebGL resize event listener was added; the + and - keys now + zoom in and out, rather than expanding and shrinking the + viewport. + * Remeshing on export is forced; unnecessary remeshing on zoom + in AsyGL is avoided. + * The triple dir(path3, path3) function was normalized. + * The repositioning of OpenGL windows was fixed. + * The copy constructors for path and path3 were fixed. + * Asymptote errors no longer cause Xasy to hang. + * A numerical precision issue was fixed. + * A portable way of skipping whitespace was implemented; casts + from empty strings now yield uninitialized values. + * Interrupt handling under MacOS X was fixed. + * A devicepixelratio setting was implemented. + * The error location is displayed in the console. + * Segmentation faults were fixed. + * The documentation was updated and the code was reformatted. + * Obsolete encoding modules were removed. + +------------------------------------------------------------------- +Thu Jun 4 16:31:30 UTC 2020 - Jan Engelhardt + +- Add Conflicts towards texlive-asymptote. + +------------------------------------------------------------------- +Wed Jun 3 19:28:40 UTC 2020 - Jan Engelhardt + +- Update to release 2.65 + * A bug in rendering 2D preview images of a 3D scene was fixed. + The 100-error TeX limit is gracefully detected, rather than + hanging. A more accurate Bezier approximation to the sphere + was implemented. An initial perpendicular direction can now + be specified for the rotation minimizing frame for a path3; + the previous direction is no longer cached between calls. + +------------------------------------------------------------------- +Thu Mar 5 16:22:57 UTC 2020 - Jan Engelhardt + +- Initial package (version 2.64) for build.opensuse.org diff --git a/asymptote.spec b/asymptote.spec new file mode 100644 index 0000000..987f202 --- /dev/null +++ b/asymptote.spec @@ -0,0 +1,101 @@ +# +# spec file for package asymptote +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%bcond_with lsp +Name: asymptote +Version: 2.99 +Release: 0 +Summary: 2D & 3D TeX-Aware vector graphics language +License: LGPL-3.0-or-later +Group: Productivity/Scientific/Math +URL: https://asymptote.sourceforge.io/ + +#Git-Clone: https://github.com/vectorgraphics/asymptote +Source: https://github.com/vectorgraphics/asymptote/archive/refs/tags/%version.tar.gz +Patch1: use-system-libs.patch +BuildRequires: automake +BuildRequires: bison +BuildRequires: flex +BuildRequires: gcc-c++ +%if %{with lsp} +BuildRequires: libboost_chrono-devel +BuildRequires: libboost_date_time-devel +BuildRequires: libboost_filesystem-devel +BuildRequires: libboost_program_options-devel +BuildRequires: libboost_system-devel +BuildRequires: libboost_thread-devel +%endif +BuildRequires: makeinfo +BuildRequires: ncurses-devel +BuildRequires: python-rpm-macros +BuildRequires: readline-devel +BuildRequires: texinfo +BuildRequires: texlive-dvips-bin +BuildRequires: texlive-kpathsea-bin +BuildRequires: texlive-latex-bin-bin +BuildRequires: xz +BuildRequires: pkgconfig(bdw-gc) +BuildRequires: pkgconfig(fftw3) +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(glm) +BuildRequires: pkgconfig(glut) +BuildRequires: pkgconfig(gsl) +BuildRequires: pkgconfig(libglvnd) +BuildRequires: pkgconfig(libtirpc) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(zlib) +BuildRequires: tex(media9.sty) +BuildRequires: tex(parskip.sty) +BuildRequires: tex(type1cm.sty) +Conflicts: texlive-asymptote +Conflicts: texlive-asymptote-bin +Conflicts: texlive-asymptote-doc + +%description +Asymptote is a descriptive vector graphics language for technical +drawing, inspired by MetaPost, but with a C++-like syntax. Asymptote +provides for figures the same quality of typesetting that LaTeX does +for scientific text. + +%prep +%autosetup +rm -Rfv libatomic_ops gc + +%build +if [ ! -e configure ]; then autoreconf -fiv; fi +%configure --with-docdir="%_docdir/%name" +%make_build + +%install +%make_install +mv "%buildroot/usr/local/share"/* "%buildroot/%_datadir/" +chmod a-x "%buildroot/%_datadir/asymptote/shaders"/*.glsl +find "%buildroot/%_datadir/asymptote/GUI" -type f -name "*.py" \ + -exec perl -i -lpe "s{^#!/usr/bin/env python3}{#!/usr/bin/python%python3_bin_suffix}g" {} + + +%files +%_bindir/asy +%_bindir/xasy +%_datadir/%name/ +%_datadir/texmf/ +%_docdir/%name/ +%_infodir/asy* +%_mandir/*/*asy.1* +%license LICENSE* + +%changelog diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..04ad5dd --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed6b6697fb57dacce8ae8bffbeb947ae7bdbd383d51a1e1a1d3a2f940662f884 +size 256 diff --git a/use-system-libs.patch b/use-system-libs.patch new file mode 100644 index 0000000..47b18a9 --- /dev/null +++ b/use-system-libs.patch @@ -0,0 +1,35 @@ +--- + configure.ac | 4 ++-- + memory.h | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +Index: asymptote-2.97/configure.ac +=================================================================== +--- asymptote-2.97.orig/configure.ac ++++ asymptote-2.97/configure.ac +@@ -479,8 +479,8 @@ AC_ARG_ENABLE(gc, + if test "x$enable_gc" != "xno" ; then + if test "x$with_vcpkg" == "xno"; then + AC_DEFINE(USEGC,1,[GC Enabled]) +- GCLIB="\$(GC)/.libs/libgc.a" +- INCL=$INCL" -I\$(GC)/include" ++ GCLIB="$(pkg-config bdw-gc --libs)" ++ INCL="$INCL $(pkg-config bdw-gc --cflags)" + AC_MSG_NOTICE([$GCNAME is enabled]) + fi + else +Index: asymptote-2.97/memory.h +=================================================================== +--- asymptote-2.97.orig/memory.h ++++ asymptote-2.97/memory.h +@@ -69,8 +69,8 @@ void* asy_malloc_atomic(size_t n); + #define GC_MALLOC(sz) asy_malloc(sz) + #define GC_MALLOC_ATOMIC(sz) asy_malloc_atomic(sz) + +-#include +-#include ++#include ++#include + + #define gc_allocator gc_allocator_ignore_off_page +