Commit 2afd1151 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add mozjs24

parent 4bd59285
......@@ -40,7 +40,7 @@ PACKAGES = \
hicolor-icon-theme libcroco vala librsvg2 adwaita-icon-theme \
gnome-sdk gnome-platform dejavu-fonts abattis-cantarell-fonts \
gtk2 gnome-themes-standard libproxy gsettings-desktop-schemas glib-networking libsoup \
dconf gvfs desktop-file-utils json-glib libnotify vte \
dconf gvfs desktop-file-utils json-glib libnotify vte mozjs24 \
$(NULL)
ALL_SPECS =$(PACKAGES:%=$(SPECS)/%.spec)
......
From 0e27b45a3409e0a5c23e63af9e86048e1e7661da Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Wed, 18 Jan 2012 22:25:47 -0500
Subject: [PATCH] build: Add toplevel trampoline configure/Makefile
These just invoke the ones in js/src.
---
Makefile | 5 +++++
configure | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
create mode 100644 Makefile
create mode 100755 configure
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..98de844
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+all:
+ cd js/src && $(MAKE)
+
+install:
+ cd js/src && $(MAKE) install DESTDIR=$(DESTDIR)
diff --git a/configure b/configure
new file mode 100755
index 0000000..93ef339
--- /dev/null
+++ b/configure
@@ -0,0 +1,5 @@
+#!/bin/sh
+# http://people.gnome.org/~walters/docs/build-api.txt
+echo \#buildapi-variable-no-builddir >/dev/null
+cd js/src
+exec ./configure "$@"
--
1.7.1
Summary: JavaScript interpreter and libraries
Name: mozjs24
Version: 24.2.0
Release: 1%{?dist}
License: MPLv2.0
Group: Development/Languages
URL: http://www.mozilla.org/js/
Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-%{version}.tar.bz2
BuildRequires: gnome-sdk-base
Patch0: mozjs-build-fixes.patch
%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.
%package devel
Summary: Header files, libraries and development documentation for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.
%prep
%setup -q -n mozjs-%{version}
# Delete bundled sources
rm js/src/editline -rf
rm js/src/ctypes/libffi -rf
%patch0 -p1
chmod a+x configure
%build
%configure \
--disable-static \
--with-system-nspr \
--enable-threadsafe \
--enable-readline \
--enable-xterm-updates
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
# For some reason the headers and pkg-config file are executable
find %{buildroot}%{_includedir} -type f -exec chmod a-x {} \;
chmod a-x %{buildroot}%{_libdir}/pkgconfig/*.pc
# Upstream does not honor --disable-static yet
rm -f %{buildroot}%{_libdir}/*.a
# This is also statically linked; once that is fixed that we could
# consider shipping it.
rm -f %{buildroot}%{_bindir}/js24
# However, delete js-config since everything should use
# the pkg-config file.
rm -f %{buildroot}%{_bindir}/js24-config
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc LICENSE README
%{_libdir}/*.so
%files devel
%{_libdir}/pkgconfig/*.pc
%{_includedir}/mozjs-24
%changelog
* Tue Nov 25 2014 Alexander Larsson <alexl@redhat.com> - 24.2.0-1
- Initial version, based on F21
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment