2017-05-31 11:49:40 +02:00
|
|
|
#
|
|
|
|
# spec file for package duktape
|
|
|
|
#
|
2023-04-21 19:45:36 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-05-31 11:49:40 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-18 07:46:50 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-05-31 11:49:40 +02:00
|
|
|
#
|
|
|
|
|
2017-06-03 15:30:16 +02:00
|
|
|
|
2023-04-21 19:45:36 +02:00
|
|
|
%define sover 207
|
2017-05-31 11:49:40 +02:00
|
|
|
Name: duktape
|
2023-04-21 19:45:36 +02:00
|
|
|
Version: 2.7.0
|
2017-05-31 11:49:40 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Embeddable Javascript engine
|
|
|
|
License: MIT
|
2017-06-01 17:44:41 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-07-30 19:15:55 +02:00
|
|
|
URL: https://duktape.org/
|
|
|
|
Source0: https://duktape.org/%{name}-%{version}.tar.xz
|
2022-12-03 08:43:22 +01:00
|
|
|
Patch0: duktape-link-m.patch
|
2017-05-31 11:49:40 +02:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
%description
|
2017-06-03 15:30:16 +02:00
|
|
|
Duktape is an embeddable Javascript engine, with a focus on portability and
|
2017-05-31 11:49:40 +02:00
|
|
|
compact footprint.
|
|
|
|
|
|
|
|
%package -n lib%{name}%{sover}
|
|
|
|
Summary: The core library for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n lib%{name}%{sover}
|
|
|
|
Embeddable Javascript engine.
|
|
|
|
|
|
|
|
This package contains the shared library.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: lib%{name}%{sover} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Embeddable Javascript engine.
|
|
|
|
|
|
|
|
This package contains header files and libraries needed to develop
|
|
|
|
application that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
2023-04-21 19:45:36 +02:00
|
|
|
%autosetup -p1
|
2017-05-31 11:49:40 +02:00
|
|
|
|
|
|
|
%build
|
2023-04-21 19:45:36 +02:00
|
|
|
%make_build -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib}
|
2017-05-31 11:49:40 +02:00
|
|
|
|
|
|
|
%install
|
2023-04-21 19:45:36 +02:00
|
|
|
%make_install -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib}
|
2017-05-31 11:49:40 +02:00
|
|
|
|
2023-04-21 19:45:36 +02:00
|
|
|
%ldconfig_scriptlets -n lib%{name}%{sover}
|
2017-05-31 11:49:40 +02:00
|
|
|
|
|
|
|
%files -n lib%{name}%{sover}
|
2020-07-30 19:15:55 +02:00
|
|
|
%doc AUTHORS.rst
|
|
|
|
%license LICENSE.txt
|
2017-05-31 11:49:40 +02:00
|
|
|
%{_libdir}/libduktape.so.*
|
|
|
|
%{_libdir}/libduktaped.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/duk_config.h
|
|
|
|
%{_includedir}/duktape.h
|
|
|
|
%{_libdir}/libduktape.so
|
|
|
|
%{_libdir}/libduktaped.so
|
|
|
|
%{_libdir}/pkgconfig/duktape.pc
|
|
|
|
|
|
|
|
%changelog
|