Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Fedora Release Engineering
384c40de8c dist-git conversion 2010-07-29 12:20:25 +00:00
16cd3b6163 - Incorporate review recommendations (bz #600638)
- Remove unneeded shebang in repl.js
- Make -doc noarch
2010-06-22 18:53:33 +00:00
551c07cba3 Initialize branch F-13 for seed 2010-06-21 02:36:14 +00:00
6 changed files with 135 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
seed-2.30.0.tar.bz2

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: seed
# $Id$
NAME := seed
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1,11 @@
--- seed-2.30.0/src/Makefile.in.fix-implicit-dso 2010-03-29 05:40:46.000000000 +0200
+++ seed-2.30.0/src/Makefile.in 2010-03-29 14:11:59.126903476 +0200
@@ -293,7 +293,7 @@
$(SEED_PROFILE_LIBS) \
$(LIBFFI_LDFLAGS) \
$(GOBJECT_INTROSPECTION_LDFLAGS) \
- $(WEBKIT_LDFLAGS)
+ $(WEBKIT_LDFLAGS) `pkg-config --libs gtk+-2.0`
seed_LDADD = \
../libseed/libseed.la

122
seed.spec Normal file
View file

@ -0,0 +1,122 @@
%global mainver 2.30
Name: seed
Version: %{mainver}.0
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/%{mainver}/seed-%{version}.tar.bz2
Patch0: seed-2.30.0-fix-implicit-dso.patch
BuildRequires: dbus-glib-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gnome-js-common-devel
BuildRequires: intltool
BuildRequires: mpfr-devel
BuildRequires: readline-devel
BuildRequires: sqlite-devel
BuildRequires: webkitgtk-devel
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}
Requires: gtk-doc
%description doc
The %{name}-doc package contains documentation for
developing applications that use %{name}.
%prep
%setup -q
%patch0 -p1 -b .fix-implicit-dso
# 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
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
%{_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 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

View file

@ -0,0 +1 @@
dd09d22c6a06b4bbef7320bb6a715c0f seed-2.30.0.tar.bz2