From 0a9ea9816e6fe076c5b1c75439c25d3f94d4fbe0 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:59:50 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.7.0-1mamba;Sat Oct 08 2022] --- README.md | 2 ++ duktape.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 duktape.spec diff --git a/README.md b/README.md index 5f3c27e..dcf76fc 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # duktape +Duktape is an embeddable Javascript engine, with a focus on portability and compact footprint. + diff --git a/duktape.spec b/duktape.spec new file mode 100644 index 0000000..be43af1 --- /dev/null +++ b/duktape.spec @@ -0,0 +1,73 @@ +Name: duktape +Version: 2.7.0 +Release: 1mamba +Summary: An embeddable Javascript engine, with a focus on portability and compact footprint +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://duktape.org/ +Source: https://duktape.org/duktape-%{version}.tar.xz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Duktape is an embeddable Javascript engine, with a focus on portability and compact footprint. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +export CFLAGS="%{optflags} -DDUK_USE_FASTINT" +%make -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib} + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libduktape.so.* +%{_libdir}/libduktaped.so.* +%doc LICENSE.txt + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/duk_config.h +%{_includedir}/duktape.h +%{_libdir}/libduktape.so +%{_libdir}/libduktaped.so +%{_libdir}/pkgconfig/duktape.pc +%doc README.rst + +%changelog +* Sat Oct 08 2022 Silvan Calarco 2.7.0-1mamba +- package created using the webbuild interface