]>
Commit | Line | Data |
---|---|---|
ed69f59a JB |
1 | Summary: MuJS - lightweight, embeddable JavaScript interpreter in C |
2 | Summary(pl.UTF-8): MuJS - lekki, osadzalny interpreter JavaScriptu napisany w C | |
3 | Name: mujs | |
aea9253f | 4 | Version: 1.2.0 |
c83c907a | 5 | Release: 1 |
0c866889 | 6 | License: ISC |
ed69f59a | 7 | Group: Development/Languages |
ce8426b6 | 8 | Source0: https://www.mujs.com/downloads/%{name}-%{version}.tar.xz |
aea9253f | 9 | # Source0-md5: e48906891795bb0770d5b1fa52aeded9 |
ed69f59a JB |
10 | Patch0: %{name}-shared.patch |
11 | URL: http://www.mujs.com/ | |
a2fda339 | 12 | BuildRequires: readline-devel |
b48ee8da JP |
13 | BuildRequires: tar >= 1:1.22 |
14 | BuildRequires: xz | |
ed69f59a JB |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | MuJS is a lightweight JavaScript interpreter designed for embedding in | |
19 | other software to extend them with scripting capabilities. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | MuJS to lekki interpreter JavaScriptu zaprojektowany do osadzania w | |
23 | innych programach w celu rozszerzenia ich o obsługę skryptów. | |
24 | ||
25 | %package devel | |
26 | Summary: Header files for MuJS library | |
27 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MuJS | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description devel | |
32 | Header files for MuJS library. | |
33 | ||
34 | %description devel -l pl.UTF-8 | |
35 | Pliki nagłówkowe biblioteki MuJS. | |
36 | ||
37 | %package static | |
38 | Summary: Static MuJS library | |
39 | Summary(pl.UTF-8): Statyczna biblioteka MuJS | |
40 | Group: Development/Libraries | |
41 | Requires: %{name}-devel = %{version}-%{release} | |
42 | ||
43 | %description static | |
44 | Static MuJS library. | |
45 | ||
46 | %description static -l pl.UTF-8 | |
47 | Statyczna 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 | |
61 | rm -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 | |
69 | rm -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 |