Initial package
This commit is contained in:
parent
7b1f5b8606
commit
96d5aa15ee
BIN
duktape-2.6.0.tar.xz
Normal file
BIN
duktape-2.6.0.tar.xz
Normal file
Binary file not shown.
10
duktape.pc.in
Normal file
10
duktape.pc.in
Normal 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}/
|
||||
69
duktape.spec
Normal file
69
duktape.spec
Normal file
@ -0,0 +1,69 @@
|
||||
Name: duktape
|
||||
Version: 2.6.0
|
||||
Release: 1
|
||||
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
|
||||
|
||||
%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
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
%doc AUTHORS.rst
|
||||
%{_libdir}/libduktape.so.*
|
||||
%{_libdir}/libduktaped.so.*
|
||||
|
||||
%files devel
|
||||
%doc README.rst
|
||||
%{_includedir}/duk_config.h
|
||||
%{_includedir}/duktape.h
|
||||
%{_libdir}/libduktape.so
|
||||
%{_libdir}/libduktaped.so
|
||||
%{_libdir}/pkgconfig/duktape.pc
|
||||
|
||||
%changelog
|
||||
* Thu Apr 28 2022 Hugel<gengqihu1@h-partners.com> - 2.6.0-1
|
||||
- Initial package
|
||||
Loading…
x
Reference in New Issue
Block a user