4 Commits

3 changed files with 16 additions and 0 deletions

1
baselibs.conf Normal file
View File

@@ -0,0 +1 @@
libduktape207

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jan 24 10:28:23 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Build with distro flags
-------------------------------------------------------------------
Thu Sep 14 06:26:43 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Ship libduktape207-32bit: needed by libproxy since version 0.5.
-------------------------------------------------------------------
Wed Apr 12 03:45:45 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@@ -25,6 +25,7 @@ License: MIT
Group: Development/Libraries/C and C++
URL: https://duktape.org/
Source0: https://duktape.org/%{name}-%{version}.tar.xz
Source99: baselibs.conf
Patch0: duktape-link-m.patch
BuildRequires: gcc
BuildRequires: pkgconfig
@@ -57,9 +58,13 @@ application that use %{name}.
%autosetup -p1
%build
export LDFLAGS="%{?_lto_cflags}"
export CFLAGS="%{optflags}"
%make_build -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib}
%install
export LDFLAGS="%{?_lto_cflags}"
export CFLAGS="%{optflags}"
%make_install -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib}
%ldconfig_scriptlets -n lib%{name}%{sover}