Blame SPECS/mozjs17.spec

c67d24
Summary:	JavaScript interpreter and libraries
c67d24
Name:		mozjs17
c67d24
Version:	17.0.0
c67d24
Release:	12%{?dist}
c67d24
License:	GPLv2+ or LGPLv2+ or MPLv1.1
c67d24
Group:		Development/Languages
c67d24
URL:		http://www.mozilla.org/js/
c67d24
Source0:	http://ftp.mozilla.org/pub/mozilla.org/js/mozjs%{version}.tar.gz
c67d24
BuildRequires:	pkgconfig(nspr)
c67d24
BuildRequires:	readline-devel
c67d24
BuildRequires:	/usr/bin/zip
c67d24
BuildRequires:	/usr/bin/python
c67d24
BuildRequires:	/usr/bin/autoconf-2.13
c67d24
c67d24
Patch0:		js17-build-fixes.patch
c67d24
# makes mozjs to match js from xul 21
c67d24
Patch1:		js17-jsval.patch
c67d24
Patch2:         mozbug746112-no-decommit-on-large-pages.patch
c67d24
Patch3:         0001-Move-JS_BYTES_PER_WORD-out-of-config.h.patch
c67d24
Patch4:         mozjs17-aarch64.patch
c67d24
Patch5:		mozjs17-aarch64-support-64K-pages.patch
c67d24
c67d24
%description
c67d24
JavaScript is the Netscape-developed object scripting language used in millions
c67d24
of web pages and server applications worldwide. Netscape's JavaScript is a
c67d24
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
c67d24
with only mild differences from the published standard.
c67d24
c67d24
%package devel
c67d24
Summary: Header files, libraries and development documentation for %{name}
c67d24
Group: Development/Libraries
c67d24
Requires: %{name} = %{version}-%{release}
c67d24
c67d24
%description devel
c67d24
This package contains the header files, static libraries and development
c67d24
documentation for %{name}. If you like to develop programs using %{name},
c67d24
you will need to install %{name}-devel.
c67d24
c67d24
%prep
c67d24
%setup -q -n mozjs%{version}
c67d24
# Delete bundled sources
c67d24
rm js/src/editline -rf
c67d24
rm js/src/ctypes/libffi -rf
c67d24
%patch0 -p1
c67d24
%patch1 -p1
c67d24
%patch2 -p1
c67d24
%patch3 -p1
c67d24
%patch4 -p1
c67d24
%patch5 -p1
c67d24
c67d24
%build
c67d24
chmod a+x configure
c67d24
(cd js/src && autoconf-2.13)
c67d24
%configure --disable-static --with-system-nspr --enable-threadsafe --enable-readline
c67d24
make %{?_smp_mflags}
c67d24
c67d24
%check
c67d24
cat > js/src/config/find_vanilla_new_calls << EOF
c67d24
#!/bin/bash
c67d24
exit 0
c67d24
EOF
c67d24
make -C js/src check
c67d24
c67d24
%install
c67d24
make install DESTDIR=%{buildroot}
c67d24
# For some reason the headers and pkg-config file are executable
c67d24
find %{buildroot}%{_includedir} -type f -exec chmod a-x {} \;
c67d24
chmod a-x  %{buildroot}%{_libdir}/pkgconfig/*.pc
c67d24
# Upstream does not honor --disable-static yet
c67d24
rm -f %{buildroot}%{_libdir}/*.a
c67d24
# This is also statically linked; once that is fixed that we could
c67d24
# consider shipping it.
c67d24
rm -f %{buildroot}%{_bindir}/js17
c67d24
c67d24
# However, delete js-config since everything should use
c67d24
# the pkg-config file.
c67d24
rm -f %{buildroot}%{_bindir}/js17-config
c67d24
c67d24
%post -p /sbin/ldconfig
c67d24
c67d24
%postun -p /sbin/ldconfig
c67d24
c67d24
%files
c67d24
%doc LICENSE README
c67d24
%{_libdir}/*.so
c67d24
c67d24
%files devel
c67d24
%{_libdir}/pkgconfig/*.pc
c67d24
%{_includedir}/js-17.0
c67d24
c67d24
%changelog
c67d24
* Fri Jul 11 2014 Colin Walters <walters@redhat.com> - 17.0.0-12
c67d24
- Add patch for aarch64
c67d24
- Fix for aarch64 64k pagesize. BZ#1076181 (Mark Salter <msalter@redhat.com>)
c67d24
- Resolves: #1027067
c67d24
c67d24
* Tue Mar 18 2014 Colin Walters <walters@redhat.com> - 17.0.0-10
c67d24
- Add patch to fix multilib conflict with -devel packages
c67d24
- Resolves: #1076420
c67d24
c67d24
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 17.0.0-9
c67d24
- Mass rebuild 2014-01-24
c67d24
c67d24
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 17.0.0-8
c67d24
- Mass rebuild 2013-12-27
c67d24
c67d24
* Mon Jun 17 2013 Dennis Gilmore <dennis@ausil.us> 17.0.0-7
c67d24
- disable failing find_vanilla_new_calls test 
c67d24
c67d24
* Fri Jun 07 2013 Colin Walters <walters@verbum.org> 17.0.0-6
c67d24
- Add patch for ppc/ppc64: https://bugzilla.redhat.com/show_bug.cgi?id=971519
c67d24
c67d24
* Fri Jun 07 2013 Colin Walters <walters@verbum.org> 17.0.0-5
c67d24
- Enable check: https://bugzilla.redhat.com/show_bug.cgi?id=971519
c67d24
c67d24
* Fri May 17 2013 Dan HorĂ¡k <dan[at]danny.cz> - 17.0.0-4
c67d24
- fix build on 64-bit big-endians
c67d24
c67d24
* Mon Apr 15 2013 Colin Walters <walters@verbum.org> 17.0.0-3
c67d24
- Delete js17, it is not used
c67d24
c67d24
* Sun Apr 14 2013 Peter Robinson <pbrobinson@fedoraproject.org> 17.0.0-2
c67d24
- Add disttag
c67d24
c67d24
* Mon Apr 01 2013 Colin Walters <walters@verbum.org> - 17.0.0-1
c67d24
- Spec file inherited from js.spec