File seed.spec of Package seed

#
# spec file for package seed (Version 2.28.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           seed
BuildRequires:  cairo-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  gnome-js-common
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libffi-devel
BuildRequires:  libxml2-devel
BuildRequires:  libwebkit-devel
BuildRequires:  mpfr-devel
BuildRequires:  readline-devel
BuildRequires:  sqlite3-devel
License:        LGPL v3 or later
Group:          Development/Libraries/GNOME
Version:        2.28.0
Release:        1
Summary:        JavaScript bindings based on gobject-introspection and WebKit
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM seed-find_extensions_in_libdir.patch bgo#597398 dimstar@opensuse.org -- libseed uses the wrong path to find extensions.
Patch0:         seed-find_extensions_in_libdir.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Seed is a library and interpreter, dynamically bridging (through
gobject-introspection) the WebKit JavaScriptCore engine with the GObject type
system. In a more concrete sense, Seed enables you to immediately write
applications around a significant portion of the GNOME platform, and easily
embed JavaScript as a scripting language in your GObject library.

%package doc
License:        LGPL v3 or later ; GPL v2 or later
Summary:        JavaScript bindings based on gobject-introspection and WebKit
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}

%description doc
Seed is a library and interpreter, dynamically bridging (through
gobject-introspection) the WebKit JavaScriptCore engine with the GObject type
system. In a more concrete sense, Seed enables you to immediately write
applications around a significant portion of the GNOME platform, and easily
embed JavaScript as a scripting language in your GObject library.

%package -n libseed0
License:        LGPL v3 or later
Summary:        JavaScript bindings based on gobject-introspection and WebKit
Group:          Development/Libraries/GNOME
Recommends:     gir-repository
Recommends:     gnome-js-common
Obsoletes:      libseed-0 <= %{version}
Provides:       libseed-0 = %{version}

%description -n libseed0
Seed is a library and interpreter, dynamically bridging (through
gobject-introspection) the WebKit JavaScriptCore engine with the GObject type
system. In a more concrete sense, Seed enables you to immediately write
applications around a significant portion of the GNOME platform, and easily
embed JavaScript as a scripting language in your GObject library.

%package -n libseed-devel
License:        LGPL v3 or later
Summary:        JavaScript bindings based on gobject-introspection and WebKit
Group:          Development/Libraries/GNOME
Requires:       libseed0 = %{version}
Requires:       glib2-devel
Requires:       gobject-introspection-devel
Requires:       libwebkit-devel
# Just a helper provides
Provides:       seed-devel

%description -n libseed-devel
Seed is a library and interpreter, dynamically bridging (through
gobject-introspection) the WebKit JavaScriptCore engine with the GObject type
system. In a more concrete sense, Seed enables you to immediately write
applications around a significant portion of the GNOME platform, and easily
embed JavaScript as a scripting language in your GObject library.

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--disable-static
%__make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +

%clean
rm -rf %{buildroot}

%post -n libseed0 -p /sbin/ldconfig

%postun -n libseed0 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man?/*.*

%files doc
%defattr(-,root,root)
%doc %{_datadir}/doc/seed

%files -n libseed0
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%{_datadir}/seed
%{_libdir}/*.so.*
%dir %{_libdir}/seed
%{_libdir}/seed/*.so

%files -n libseed-devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/seed

%changelog
openSUSE Build Service is sponsored by