source: projects/specs/trunk/m/mozjs24/mozjs24-vl.spec @ 8353

Revision 8353, 2.3 KB checked in by Takemikaduchi, 10 years ago (diff)

GNOME-3.12.0

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