Blame SPECS/mozjs17.spec

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