File WebKitGtk.spec of Package WebKitGtk

#
# spec file for package WebKitGtk (Version 1.0.29509)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           WebKitGtk
Url:            http://webkit.org/
BuildRequires:  bison curl-devel flex gperf gtk2-devel libicu-devel libqt4-devel libxslt-devel sqlite-devel
License:        LGPL v2.0 only; LGPL v2.0 or later
Group:          Development/Libraries/C and C++
Summary:        Library for rendering web content, GTK+ Port
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Version:        1.0.34342
Release:        1
%define rversion r34342
Source:         WebKit-%{rversion}.tar.bz2

%description
WebKit is a web content engine, derived from KHTML and KJS from KDE,
and used primarily in Apple's Safari browser.  It is made to be
embedded in other applications, such as mail readers, or web browsers.

It is able to display content such as HTML, SVG, XML, and others. It
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
more.



Authors:
--------
    The KDE Team <kde@kde.org>
    Apple Computer, Inc.
    Trolltech ASA
    Google Inc.
    Nokia Corporation
    Staikos Computing Services Inc. <info@staikos.net>

%package -n libWebKitGtk0
License:        LGPL v2.0 only; LGPL v2.0 or later
Group:          Development/Libraries/C and C++
Summary:        Library for rendering web content, GTK+ Port

%description -n libWebKitGtk0
WebKit is a web content engine, derived from KHTML and KJS from KDE,
and used primarily in Apple's Safari browser.  It is made to be
embedded in other applications, such as mail readers, or web browsers.

It is able to display content such as HTML, SVG, XML, and others. It
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
more.



Authors:
--------
    The KDE Team <kde@kde.org>
    Apple Computer, Inc.
    Trolltech ASA
    Google Inc.
    Nokia Corporation
    Staikos Computing Services Inc. <info@staikos.net>

%package -n WebKitGtk-devel
License:        LGPL v2.0 only; LGPL v2.0 or later
Group:          Development/Libraries/C and C++
Summary:        Library for rendering web content, GTK+ Port
Requires:       gtk2-devel libqt4-devel WebKitGtk

%description -n WebKitGtk-devel
WebKit is a web content engine, derived from KHTML and KJS from KDE,
and used primarily in Apple's Safari browser.  It is made to be
embedded in other applications, such as mail readers, or web browsers.

It is able to display content such as HTML, SVG, XML, and others. It
also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and
more.



Authors:
--------
    The KDE Team <kde@kde.org>
    Apple Computer, Inc.
    Trolltech ASA
    Google Inc.
    Nokia Corporation
    Staikos Computing Services Inc. <info@staikos.net>

%prep
%setup -q -n WebKit-%rversion

%build
  mkdir -p build
  cd build
  qmake -r OUTPUT_DIR="$PWD" \
    QMAKE_STRIP=/bin/true \
    QMAKE_RPATH= \
    QMAKE_CFLAGS="$RPM_OPT_FLAGS" \
    QMAKE_CXXFLAGS="$RPM_OPT_FLAGS" \
    QMAKE_LFLAGS="-Wl,--as-needed" \
    VERSION=0 \
    CONFIG-=qt CONFIG+=gtk-port\
    WEBKIT_INC_DIR=/usr/include/WebKit \
    WEBKIT_LIB_DIR=/usr/%_lib \
    ../WebKit.pro
  make %{?jobs:-j %jobs}

%install
  cd build
  make INSTALL_ROOT=${RPM_BUILD_ROOT} install
  mkdir -p ${RPM_BUILD_ROOT}/usr/%_lib/WebKit/
  cp WebKitTools/GtkLauncher/GtkLauncher ${RPM_BUILD_ROOT}/usr/%_lib/WebKit/

%post -n libWebKitGtk0 -p /sbin/ldconfig

%postun -n libWebKitGtk0 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -n libWebKitGtk0
%defattr(-,root,root)
%doc JavaScriptCore/COPYING.LIB WebCore/README WebCore/LICENSE-APPLE WebCore/LICENSE-LGPL-2 WebCore/LICENSE-LGPL-2.1
/usr/%_lib/libWebKitGtk.so.*

%files -n WebKitGtk-devel
%defattr(-,root,root)
%doc JavaScriptCore/COPYING.LIB WebCore/README WebCore/LICENSE-APPLE WebCore/LICENSE-LGPL-2 WebCore/LICENSE-LGPL-2.1
/usr/%_lib/libWebKitGtk.so
/usr/%_lib/libWebKitGtk.prl
/usr/%_lib/pkgconfig/WebKitGtk.pc
/usr/include/WebKit

%files
%defattr(-,root,root)
%doc JavaScriptCore/COPYING.LIB WebCore/README WebCore/LICENSE-APPLE WebCore/LICENSE-LGPL-2 WebCore/LICENSE-LGPL-2.1
%dir /usr/%_lib/WebKit
/usr/%_lib/WebKit/GtkLauncher

%changelog
* Wed Jan 16 2008 stbinner@suse.de
- update to snapshot r29509
* Thu Jan 03 2008 stbinner@suse.de
- rename to comply to shared library packaging policy more exactly
* Wed Dec 19 2007 stbinner@suse.de
- initial package
openSUSE Build Service is sponsored by