mujs/mujs.spec
Илья Индиго ee9f220fcf Accepting request 885480 from home:susnux:branches:devel:languages:javascript
- Update mujs 1.1.1
  * Fix: Always create new scope for eval()
  * Don't redefine/reset existing vars in script code
  * Fix: RegExp.prototype should be a regular expression object
  * Throw when redefining non-configurable/readonly properties
  * Array:  Fix crash when length is negative
  * fix split doesn't convert context to string if no argument is passed
  * Parse integers with floats to support large numbers.
  * Optimize array construction bytecode.
  * Fix: Expose type of value as an enum with js_type()
  * Fixed js_strtol: Prevent negative table indexing in
- Update mujs 1.1.0
  * Don't allow creating new properties on transient objects.
  * Fixed escape characters in regex parser
  * Handle NaN in Date accessors
  * Handle undefined argument to Error constructor
- Fixed RPM error because of missing RPM group

OBS-URL: https://build.opensuse.org/request/show/885480
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=3
2021-04-14 22:30:21 +00:00

67 lines
1.8 KiB
RPMSpec

#
# spec file for package mujs
#
# Copyright (c) 2021 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/
#
Name: mujs
Version: 1.1.1
Release: 0
Summary: An embeddable Javascript interpreter
License: AGPL-3.0-or-later
Group: Development/Languages/C and C++
URL: https://mujs.com
Source0: https://mujs.com/downloads/mujs-%{version}.tar.xz
BuildRequires: coreutils
BuildRequires: gcc
BuildRequires: grep
BuildRequires: make
BuildRequires: readline-devel
%description
MuJS is a lightweight Javascript interpreter designed for embedding in other software to extend them with scripting capabilities.
%package devel
Summary: MuJS development files
Group: Development/Languages/C and C++
Provides: %{name}-static = %{version}
%description devel
This package provides the MuJS static library.
%prep
%autosetup -p1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%make_build debug CFLAGS="%{optflags} -fPIC"
%install
%make_install prefix="%{_prefix}" libdir="%{_libdir}" CFLAGS="%{optflags} -fPIC"
%files
%license COPYING
%doc AUTHORS README
%{_bindir}/%{name}
%files devel
%license COPYING
%doc AUTHORS README
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.a
%changelog