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

Revision 10460, 2.7 KB checked in by Takemikaduchi, 8 years ago (diff)

firefox: new upstrream release
others: rebuild with gcc-5.4.0

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