From dd3bcd39a0c339596c49a2b7ea306b2846d335ed Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Fri, 20 Apr 2018 09:05:37 -0500 Subject: [PATCH] Initial import. --- .gitignore | 1 + README.md | 3 --- duktape.pc.in | 10 ++++++++ duktape.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 duktape.pc.in create mode 100644 duktape.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..759de24 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/duktape-2.2.0.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 2aefad7..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# duktape - -The duktape package \ No newline at end of file diff --git a/duktape.pc.in b/duktape.pc.in new file mode 100644 index 0000000..757c2cf --- /dev/null +++ b/duktape.pc.in @@ -0,0 +1,10 @@ +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 new file mode 100644 index 0000000..a09c28a --- /dev/null +++ b/duktape.spec @@ -0,0 +1,71 @@ +Name: duktape +Version: 2.2.0 +Release: 2%{?dist} +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 + +%description +Duktape is an embeddable Javascript engine, with a focus on portability and +compact footprint. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version} + +%description devel +Embeddable Javascript engine. + +This package contains header files and libraries needed to develop +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 + +%install +%make_install + +install -Dm0644 %{name}.pc.in %{buildroot}%{_libdir}/pkgconfig/%{name}.pc + +%ldconfig_scriptlets + +%files +%license LICENSE.txt +%doc AUTHORS.rst +%{_libdir}/libduktape.so.* +%{_libdir}/libduktaped.so.* + +%files devel +%doc examples/ README.rst +%{_includedir}/duk_config.h +%{_includedir}/duktape.h +%{_libdir}/libduktape.so +%{_libdir}/libduktaped.so +%{_libdir}/pkgconfig/duktape.pc + +%changelog +* Thu Apr 19 2018 Gwyn Ciesla - 2.2.0-2 +- Macro corrections, dist tag. + +* Fri Apr 13 2018 Gwyn Ciesla - 2.2.0-1 +- Adapt to modern packaging guidelines. + +* Mon Mar 19 2018 jk@lutty.net +- Initial package for fedora derived from Suse diff --git a/sources b/sources new file mode 100644 index 0000000..7bc8638 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (duktape-2.2.0.tar.xz) = 6fe67660ad4cfbab37b9048840bd8c42ee9585441c17253e1f17cb06e4527d1413851bc167d8b013990d5cae9f8e6eb4cb6ff80866f55bd8d67b0cf47580be7c