Blame SPECS/mozjs17.spec

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