7 Star 0 Fork 1

src-openEuler/duktape
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
duktape.spec 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
zhengxiaoxiao 提交于 2022-11-03 15:03 +08:00 . update to 2.7.0
Name: duktape
Version: 2.7.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/\/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 Nov 3 2022 zhengxiaoxiao<zhengxiaoxiao2@huawei.com> - 2.7.0-1
- update to 2.7.0
* Thu Apr 28 2022 Hugel<gengqihu1@h-partners.com> - 2.6.0-1
- Initial package
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/duktape.git
git@gitee.com:src-openeuler/duktape.git
src-openeuler
duktape
duktape
openEuler-22.03-LTS-SP4

搜索帮助