/[smecontribs]/rpms/duktape/contribs10/duktape.spec
ViewVC logotype

Contents of /rpms/duktape/contribs10/duktape.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Nov 10 04:13:29 2021 UTC (2 years, 11 months ago) by jpp
Branch: MAIN
CVS Tags: duktape-2_2_0-5_el7_sme, duktape-2_2_0-5_el8, HEAD
Initial import

1 Name: duktape
2 Version: 2.2.0
3 Release: 5%{?dist}
4 Summary: Embeddable Javascript engine
5 License: MIT
6 Url: http://duktape.org/
7 Source0: http://duktape.org/%{name}-%{version}.tar.xz
8 Source1: duktape.pc.in
9 BuildRequires: gcc
10 BuildRequires: pkgconfig
11
12 %description
13 Duktape is an embeddable Javascript engine, with a focus on portability and
14 compact footprint.
15
16 %package devel
17 Summary: Development files for %{name}
18 Requires: %{name} = %{version}
19
20 %description devel
21 Embeddable Javascript engine.
22
23 This package contains header files and libraries needed to develop
24 application that use %{name}.
25
26 %prep
27 %setup -q
28
29 sed -e's|@prefix@|%{_prefix}|' \
30 -e's|@libdir@|%{_lib}|' \
31 -e's|@PACKAGE_VERSION@|%{version}|' \
32 < %{SOURCE1} > %{name}.pc.in
33
34 %build
35 sed -e '/^INSTALL_PREFIX/s|[^=]*$|%{_prefix}|' \
36 -e '/install\:/a\\tinstall -d $(DESTDIR)$(INSTALL_PREFIX)/%{_lib}\n\tinstall -d $(DESTDIR)$(INSTALL_PREFIX)/include' \
37 -e 's/\(\$.INSTALL_PREFIX.\)/$(DESTDIR)\1/g' \
38 -e 's/\/lib\b/\/%{_lib}/g' \
39 < Makefile.sharedlibrary > Makefile
40 %make_build
41
42 %install
43 %make_install
44
45 install -Dm0644 %{name}.pc.in %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
46
47 %ldconfig_scriptlets
48
49 %files
50 %license LICENSE.txt
51 %doc AUTHORS.rst
52 %{_libdir}/libduktape.so.*
53 %{_libdir}/libduktaped.so.*
54
55 %files devel
56 %doc examples/ README.rst
57 %{_includedir}/duk_config.h
58 %{_includedir}/duktape.h
59 %{_libdir}/libduktape.so
60 %{_libdir}/libduktaped.so
61 %{_libdir}/pkgconfig/duktape.pc
62
63 %changelog
64 * Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-5
65 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
66
67 * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-4
68 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
69
70 * Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
71 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
72
73 * Thu Apr 19 2018 Gwyn Ciesla <limburgher@gmail.com> - 2.2.0-2
74 - Macro corrections, dist tag.
75
76 * Fri Apr 13 2018 Gwyn Ciesla <limburgher@gmail.com> - 2.2.0-1
77 - Adapt to modern packaging guidelines.
78
79 * Mon Mar 19 2018 jk@lutty.net
80 - Initial package for fedora derived from Suse

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed