summaryrefslogtreecommitdiff
path: root/jsext.spec
blob: de340058df4045917f19a477a3a20631eeec8715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Summary:	JavaScript implementation
Summary(pl.UTF-8):	Implementacja JavaScriptu
Name:		jsext
Version:	0.12
Release:	1
License:	LGPL or GPL or Mozilla Public License 1.1, part BSD
Group:		Libraries
Source0:	http://dl.sourceforge.net/jsext/%{name}-%{version}.tar.gz
# Source0-md5:	9980d5bdcec8d4a2b5455f3264b42184
URL:		http://www.jsext.net/
BuildRequires:	readline-devel
BuildRequires:	rpmbuild(macros) >= 1.294
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
JavaScript Reference Implementation (codename SpiderMonkey). The
package contains JavaScript runtime (compiler, interpreter,
decompiler, garbage collector, atom manager, standard classes) and
small "shell" program that can be used interactively and with .js
files to run scripts. This version extends the interpreter with the
ability to access libraries written in C.

%description -l pl.UTF-8
Wzorcowa implementacja JavaScriptu (o nazwie kodowej SpiderMonkey).
Pakiet zawiera środowisko uruchomieniowe (kompilator, interpreter,
dekompilator, odśmiecacz, standardowe klasy) i niewielką powłokę,
która może być używana interaktywnie lub z plikami .js do uruchamiania
skryptów. Ta wersja rozszerza interpreter o możliwość dostępu do
bibliotek napisanych w C.

%package devel
Summary:	Header files for JavaScript library
Summary(pl.UTF-8):	Pliki nagłówkowe do biblioteki JavaScript
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description devel
Header files for JavaScript library.

%description devel -l pl.UTF-8
Pliki nagłówkowe do biblioteki JavaScript.

%package static
Summary:	Static JavaScript library
Summary(pl.UTF-8):	Statyczna biblioteka JavaScript
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
Static version of JavaScript library.

%description static -l pl.UTF-8
Statyczna biblioteka JavaScript.

%prep
%setup -q

%build
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/js}

%{__make} install \
	libdir=$RPM_BUILD_ROOT%{_libdir} \
	bindir=$RPM_BUILD_ROOT%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/jsext*
%attr(755,root,root) %{_libdir}/libjsext.so.*.*
%dir %{_libdir}/%{name}-%{version}
%attr(755,root,root) %{_libdir}/%{name}-%{version}/*.so

#%files devel
#%defattr(644,root,root,755)
#%attr(755,root,root) %{_libdir}/libjs.so
#%dir %{_includedir}/js
#%{_includedir}/js/js.msg
#%{_includedir}/js/jsopcode.tbl
#%{_includedir}/js/js[!j]*.h

#%files static
#%defattr(644,root,root,755)
#%{_libdir}/libjs.a