]> git.pld-linux.org Git - packages/mujs.git/blame - mujs.spec
BR: readline-devel
[packages/mujs.git] / mujs.spec
CommitLineData
ed69f59a
JB
1Summary: MuJS - lightweight, embeddable JavaScript interpreter in C
2Summary(pl.UTF-8): MuJS - lekki, osadzalny interpreter JavaScriptu napisany w C
3Name: mujs
aea9253f 4Version: 1.2.0
c83c907a 5Release: 1
0c866889 6License: ISC
ed69f59a 7Group: Development/Languages
ce8426b6 8Source0: https://www.mujs.com/downloads/%{name}-%{version}.tar.xz
aea9253f 9# Source0-md5: e48906891795bb0770d5b1fa52aeded9
ed69f59a
JB
10Patch0: %{name}-shared.patch
11URL: http://www.mujs.com/
a2fda339 12BuildRequires: readline-devel
b48ee8da
JP
13BuildRequires: tar >= 1:1.22
14BuildRequires: xz
ed69f59a
JB
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18MuJS is a lightweight JavaScript interpreter designed for embedding in
19other software to extend them with scripting capabilities.
20
21%description -l pl.UTF-8
22MuJS to lekki interpreter JavaScriptu zaprojektowany do osadzania w
23innych programach w celu rozszerzenia ich o obsługę skryptów.
24
25%package devel
26Summary: Header files for MuJS library
27Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MuJS
28Group: Development/Libraries
29Requires: %{name} = %{version}-%{release}
30
31%description devel
32Header files for MuJS library.
33
34%description devel -l pl.UTF-8
35Pliki nagłówkowe biblioteki MuJS.
36
37%package static
38Summary: Static MuJS library
39Summary(pl.UTF-8): Statyczna biblioteka MuJS
40Group: Development/Libraries
41Requires: %{name}-devel = %{version}-%{release}
42
43%description static
44Static MuJS library.
45
46%description static -l pl.UTF-8
47Statyczna biblioteka MuJS.
48
49%prep
ce8426b6 50%setup -q
ed69f59a
JB
51%patch0 -p1
52
53%build
aea9253f 54%{__make} -j1 default shared static \
ed69f59a 55 CC="%{__cc}" \
805dc612 56 CFLAGS="%{rpmcflags} %{rpmcppflags} -std=c99 -Wall -Wextra -Wno-unused-parameter -Wunreachable-code" \
ed69f59a
JB
57 LDFLAGS="%{rpmldflags}" \
58 libdir=%{_libdir}
59
60%install
61rm -rf $RPM_BUILD_ROOT
62
aea9253f 63%{__make} install install-shared \
ed69f59a
JB
64 DESTDIR=$RPM_BUILD_ROOT \
65 prefix=%{_prefix} \
66 libdir=%{_libdir}
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%post -p /sbin/ldconfig
72%postun -p /sbin/ldconfig
73
74%files
75%defattr(644,root,root,755)
0c866889 76%doc AUTHORS COPYING README
ed69f59a
JB
77%attr(755,root,root) %{_bindir}/mujs
78%attr(755,root,root) %{_libdir}/libmujs.so.*.*.*
79%attr(755,root,root) %ghost %{_libdir}/libmujs.so.0
80
81%files devel
82%defattr(644,root,root,755)
0c866889 83%doc docs/*.{css,html,png,ps}
ed69f59a 84%attr(755,root,root) %{_libdir}/libmujs.so
ed69f59a 85%{_includedir}/mujs.h
1c597c14 86%{_pkgconfigdir}/mujs.pc
ed69f59a
JB
87
88%files static
89%defattr(644,root,root,755)
90%{_libdir}/libmujs.a
This page took 0.073645 seconds and 4 git commands to generate.