source: projects/specs/trunk/m/mozjs17/mozjs17-vl.spec @ 7938

Revision 7938, 2.3 KB checked in by Takemikaduchi, 11 years ago (diff)

GNOME-3.10.1

Line 
1Summary:        The Mozilla library for JavaScript
2Name:           mozjs17
3Version:        17.0.0
4Release:        1%{?_dist_release}
5# The sources are triple licensed, but when we link against readline which is
6# GPL, the result can only be GPL.
7%if 0%{?_without_readline:1}
8License:        GPLv2+ or LGPLv2+ or MPLv1.1
9%else
10License:        GPLv2+
11%endif
12Group:          Development/Languages
13URL:            http://www.mozilla.org/js/
14Source0:        http://ftp.mozilla.org/pub/mozilla.org/js/mozjs17.0.0.tar.gz   
15
16Patch0:         mozjs17-17.0.0-Makefile.patch
17
18BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
19
20Buildrequires:  nspr-devel >= 4.7
21Buildrequires:  readline-devel
22BuildRequires:  autoconf213
23BuildRequires:  python
24BuildRequires:  zip
25
26Vendor: Project Vine
27Distribution: Vine Linux
28
29%description
30JavaScript is the Netscape-developed object scripting language used in millions
31of web pages and server applications worldwide. Netscape's JavaScript is a
32superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
33with only mild differences from the published standard.
34
35
36%package devel
37Summary: Header files, libraries and development documentation for %{name}
38Group: Development/Libraries
39Requires: %{name} = %{version}-%{release}
40Requires: pkgconfig
41Requires: ncurses-devel readline-devel
42Provides: libjs-devel = %{version}-%{release}
43
44%description devel
45This package contains the header files, static libraries and development
46documentation for %{name}. If you like to develop programs using %{name},
47you will need to install %{name}-devel.
48
49
50%prep
51%setup -q -n mozjs%{version}
52%patch0 -p1
53cd js
54
55# Rm parts with spurios licenses, binaries
56rm -rf src/ctypes/libffi src/editline
57
58pushd src
59autoconf-2.13
60%configure \
61    --with-system-nspr \
62    --enable-threadsafe \
63%if 0%{!?_without_readline:1}
64        --enable-readline \
65%endif
66
67popd
68
69
70%build
71cd js
72%{__make} %{?_smp_mflags} -C src
73
74%install
75cd js
76%{__make} -C src install DESTDIR=%{buildroot}
77
78%{__rm} -rf %{buildroot}%{_libdir}/*.a
79%{__rm} -rf %{buildroot}%{_libdir}/*.la
80
81
82%clean
83%{__rm} -rf %{buildroot}
84
85
86%post -p /sbin/ldconfig
87
88%postun -p /sbin/ldconfig
89
90
91%files
92%defattr(-,root,root,-)
93%doc js/src/README.html
94%{_bindir}/js17
95%{_libdir}/libmozjs-17.0.so
96
97%files devel
98%defattr(-,root,root,-)
99%{_bindir}/js17-config
100%{_includedir}/js-17.0
101%{_libdir}/pkgconfig/mozjs-17.0.pc
102
103%changelog
104* Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 17.0.0-1
105- initial build
106
Note: See TracBrowser for help on using the repository browser.