Compare commits
No commits in common. "rawhide" and "f14" have entirely different histories.
7 changed files with 214 additions and 1 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
seed-2.31.5.tar.bz2
|
||||
/seed-2.31.91.tar.bz2
|
||||
23
README.Fedora
Normal file
23
README.Fedora
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
There is a known problem importing the Gtk library from seed on
|
||||
systems where seed is built against Gtk2, if Gtk3 is also installed;
|
||||
this is because both Gtk versions install gobject-introspection
|
||||
typelib files in the repository, and unless the desired version is
|
||||
explicitly specified.
|
||||
|
||||
Simply importing Gtk fails as such:
|
||||
|
||||
> imports.gi.Gtk
|
||||
seed: symbol lookup error: /usr/lib64/libgtk-x11-3.0.so.0: undefined
|
||||
symbol: g_application_get_type
|
||||
|
||||
The workaround is to specify the version as such:
|
||||
|
||||
> // note the quotes; otherwise 2.0 gets evaluated as just 2
|
||||
> imports.gi.versions.Gtk = "2.0";
|
||||
2.0
|
||||
> Gtk = imports.gi.Gtk;
|
||||
[object Object]
|
||||
>
|
||||
|
||||
See example 3 on the Reference Manual's Importer section:
|
||||
http://library.gnome.org/devel/seed/stable/seed-importer.html
|
||||
|
|
@ -1 +0,0 @@
|
|||
webkitgtk3 retired, doesn't build cleanly against webkitgtk4, no stable release for years and no dependents
|
||||
21
seed-gdk3.patch
Normal file
21
seed-gdk3.patch
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
diff -up seed-2.31.5/configure.ac.gdk3 seed-2.31.5/configure.ac
|
||||
--- seed-2.31.5/configure.ac.gdk3 2010-07-12 02:04:34.000000000 -0400
|
||||
+++ seed-2.31.5/configure.ac 2010-07-15 21:13:07.214356999 -0400
|
||||
@@ -98,7 +98,7 @@ if test x"$want_canvas_module" == x"yes"
|
||||
PKG_CHECK_MODULES(CAIRO, cairo)
|
||||
AC_SUBST(CAIRO_CFLAGS)
|
||||
AC_SUBST(CAIRO_LDFLAGS)
|
||||
- PKG_CHECK_MODULES(GDK, gdk-2.0)
|
||||
+ PKG_CHECK_MODULES(GDK, gdk-3.0)
|
||||
AC_SUBST(GDK_CFLAGS)
|
||||
AC_SUBST(GDK_LDFLAGS)
|
||||
fi
|
||||
@@ -225,7 +225,7 @@ AC_ARG_ENABLE(gtkbuilder-module,
|
||||
[want_gtkbuilder_module=$enableval],[want_gtkbuilder_module="yes"])
|
||||
|
||||
if test x"$want_gtkbuilder_module" == x"yes" ; then
|
||||
- PKG_CHECK_MODULES(GTK, gtk+-2.0)
|
||||
+ PKG_CHECK_MODULES(GTK, gtk+-3.0)
|
||||
AC_SUBST(GTK_CFLAGS)
|
||||
AC_SUBST(GTK_LDFLAGS)
|
||||
fi
|
||||
10
seed-libs.patch
Normal file
10
seed-libs.patch
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
--- seed-2.31.5/src/Makefile.am 2010-07-10 02:52:41.000000000 -0400
|
||||
+++ hacked/src/Makefile.am 2010-07-15 00:04:59.194956004 -0400
|
||||
@@ -23,4 +23,6 @@
|
||||
$(WEBKIT_LDFLAGS)
|
||||
|
||||
seed_LDADD = \
|
||||
- ../libseed/libseed.la
|
||||
+ ../libseed/libseed.la \
|
||||
+ $(GOBJECT_INTROSPECTION_LIBS) \
|
||||
+ $(WEBKIT_LIBS)
|
||||
157
seed.spec
Normal file
157
seed.spec
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
Name: seed
|
||||
Version: 2.31.91
|
||||
Release: 2%{?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/2.31/seed-%{version}.tar.bz2
|
||||
Source1: README.Fedora
|
||||
|
||||
BuildRequires: dbus-glib-devel
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: gnome-js-common-devel
|
||||
BuildRequires: intltool
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: sqlite-devel
|
||||
%if 0%{?fedora} > 14
|
||||
BuildRequires: webkitgtk3-devel
|
||||
%else
|
||||
BuildRequires: webkitgtk-devel
|
||||
%endif
|
||||
BuildRequires: gtk-doc
|
||||
|
||||
Patch0: seed-libs.patch
|
||||
Patch1: seed-gdk3.patch
|
||||
|
||||
BuildRequires: automake autoconf libtool
|
||||
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}
|
||||
Requires: gtk-doc
|
||||
|
||||
%description doc
|
||||
The %{name}-doc package contains documentation for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
cp -p %{SOURCE1} .
|
||||
%patch0 -p1 -b .libs
|
||||
%if 0%{?fedora} > 14
|
||||
%patch1 -p1 -b .gdk3
|
||||
%endif
|
||||
|
||||
mkdir m4
|
||||
autoreconf -i -f
|
||||
|
||||
# add lib64 to dlsearch_path_spec
|
||||
sed -i.libdir_syssearch -e \
|
||||
'/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib /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}
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING NEWS README README.Fedora
|
||||
%{_bindir}/seed
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/seed
|
||||
%{_datadir}/seed
|
||||
%{_datadir}/man/man1/seed.1.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/seed
|
||||
%{_libdir}/pkgconfig/seed.pc
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc devdocs/*
|
||||
%{_datadir}/gtk-doc/html/seed
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Nov 5 2010 Michel Salim <salimma@fedoraproject.org> - 2.31.91-2
|
||||
- Only build against GTK+ 3.0 on Fedora > 14
|
||||
|
||||
* Wed Sep 29 2010 Colin Walters <walters@verbum.org> - 2.31.91-1
|
||||
- New upstream version
|
||||
|
||||
* Mon Jul 12 2010 Colin Walters <walters@verbum.org> - 2.31.1-3
|
||||
- Rebuild against new gobject-introspection
|
||||
|
||||
* Mon Jul 5 2010 Michel Salim <salimma@fedoraproject.org> - 2.31.1-2
|
||||
- Rebuild for webkitgtk soname change
|
||||
|
||||
* Tue Jun 22 2010 Michel Salim <salimma@fedoraproject.org> - 2.31.1-1
|
||||
- Update to 2.31.1
|
||||
|
||||
* Fri Jun 18 2010 Michel Salim <salimma@fedoraproject.org> - 2.30.0-2
|
||||
- Incorporate review recommendations (bz #600638)
|
||||
- Remove unneeded shebang in repl.js
|
||||
- Make -doc noarch
|
||||
|
||||
* Mon Mar 29 2010 Michel Salim <salimma@fedoraproject.org> - 2.30.0-1
|
||||
- Initial package
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
024aff0a69761f77bc346bbad1a2489b seed-2.31.91.tar.bz2
|
||||
Loading…
Add table
Add a link
Reference in a new issue