From 186987ab6dd44caed23cff04fd680224b8e03094b9cf029fe60726aa1468f022 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 31 May 2017 09:49:40 +0000 Subject: [PATCH] Accepting request 499862 from home:awissu OBS-URL: https://build.opensuse.org/request/show/499862 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/duktape?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + duktape-2.1.0.tar.xz | 3 ++ duktape.changes | 5 +++ duktape.pc.in | 10 +++++ duktape.spec | 93 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 135 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 duktape-2.1.0.tar.xz create mode 100644 duktape.changes create mode 100644 duktape.pc.in create mode 100644 duktape.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/duktape-2.1.0.tar.xz b/duktape-2.1.0.tar.xz new file mode 100644 index 0000000..a58681e --- /dev/null +++ b/duktape-2.1.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e02364cd72077e34e204b8375c8bd7c461eb13cb623c7dc1a74d253d84b1446b +size 1024608 diff --git a/duktape.changes b/duktape.changes new file mode 100644 index 0000000..e3217c6 --- /dev/null +++ b/duktape.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue May 30 14:17:15 UTC 2017 - avvissu@yandex.by + +- Initial package + diff --git a/duktape.pc.in b/duktape.pc.in new file mode 100644 index 0000000..085a6e7 --- /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..4e5d1b3 --- /dev/null +++ b/duktape.spec @@ -0,0 +1,93 @@ +# +# spec file for package duktape +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define sover 201 +Name: duktape +Version: 2.1.0 +Release: 0 +Summary: Embeddable Javascript engine +License: MIT +Group: System/Libraries +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 -n lib%{name}%{sover} +Summary: The core library for %{name} +Group: System/Libraries +Provides: libduktaped%{sover} = %{version} + +%description -n lib%{name}%{sover} +Embeddable Javascript engine. + +This package contains the shared library. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries/C and C++ +Requires: lib%{name}%{sover} = %{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 's/\(-o.*\)/%{optflags} \1/' \ + -e '/install\:/a\\tinstall -d $(DESTDIR)$(INSTALL_PREFIX)/%{_lib}\n\tinstall -d $(DESTDIR)$(INSTALL_PREFIX)/include' \ + -e 's/\(\$.INSTALL_PREFIX.\)/$(DESTDIR)\1/' \ + -e 's/\/lib\b/\/%{_lib}/g' \ + < Makefile.sharedlibrary > Makefile +make -j1 + +%install +%make_install + +install -Dm0644 %{name}.pc.in %{buildroot}%{_libdir}/pkgconfig/%{name}.pc + +%post -n lib%{name}%{sover} -p /sbin/ldconfig +%postun -n lib%{name}%{sover} -p /sbin/ldconfig + +%files -n lib%{name}%{sover} +%doc AUTHORS.rst LICENSE.txt +%{_libdir}/libduktape.so.* +%{_libdir}/libduktaped.so.* + +%files devel +%{_includedir}/duk_config.h +%{_includedir}/duktape.h +%{_libdir}/libduktape.so +%{_libdir}/libduktaped.so +%{_libdir}/pkgconfig/duktape.pc + +%changelog