mujs/mujs.spec
leeffo c065cec89b update to upstream version 1.2.0
fix CVE-2016-10141、CVE-2016-7504、CVE-2016-9136、CVE-2017-5628、CVE-2016-9017、CVE-2016-7506、CVE-2017-5627、CVE-2016-9108、CVE-2016-9294

(cherry picked from commit 09e862c5230d157b732f53972fe1897e82ba3dfa)
2022-09-26 14:08:28 +08:00

59 lines
1.6 KiB
RPMSpec

Name: mujs
Version: 1.2.0
Release: 1
Summary: An embeddable Javascript interpreter
License: ISC
URL: http://mujs.com/
# The mujs.com download page doesn't provide recent tarballs
# Github mirror of mujs.com repository provides releases from tags
Source0: https://mujs.com/downloads/mujs-%{version}.tar.gz
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
Provides: %{name}-static = %{version}-%{release}
%description devel
This package provides the MuJS static library.
%prep
%setup -q -n %{name}-%{version}
chmod a-x -v docs/*
%build
make debug %{?_smp_mflags} XCFLAGS="%{optflags} -fPIC" LDFLAGS="%{?__global_ldflags}"
%install
make install DESTDIR=%{buildroot} prefix="%{_prefix}" libdir="%{_libdir}" \
XCFLAGS="%{optflags} -fPIC" LDFLAGS="%{?__global_ldflags}"
%files
%license COPYING
%doc AUTHORS README docs
%{_bindir}/%{name}
%files devel
%license COPYING
%doc AUTHORS README
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.a
%changelog
* Mon Sep 26 2022 liweiganga <liweiganga@uniontech.com> - 1.2.0-1
- upstream release 1.2.0
- fix: fix CVE-2016-10141、CVE-2016-7504、CVE-2016-9136、CVE-2017-5628、CVE-2016-9017、\
CVE-2016-7506、CVE-2017-5627、CVE-2016-9108、CVE-2016-9294
* Thu May 13 2021 He Rengui <herengui@uniontech.com> - 1.0.9-1
- package init