From 7b039ca66a935a114d39e38b406b2b3257d31e92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= Date: Fri, 16 Dec 2022 12:05:42 +0100 Subject: [PATCH] Version 2.7.0 --- .gitignore | 1 + duktape.pc.in | 10 ---------- duktape.spec | 21 +++------------------ sources | 2 +- 4 files changed, 5 insertions(+), 29 deletions(-) delete mode 100644 duktape.pc.in diff --git a/.gitignore b/.gitignore index 7e3488e..bc6a29e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /duktape-2.2.0.tar.xz /duktape-2.6.0.tar.xz +/duktape-2.7.0.tar.xz diff --git a/duktape.pc.in b/duktape.pc.in deleted file mode 100644 index 757c2cf..0000000 --- a/duktape.pc.in +++ /dev/null @@ -1,10 +0,0 @@ -prefix=@prefix@ -exec_prefix=${prefix} -libdir=${exec_prefix}/@libdir@ -includedir=${prefix}/include - -Name: duktape -Description: Embeddable Javascript engine -Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -lduktape -Cflags: -I${includedir}/ diff --git a/duktape.spec b/duktape.spec index e264f67..4bfcc52 100644 --- a/duktape.spec +++ b/duktape.spec @@ -1,11 +1,10 @@ Name: duktape -Version: 2.6.0 +Version: 2.7.0 Release: %autorelease Summary: Embeddable Javascript engine License: MIT Url: http://duktape.org/ Source0: http://duktape.org/%{name}-%{version}.tar.xz -Source1: duktape.pc.in BuildRequires: gcc BuildRequires: pkgconfig BuildRequires: make @@ -27,25 +26,11 @@ application that use %{name}. %prep %setup -q -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 '/install\:/a\\tinstall -d $(DESTDIR)$(INSTALL_PREFIX)/%{_lib}\n\tinstall -d $(DESTDIR)$(INSTALL_PREFIX)/include' \ - -e 's/\(\$.INSTALL_PREFIX.\)/$(DESTDIR)\1/g' \ - -e 's/\/lib\b/\/%{_lib}/g' \ - < Makefile.sharedlibrary > Makefile -%make_build +%make_build -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib} %install -%make_install - -install -Dm0644 %{name}.pc.in %{buildroot}%{_libdir}/pkgconfig/%{name}.pc - -%ldconfig_scriptlets +%make_install -f Makefile.sharedlibrary INSTALL_PREFIX=%{_prefix} LIBDIR=/%{_lib} %files %license LICENSE.txt diff --git a/sources b/sources index c47ecf7..359f079 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (duktape-2.6.0.tar.xz) = d72a2aaa05391fa243861aca6ca6082f91a08b9c5d60c7b246d35d7161532b0048bb67bd8fec7996c700ee317ac2bb52e528582682e5425b0431757d8b1c5be4 +SHA512 (duktape-2.7.0.tar.xz) = 8ff5465c9c335ea08ebb0d4a06569c991b9dc4661b63e10da6b123b882e7375e82291d6b883c2644902d68071a29ccc880dae8229447cebe710c910b54496c1d