2017-05-31 11:49:40 +02:00
|
|
|
#
|
|
|
|
# spec file for package duktape
|
|
|
|
#
|
2022-12-03 08:43:22 +01:00
|
|
|
# Copyright (c) 2022 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
|
|
|
|
2020-10-30 21:30:38 +01:00
|
|
|
%define sover 206
|
2017-05-31 11:49:40 +02:00
|
|
|
Name: duktape
|
2020-10-30 21:30:38 +01:00
|
|
|
Version: 2.6.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
|
2017-05-31 11:49:40 +02:00
|
|
|
Source1: duktape.pc.in
|
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
|
|
|
|
%setup -q
|
2022-12-03 08:43:22 +01:00
|
|
|
%patch0 -p1
|
2017-05-31 11:49:40 +02:00
|
|
|
|
|
|
|
sed -e's|@prefix@|%{_prefix}|' \
|
|
|
|
-e's|@libdir@|%{_lib}|' \
|
|
|
|
-e's|@PACKAGE_VERSION@|%{version}|' \
|
|
|
|
< %{SOURCE1} > %{name}.pc.in
|
|
|
|
|
|
|
|
%build
|
|
|
|
sed -e '/^INSTALL_PREFIX/s|[^=]*$|%{_prefix}|' \
|
|
|
|
-e 's/\(-o.*\)/%{optflags} \1/' \
|
|
|
|
-e '/install\:/a\\tinstall -d $(DESTDIR)$(INSTALL_PREFIX)/%{_lib}\n\tinstall -d $(DESTDIR)$(INSTALL_PREFIX)/include' \
|
|
|
|
-e 's/\(\$.INSTALL_PREFIX.\)/$(DESTDIR)\1/' \
|
|
|
|
-e 's/\/lib\b/\/%{_lib}/g' \
|
|
|
|
< Makefile.sharedlibrary > Makefile
|
2020-10-30 21:30:38 +01:00
|
|
|
%make_build
|
2017-05-31 11:49:40 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
install -Dm0644 %{name}.pc.in %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
%post -n lib%{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%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
|