2 Summary: QuickJS Javascript Engine
3 Summary(pl.UTF-8): Silnik Javascriptu QuickJS
9 Source0: https://bellard.org/quickjs/%{name}-%{ver}.tar.xz
10 # Source0-md5: 135182a626aa0c87a49aa2bf58fd39bf
11 Patch0: rpmpldcflags.patch
13 URL: https://bellard.org/quickjs/
14 BuildRequires: libtool
15 BuildRequires: rpmbuild(macros) >= 1.583
16 BuildRequires: tar >= 1:1.22
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 QuickJS is a small and embeddable Javascript engine. It supports the
22 ES2020 specification including modules, asynchronous generators,
23 proxies and BigInt. It supports mathematical extensions such as big
24 decimal float float numbers (BigDecimal), big binary floating point
25 numbers (BigFloat), and operator overloading.
27 %description -l pl.UTF-8
28 QuickJS jest małym osadzalnym silnikiem Javascriptu. Wspiera
29 specyfikację ES2020, w tym moduły, asynchroniczne generatory, proxy i
30 BigInt. Wspiera też rozszerzenia matematyczne, takie jak liczby
31 BigDecimal, BigFloat i przeciążenia operatorów.
34 Summary: Header files for QuickJS library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki QuickJS
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 Header files for QuickJS library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki QuickJS.
46 %setup -q -n %{name}-%{ver}
53 RPMPLDCFLAGS="%{rpmcflags} %{rpmcppflags}" \
54 LDFLAGS="%{rpmldflags} %{rpmcflags}" \
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_libdir}
62 DESTDIR=$RPM_BUILD_ROOT \
66 %if "%{_lib}" != "lib"
67 %{__mv} $RPM_BUILD_ROOT{%{_prefix}/lib,%{_libdir}}/%{name}
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %attr(755,root,root) %{_bindir}/qjs
76 %attr(755,root,root) %{_bindir}/qjsc
77 %attr(755,root,root) %{_bindir}/qjscalc
80 %defattr(644,root,root,755)
82 %dir %{_libdir}/%{name}
83 %{_libdir}/%{name}/libquickjs.a
84 %{_libdir}/%{name}/libquickjs.lto.a
85 %{_includedir}/%{name}