diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..58823a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/seed-3.1.1.tar.bz2 +/seed-3.2.0.tar.xz diff --git a/dead.package b/dead.package deleted file mode 100644 index d08f27b..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -webkitgtk3 retired, doesn't build cleanly against webkitgtk4, no stable release for years and no dependents diff --git a/seed-3.0.0-multilib.patch b/seed-3.0.0-multilib.patch new file mode 100644 index 0000000..086480b --- /dev/null +++ b/seed-3.0.0-multilib.patch @@ -0,0 +1,31 @@ +--- seed-3.0.0/extensions/Seed.js.in.multilib 2011-02-22 23:44:01.000000000 +0100 ++++ seed-3.0.0/extensions/Seed.js.in 2011-08-07 23:22:09.249981721 +0200 +@@ -174,6 +174,7 @@ + if(!imports.searchPath || (imports.searchPath.length == 0)) + { + imports.searchPath = [ "%gnomejsdir%", ++ "%pkglib64dir%", + "%pkglibdir%", + "%pkgdatadir%", + "/usr/local/lib/seed", +--- seed-3.0.0/extensions/Makefile.in.multilib 2011-04-02 04:58:19.000000000 +0200 ++++ seed-3.0.0/extensions/Makefile.in 2011-08-07 23:25:36.180525310 +0200 +@@ -18,7 +18,8 @@ + VPATH = @srcdir@ + pkgdatadir = $(datadir)/@PACKAGE@ + pkgincludedir = $(includedir)/@PACKAGE@ +-pkglibdir = $(libdir)/@PACKAGE@ ++pkglib64dir = $(prefix)/lib64/@PACKAGE@ ++pkglibdir = $(prefix)/lib/@PACKAGE@ + pkglibexecdir = $(libexecdir)/@PACKAGE@ + am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd + install_sh_DATA = $(install_sh) -c -m 644 +@@ -510,7 +511,7 @@ + + + Seed.js: Seed.js.in +- $(AM_V_GEN) $(SED) -e "s|%pkglibdir%|$(pkglibdir)@SEED_GTK_VERSION@|" -e "s|%pkgdatadir%|$(pkgdatadir)@SEED_GTK_VERSION@|" -e "s|%gnomejsdir%|$(GNOME_JS_DIR)|" $< > $@ ++ $(AM_V_GEN) $(SED) -e "s|%pkglib64dir%|$(pkglib64dir)@SEED_GTK_VERSION@|" -e "s|%pkglibdir%|$(pkglibdir)@SEED_GTK_VERSION@|" -e "s|%pkgdatadir%|$(pkgdatadir)@SEED_GTK_VERSION@|" -e "s|%gnomejsdir%|$(GNOME_JS_DIR)|" $< > $@ + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/seed-3.1.1-paramspec.patch b/seed-3.1.1-paramspec.patch new file mode 100644 index 0000000..e3402bc --- /dev/null +++ b/seed-3.1.1-paramspec.patch @@ -0,0 +1,33 @@ +From 3d87f450ed0f654b4125c685f0284c4fec5f040d Mon Sep 17 00:00:00 2001 +From: Colin Walters +Date: Thu, 16 Jun 2011 15:27:34 -0400 +Subject: [PATCH] HACK: Don't bind ParamSpec + +In g-i GObject.ParamSpec changed to a class and not a structure. The +current manual seed binding blows up on this. I don't know seed/JSCore +enough to fix it, tihs just stubs out the manual bindings. +--- + libseed/seed-gtype.c | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/libseed/seed-gtype.c b/libseed/seed-gtype.c +index 04be107..2e9e315 100644 +--- a/libseed/seed-gtype.c ++++ b/libseed/seed-gtype.c +@@ -1032,11 +1032,13 @@ seed_define_gtype_functions (JSContextRef ctx) + + proto = seed_struct_prototype (ctx, objectclass_info); + ++#if 0 + paramspec_info = g_irepository_find_by_name (NULL, "GObject", "ParamSpec"); + proto = seed_struct_prototype (ctx, paramspec_info); + + seed_create_function (ctx, "get", &seed_param_getter_invoked, proto); + seed_create_function (ctx, "set", &seed_param_setter_invoked, proto); ++#endif + } + + void +-- +1.7.5.2 + diff --git a/seed.spec b/seed.spec new file mode 100644 index 0000000..76882e3 --- /dev/null +++ b/seed.spec @@ -0,0 +1,182 @@ +Name: seed +Version: 3.2.0 +Release: 1%{?dist} +Summary: GNOME JavaScript interpreter + +Group: Development/Languages +License: LGPLv3+ +URL: http://live.gnome.org/Seed +Source0: http://ftp.gnome.org/pub/gnome/sources/seed/3.1/seed-%{version}.tar.xz +# Seed.js multilib fix +Patch0: seed-3.0.0-multilib.patch + +BuildRequires: intltool +BuildRequires: mpfr-devel +BuildRequires: readline-devel +BuildRequires: pkgconfig(dbus-glib-1) +BuildRequires: pkgconfig(gnome-js-common) +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(libffi) +BuildRequires: pkgconfig(sqlite3) +BuildRequires: pkgconfig(webkitgtk-3.0) +BuildRequires: gtk-doc + +Requires: gnome-js-common + +%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: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package doc +Summary: Documentation files for %{name} +Group: Documentation +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +The %{name}-doc package contains documentation for +developing applications that use %{name}. + + +%prep +%setup -q +%patch0 -p1 -b .multilib + +# add lib64 to dlsearch_path_spec +sed -i.libdir_syssearch -e \ + '/sys_lib_dlsearch_path_spec/s|/lib /usr/lib |/lib /lib64 /usr/lib /usr/lib64 |' \ + configure +sed -i.cflags -e \ + 's|^\([ \t][ \t]*\)CFLAGS=\"[^\$].*$|\1true|' \ + configure + +# remove unneeded shebang +(cd extensions && + touch -r repl.js{,.timestamp} && + sed -i '1,2d' repl.js && + touch -r repl.js{.timestamp,} && + rm repl.js.timestamp) + + +%build +%configure \ +%if 0%{?fedora} > 14 + --with-webkit=3.0 +%else + --with-webkit=1.0 +%endif +make V=1 %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';' + +# grab developer docs +mv $RPM_BUILD_ROOT%{_docdir}/seed devdocs +# remove files already bundled with main package +rm devdocs/{AUTHORS,COPYING,INSTALL,README} + + +%check +# currently tests the installed version of seed, and requires X +#make check + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING NEWS README +%{_bindir}/seed +%{_libdir}/*.so.* +%{_libdir}/seed-gtk3 +%{_datadir}/seed-gtk3 +%{_datadir}/man/man1/seed.1.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/seed-gtk3 +%{_libdir}/pkgconfig/seed.pc +%{_libdir}/*.so + +%files doc +%defattr(-,root,root,-) +%doc devdocs/* +%dir %{_datadir}/gtk-doc +%dir %{_datadir}/gtk-doc/html +%{_datadir}/gtk-doc/html/seed + + +%changelog +* Tue Sep 27 2011 Ray - 3.2.0-1 +- Update to 3.2.0 + +* Sun Aug 7 2011 Michel Salim - 3.1.1-2 +- Multilib fix: Seed.js now searches both lib64 and lib directories +- Documentation subpackage no longer depends on gtk-doc (# 707571) + +* Sun Jul 31 2011 Michel Salim - 3.1.1-1 +- Update to 3.1.1 + +* Sun Apr 3 2011 Christopher Aillon - 3.0.0-1 +- Update to 3.0.0 + +* Tue Feb 22 2011 Matthias Clasen - 2.91.90-1 +- Update to 2.91.90 + +* Fri Feb 11 2011 Matthias Clasen - 2.31.91-7 +- Rebuild against newer gtk + +* Wed Feb 09 2011 Fedora Release Engineering - 2.31.91-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Feb 2 2011 Matthias Clasen - 2.31.91-5 +- Rebuild against newer gtk + +* Sun Jan 9 2011 Matthias Clasen - 2.31.91-4 +- Rebuild against newer gtk + +* Fri Dec 3 2010 Matthias Clasen - 2.31.91-3 +- Rebuild against newer gtk + +* Fri Nov 5 2010 Michel Salim - 2.31.91-2 +- Only build against GTK+ 3.0 on Fedora > 14 + +* Wed Sep 29 2010 Colin Walters - 2.31.91-1 +- New upstream version + +* Mon Jul 12 2010 Colin Walters - 2.31.1-3 +- Rebuild against new gobject-introspection + +* Mon Jul 5 2010 Michel Salim - 2.31.1-2 +- Rebuild for webkitgtk soname change + +* Tue Jun 22 2010 Michel Salim - 2.31.1-1 +- Update to 2.31.1 + +* Fri Jun 18 2010 Michel Salim - 2.30.0-2 +- Incorporate review recommendations (bz #600638) +- Remove unneeded shebang in repl.js +- Make -doc noarch + +* Mon Mar 29 2010 Michel Salim - 2.30.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..fc22991 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +792ac48542019bd14f8d639a9e401c0a seed-3.2.0.tar.xz