Sync from SUSE:SLFO:Main duktape revision 209af61d05e96b1de2aaef45810d74fc
This commit is contained in:
commit
f5f1b9f9d4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
BIN
duktape-2.7.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
duktape-2.7.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
18
duktape-link-m.patch
Normal file
18
duktape-link-m.patch
Normal file
@ -0,0 +1,18 @@
|
||||
Index: duktape-2.7.0/Makefile.sharedlibrary
|
||||
===================================================================
|
||||
--- duktape-2.7.0.orig/Makefile.sharedlibrary
|
||||
+++ duktape-2.7.0/Makefile.sharedlibrary
|
||||
@@ -71,11 +71,11 @@ all: libduktape.$(SO_REALNAME_SUFFIX) li
|
||||
|
||||
libduktape.$(SO_REALNAME_SUFFIX):
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fPIC -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \
|
||||
- -o $@ $(DUKTAPE_SRCDIR)/duktape.c
|
||||
+ -o $@ $(DUKTAPE_SRCDIR)/duktape.c -lm
|
||||
|
||||
libduktaped.$(SO_REALNAME_SUFFIX):
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fPIC -g -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \
|
||||
- -o $@ $(DUKTAPE_SRCDIR)/duktape.c
|
||||
+ -o $@ $(DUKTAPE_SRCDIR)/duktape.c -lm
|
||||
|
||||
duktape.pc:
|
||||
sed -e "s|@PREFIX@|$(INSTALL_PREFIX)|" \
|
84
duktape.changes
Normal file
84
duktape.changes
Normal file
@ -0,0 +1,84 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 12 03:45:45 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Update to version 2.7.0:
|
||||
* Fix memory unsafe behavior when valstack size limit hit in
|
||||
call setup
|
||||
* Fix a realloc() memory leak triggered when (1) previous
|
||||
allocation exists, (2) new realloc size is 0, (3) GC is
|
||||
triggered before first realloc() attempt
|
||||
* Fix void pointer arithmetic in duk_alloc_pool.c, caused
|
||||
problems with MSVC
|
||||
* Fix broken bytecode dump on big endian architectures
|
||||
* Fix DUK_USE_GET_RANDOM_DOUBLE() argument handling
|
||||
* Use yaml.safe_load() instead of yaml.load() in Py2 tooling
|
||||
* Dist makefile and pkg-config improvements
|
||||
* Fix Makefile.jsoncbor build
|
||||
* Reformat source with clang-format-12
|
||||
- Bump sover define following upstream changes.
|
||||
- Rebase duktape-link-m.patch with quilt.
|
||||
- Drop pc.in file, no longer needed.
|
||||
- Pass the needed prefixes etc to make_build and make_install.
|
||||
- Use ldconfig_scriptlets macro.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 28 10:47:19 UTC 2022 - Marcus Meissner <meissner@suse.com>
|
||||
|
||||
- duktape-link-m.patch: link against libm for sin() and related functions,
|
||||
in case the compiler with -Os creates external references. bsc#1205805
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 30 15:03:19 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Update to 2.6.0:
|
||||
* Various fixes and portability improvements.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 28 07:16:30 UTC 2020 - Martin Rey <mrey@suse.com>
|
||||
|
||||
- Update to 2.5.0:
|
||||
* CBOR support, minor fixes and improvements
|
||||
- spec file changes
|
||||
* change http to https in URLs
|
||||
* use RPM macros
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 16:13:30 UTC 2019 - Alexei Podvalsky <avvissu@yandex.by>
|
||||
|
||||
- Update to 2.4.0:
|
||||
* Minor fixes and improvements
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 18 02:44:40 UTC 2018 - sean@suspend.net
|
||||
|
||||
- Update to 2.3.0:
|
||||
* ES2015 improvements
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 26 19:11:12 UTC 2018 - avvissu@yandex.by
|
||||
|
||||
- Update to 2.2.1:
|
||||
* maintenance release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 5 23:38:26 UTC 2017 - avvissu@yandex.by
|
||||
|
||||
- Update to 2.2.0:
|
||||
* call handling, API improvements, performance
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 29 20:16:52 UTC 2017 - avvissu@yandex.by
|
||||
|
||||
- Update to 2.1.1:
|
||||
* maintenance release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 1 09:02:19 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- Correct RPM group.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 30 14:17:15 UTC 2017 - avvissu@yandex.by
|
||||
|
||||
- Initial package
|
||||
|
80
duktape.spec
Normal file
80
duktape.spec
Normal file
@ -0,0 +1,80 @@
|
||||
#
|
||||
# spec file for package duktape
|
||||
#
|
||||
# Copyright (c) 2023 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/
|
||||
#
|
||||
|
||||
|
||||
%define sover 207
|
||||
Name: duktape
|
||||
Version: 2.7.0
|
||||
Release: 0
|
||||
Summary: Embeddable Javascript engine
|
||||
License: MIT
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://duktape.org/
|
||||
Source0: https://duktape.org/%{name}-%{version}.tar.xz
|
||||
Patch0: duktape-link-m.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
%description
|
||||
Duktape is an embeddable Javascript engine, with a focus on portability and
|
||||
compact footprint.
|
||||
|
||||
%package -n lib%{name}%{sover}
|
||||
Summary: The core library for %{name}
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n lib%{name}%{sover}
|
||||
Embeddable Javascript engine.
|
||||
|
||||
This package contains the shared library.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: lib%{name}%{sover} = %{version}
|
||||
|
||||
%description devel
|
||||
Embeddable Javascript engine.
|
||||
|
||||
This package contains header files and libraries needed to develop
|
||||
application that use %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%make_build -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib}
|
||||
|
||||
%install
|
||||
%make_install -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib}
|
||||
|
||||
%ldconfig_scriptlets -n lib%{name}%{sover}
|
||||
|
||||
%files -n lib%{name}%{sover}
|
||||
%doc AUTHORS.rst
|
||||
%license LICENSE.txt
|
||||
%{_libdir}/libduktape.so.*
|
||||
%{_libdir}/libduktaped.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/duk_config.h
|
||||
%{_includedir}/duktape.h
|
||||
%{_libdir}/libduktape.so
|
||||
%{_libdir}/libduktaped.so
|
||||
%{_libdir}/pkgconfig/duktape.pc
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user