[info=3af800cfa4dd0faeb2f8d8e64329075f8d7285c467f19089a57849dab69b24b6]

OBS-URL: https://build.opensuse.org/package/show/science/asymptote?expand=0&rev=27
This commit is contained in:
OBS User unknown 2025-02-13 12:50:01 +00:00 committed by Git OBS Bridge
commit df6b3a8434
10 changed files with 368 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

BIN
2.90.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
2.97.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
2.99.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

4
_scmsync.obsinfo Normal file
View File

@ -0,0 +1,4 @@
mtime: 1739450987
commit: 3af800cfa4dd0faeb2f8d8e64329075f8d7285c467f19089a57849dab69b24b6
url: https://src.opensuse.org/jengelh/asymptote
revision: master

192
asymptote.changes Normal file
View File

@ -0,0 +1,192 @@
-------------------------------------------------------------------
Thu Feb 13 12:45:28 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.99
* Build system updates only
-------------------------------------------------------------------
Sun Feb 9 17:46:26 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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á <mmachova@suse.com>
- Drop the dependency on /usr/bin/python3 symlink
* boo#1212476
-------------------------------------------------------------------
Thu Apr 11 16:18:35 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <jengelh@inai.de>
- 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 <badshah400@gmail.com>
- 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 <jengelh@inai.de>
- Add Conflicts towards texlive-asymptote.
-------------------------------------------------------------------
Wed Jun 3 19:28:40 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- 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 <jengelh@inai.de>
- Initial package (version 2.64) for build.opensuse.org

101
asymptote.spec Normal file
View File

@ -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

3
build.specials.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ed6b6697fb57dacce8ae8bffbeb947ae7bdbd383d51a1e1a1d3a2f940662f884
size 256

35
use-system-libs.patch Normal file
View File

@ -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 <gc_allocator.h>
-#include <gc_cpp.h>
+#include <gc/gc_allocator.h>
+#include <gc/gc_cpp.h>
#define gc_allocator gc_allocator_ignore_off_page