Compare commits

...
Sign in to create a new pull request.

5 commits

2 changed files with 50 additions and 0 deletions

1
.quickjs.metadata Normal file
View file

@ -0,0 +1 @@
9f426404e4dc1e2a41fcc235b72e58708041aed24eadd5fb9e82f62435501003d3a6b04831f307b04852551d2fd265b94cd400b3293ec0810465f52de8a6c057 SOURCES/quickjs-2024-01-13.tar.xz

49
SPECS/quickjs.spec Normal file
View file

@ -0,0 +1,49 @@
%undefine _debugsource_packages
%global _version 2024-01-13
Name: quickjs
Version: %(echo %{_version}|tr - .)
Release: 1%{?dist}
Summary: A small and embeddable Javascript engine
License: BSD
URL: https://bellard.org/quickjs/
Source0: https://bellard.org/quickjs/quickjs-%{_version}.tar.xz
%package devel
Summary: Development files for package %{name}
Requires: %{name}
%description
QuickJS supports the ES2020 specification 1 including modules, asynchronous
generators, proxies and BigInt. It supports mathematical extensions such as
big decimal float float numbers (BigDecimal), big binary floating point numbers
(BigFloat), and operator overloading.
%description devel
Header files and Libraries for package %{name}.
%prep
%setup -q -n quickjs-%{_version}
sed -i 's|lib/quickjs|%{_lib}/quickjs|' Makefile qjsc.c
sed -i 's|/usr/local|/usr|' Makefile
%build
%make_build
%install
%make_install
%files
%doc Changelog LICENSE doc/*
%{_bindir}/*
%files devel
%doc examples
%{_includedir}/%{name}
%{_libdir}/%{name}
%changelog
* Sun Dec 8 2024 Wei-Lun Chao <bluebat@member.fsf.org> - 2024.01.13
- Rebuilt for Fedora
* Tue Jan 17 2023 Zephyr Lykos <fedora@mochaa.ws> - 2021.03.27-2
- Fix qjsc library path