--- a/ChangeLog Tue Sep 07 07:39:58 2010 +0000
+++ b/ChangeLog Tue Sep 07 07:42:03 2010 +0000
@@ -1,3 +1,11 @@
+2010-09-07 Simon Jin <[email protected]>
+
+ * SFEseed.spec:
+ * patches/seed-01-wall.diff:
+ * patches/seed-02-gettext.diff:
+ * patches/seed-03-util.diff:
+ * patches/seed-04-seed.diff:Init spec
+
2010-09-07 Simon Jin <[email protected]>
* SFEgnome-js-common.spec:Init spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEseed.spec Tue Sep 07 07:42:03 2010 +0000
@@ -0,0 +1,159 @@
+#
+# spec file for package seed
+#
+# Copyright (c) 2010 Sun Microsystems, Inc.
+#
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+#
+
+%include Solaris.inc
+%include default-depend.inc
+
+Summary: JavaScript interpreter
+Name: seed
+Version: 2.30.0
+Release: 1
+License: LGPL v3
+Group: Applications
+Source0: http://ftp.gnome.org/pub/GNOME/sources/seed/2.30/%{name}-%{version}.tar.bz2
+Patch0: seed-01-wall.diff
+Patch1: seed-02-gettext.diff
+Patch2: seed-03-util.diff
+Patch3: seed-04-seed.diff
+
+URL: http://live.gnome.org/Seed
+Distribution: Java Desktop System
+Vendor: Gnome Community
+
+
+BuildRequires: SUNWdbus
+BuildRequires: SFEgnome-js-common
+BuildRequires: SFEgjs
+BuildRequires: SUNWgtk2
+BuildRequires: SFEwebkitgtk
+BuildRequires: SFEmpfr
+BuildRequires: SUNWsqlite3-devel
+
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+Seed is a library and interpreter, dynamically bridging (through
+GObjectIntrospection) the WebKit JavaScriptCore engine, with the GNOME
+platform. Seed serves as something which enables you to write
+standalone applications in JavaScript, or easily enable your
+application to be extensible in JavaScript.
+
+
+%package devel
+Summary: Header files for seed library
+Group: Development/Libraries
+
+Requires: %{name} = %{version}-%{release}
+Requires: glib2-devel
+Requires: gobject-introspection-devel
+Requires: gtk-webkit-devel
+
+
+%description devel
+Header files for seed library.
+
+%package apidocs
+Summary: seed library API documentation
+Group: Documentation
+Requires: gtk-doc-common
+
+%description apidocs
+API documentation for seed library.
+
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+%build
+%ifos linux
+if [ -x /usr/bin/getconf ]; then
+ CPUS=`getconf _NPROCESSORS_ONLN`
+fi
+%else
+ CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+%endif
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+ CPUS=1
+fi
+
+
+intltoolize --copy --force --automake
+libtoolize --force
+aclocal
+autoheader
+automake -a -c -f
+autoconf
+
+./configure --prefix=%{_prefix} \
+ --sysconfdir=%{_sysconfdir} \
+ --libexecdir=%{_libexecdir} \
+ --localstatedir=%{_localstatedir} \
+ --mandir=%{_mandir} \
+ --disable-silent-rules \
+ --enable-mpfr-module=no
+
+make -j $CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+mv -f $RPM_BUILD_ROOT%{_docdir}/seed{,-%{version}}
+find $RPM_BUILD_ROOT -name "*.a" -o -name "*.la" -exec rm {} \;
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/seed
+%attr(755,root,root) %{_libdir}/libseed.so.*
+%attr(755,root,root) %{_libdir}/libseed.so
+%dir %{_libdir}/seed
+%attr(755,root,root) %{_libdir}/seed/libseed_cairo.so
+%attr(755,root,root) %{_libdir}/seed/libseed_canvas.so
+%attr(755,root,root) %{_libdir}/seed/libseed_dbusnative.so
+%attr(755,root,root) %{_libdir}/seed/libseed_example.so
+%attr(755,root,root) %{_libdir}/seed/libseed_ffi.so
+%attr(755,root,root) %{_libdir}/seed/libseed_gettext.so
+%attr(755,root,root) %{_libdir}/seed/libseed_gtkbuilder.so
+%attr(755,root,root) %{_libdir}/seed/libseed_libxml.so
+%attr(755,root,root) %{_libdir}/seed/libseed_multiprocessing.so
+%attr(755,root,root) %{_libdir}/seed/libseed_os.so
+%attr(755,root,root) %{_libdir}/seed/libseed_readline.so
+%attr(755,root,root) %{_libdir}/seed/libseed_sandbox.so
+%attr(755,root,root) %{_libdir}/seed/libseed_sqlite.so
+%{_datadir}/doc/seed
+%{_datadir}/seed
+%{_datadir}/gtk-doc
+%{_mandir}/man1/seed.1*
+
+%files devel
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_libdir}
+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/*
+%dir %attr (0755, root, bin) %{_includedir}
+%{_includedir}/*
+
+
+%changelog
+* Tue Sep 08 2010 - [email protected]
+- Init spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/seed-01-wall.diff Tue Sep 07 07:42:03 2010 +0000
@@ -0,0 +1,81 @@
+diff -r 0f7b6a29f3d0 configure.ac
+--- a/configure.ac Tue Sep 07 11:40:25 2010 +0800
++++ b/configure.ac Tue Sep 07 11:44:37 2010 +0800
+@@ -333,10 +333,9 @@
+
+ if test "x$enable_debug" = "xyes"; then
+ SEED_DEBUG_CFLAGS="-DSEED_ENABLE_DEBUG -g"
+- CFLAGS="-O0 -Wall"
++ CFLAGS="-O0 "
+ else
+ SEED_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
+- CFLAGS="-Wall"
+
+ if test "x$need_debug" = "xyes"; then
+ AC_MSG_ERROR([debug must be enabled in order to enable profiling.])
+diff -r aacdb4c5821d libseed/Makefile.am
+--- a/libseed/Makefile.am Tue Sep 07 11:55:56 2010 +0800
++++ b/libseed/Makefile.am Tue Sep 07 12:50:21 2010 +0800
+@@ -26,7 +26,6 @@
+ seed-path.h
+
+ libseed_la_CFLAGS = \
+- -Wall \
+ $(GOBJECT_INTROSPECTION_CFLAGS) \
+ $(WEBKIT_CFLAGS) \
+ $(SEED_OSX_CFLAGS) \
+diff -r aacdb4c5821d modules/cairo/Makefile.am
+--- a/modules/cairo/Makefile.am Tue Sep 07 11:55:56 2010 +0800
++++ b/modules/cairo/Makefile.am Tue Sep 07 12:50:21 2010 +0800
+@@ -23,7 +23,6 @@
+ seed-cairo-enums.c
+
+ libseed_cairo_la_CFLAGS = \
+- -Wall \
+ $(GOBJECT_INTROSPECTION_CFLAGS) \
+ -I@top_srcdir@/libseed/ \
+ $(CAIRO_CFLAGS) \
+diff -r aacdb4c5821d modules/dbus/Makefile.am
+--- a/modules/dbus/Makefile.am Tue Sep 07 11:55:56 2010 +0800
++++ b/modules/dbus/Makefile.am Tue Sep 07 12:50:21 2010 +0800
+@@ -26,7 +26,6 @@
+
+
+ libseed_dbusnative_la_CFLAGS = \
+- -Wall \
+ -I@top_srcdir@/libseed/ \
+ $(GOBJECT_INTROSPECTION_CFLAGS) \
+ $(DBUS_CFLAGS) \
+diff -r aacdb4c5821d modules/ffi/Makefile.am
+--- a/modules/ffi/Makefile.am Tue Sep 07 11:55:56 2010 +0800
++++ b/modules/ffi/Makefile.am Tue Sep 07 12:50:21 2010 +0800
+@@ -16,7 +16,6 @@
+
+ libseed_ffi_la_CFLAGS = \
+ -I@top_srcdir@/libseed/ \
+- -Wall \
+ $(GOBJECT_INTROSPECTION_CFLAGS) \
+ $(SEED_DEBUG_CFLAGS) \
+ $(SEED_PROFILE_CFLAGS) \
+diff -r aacdb4c5821d src/Makefile.am
+--- a/src/Makefile.am Tue Sep 07 11:55:56 2010 +0800
++++ b/src/Makefile.am Tue Sep 07 12:50:21 2010 +0800
+@@ -10,7 +10,6 @@
+ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
+ -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
+ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
+- -Wall \
+ $(SEED_DEBUG_CFLAGS) \
+ $(SEED_PROFILE_CFLAGS) \
+ $(GOBJECT_INTROSPECTION_CFLAGS) \
+diff -r aacdb4c5821d tests/c/Makefile.am
+--- a/tests/c/Makefile.am Tue Sep 07 11:55:56 2010 +0800
++++ b/tests/c/Makefile.am Tue Sep 07 12:50:21 2010 +0800
+@@ -13,7 +13,6 @@
+ test-common.h
+
+ test_CFLAGS = \
+- -Wall \
+ $(GOBJECT_INTROSPECTION_CFLAGS)
+
+ test_LDFLAGS = \
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/seed-02-gettext.diff Tue Sep 07 07:42:03 2010 +0000
@@ -0,0 +1,22 @@
+diff -r b0b1a74405d9 modules/gettext/seed-gettext.c
+--- a/modules/gettext/seed-gettext.c Tue Sep 07 13:33:11 2010 +0800
++++ b/modules/gettext/seed-gettext.c Tue Sep 07 13:34:09 2010 +0800
+@@ -313,12 +313,12 @@
+ DEFINE_ENUM_MEMBER(ns_ref, LC_MONETARY);
+ DEFINE_ENUM_MEMBER(ns_ref, LC_MESSAGES);
+ DEFINE_ENUM_MEMBER(ns_ref, LC_ALL);
+- DEFINE_ENUM_MEMBER(ns_ref, LC_PAPER);
+- DEFINE_ENUM_MEMBER(ns_ref, LC_NAME);
+- DEFINE_ENUM_MEMBER(ns_ref, LC_ADDRESS);
+- DEFINE_ENUM_MEMBER(ns_ref, LC_TELEPHONE);
+- DEFINE_ENUM_MEMBER(ns_ref, LC_MEASUREMENT);
+- DEFINE_ENUM_MEMBER(ns_ref, LC_IDENTIFICATION);
++ //DEFINE_ENUM_MEMBER(ns_ref, LC_PAPER);
++ //DEFINE_ENUM_MEMBER(ns_ref, LC_NAME);
++ //DEFINE_ENUM_MEMBER(ns_ref, LC_ADDRESS);
++ //DEFINE_ENUM_MEMBER(ns_ref, LC_TELEPHONE);
++ //DEFINE_ENUM_MEMBER(ns_ref, LC_MEASUREMENT);
++ //DEFINE_ENUM_MEMBER(ns_ref, LC_IDENTIFICATION);
+ DEFINE_ENUM_MEMBER(ns_ref, LC_CTYPE);
+
+ return ns_ref;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/seed-03-util.diff Tue Sep 07 07:42:03 2010 +0000
@@ -0,0 +1,11 @@
+diff -r a51519fc4cf3 modules/os/Makefile.am
+--- a/modules/os/Makefile.am Tue Sep 07 13:53:55 2010 +0800
++++ b/modules/os/Makefile.am Tue Sep 07 13:54:44 2010 +0800
+@@ -17,7 +17,6 @@
+ libseed_os_la_LDFLAGS = \
+ -module -avoid-version \
+ $(GOBJECT_INTROSPECTION_LDFLAGS) \
+- -lutil \
+ $(SEED_DEBUG_LDFLAGS) \
+ $(SEED_PROFILE_LIBS)
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/seed-04-seed.diff Tue Sep 07 07:42:03 2010 +0000
@@ -0,0 +1,23 @@
+diff -r b7fff2381b7f modules/os/seed-os.c
+--- a/modules/os/seed-os.c Tue Sep 07 14:30:09 2010 +0800
++++ b/modules/os/seed-os.c Tue Sep 07 14:31:28 2010 +0800
+@@ -1109,14 +1109,14 @@
+ // OS_DEFINE_QUICK_ENUM (O_SHLOCK);
+ // OS_DEFINE_QUICK_ENUM (O_EXLOCK);
+
+- OS_DEFINE_QUICK_ENUM (O_ASYNC);
++ //OS_DEFINE_QUICK_ENUM (O_ASYNC);
+ #if defined (O_DIRECT)
+- OS_DEFINE_QUICK_ENUM (O_DIRECT);
++ //OS_DEFINE_QUICK_ENUM (O_DIRECT);
+ #endif
+- OS_DEFINE_QUICK_ENUM (O_DIRECTORY);
+- OS_DEFINE_QUICK_ENUM (O_NOFOLLOW);
++ //OS_DEFINE_QUICK_ENUM (O_DIRECTORY);
++ //OS_DEFINE_QUICK_ENUM (O_NOFOLLOW);
+ #if defined (O_NOATIME)
+- OS_DEFINE_QUICK_ENUM (O_NOATIME);
++ //OS_DEFINE_QUICK_ENUM (O_NOATIME);
+ #endif
+
+ OS_DEFINE_QUICK_ENUM (SEEK_SET);