Initial import.

This commit is contained in:
Gwyn Ciesla 2018-04-20 09:05:37 -05:00
parent dcf8cceeb7
commit dd3bcd39a0
5 changed files with 83 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/duktape-2.2.0.tar.xz

View File

@ -1,3 +0,0 @@
# duktape
The duktape package

10
duktape.pc.in Normal file
View File

@ -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}/

71
duktape.spec Normal file
View File

@ -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 <limburgher@gmail.com> - 2.2.0-2
- Macro corrections, dist tag.
* Fri Apr 13 2018 Gwyn Ciesla <limburgher@gmail.com> - 2.2.0-1
- Adapt to modern packaging guidelines.
* Mon Mar 19 2018 jk@lutty.net
- Initial package for fedora derived from Suse

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (duktape-2.2.0.tar.xz) = 6fe67660ad4cfbab37b9048840bd8c42ee9585441c17253e1f17cb06e4527d1413851bc167d8b013990d5cae9f8e6eb4cb6ff80866f55bd8d67b0cf47580be7c