File webkit-gtk.spec of Package webkit-gtk

# spec file for package WebKit/Gtk

%define rversion r37469

Name:           webkit-gtk
Url:            http://www.webkit.org/
License:        BSD; 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}-%{release}-buildroot  
Version:        1.0.%{rversion}
Release:        1
Source:         WebKit-%{rversion}.tar.bz2
Packager:       Michael Tross <mtr@nets-solutions.de>
BuildRequires:	autoconf automake pkgconfig gperf bison
BuildRequires:	flex >= 2.5.33
BuildRequires:	gcc-c++ libstdc++-devel
BuildRequires:	curl-devel >= 7.11.0
BuildRequires:	fontconfig-devel >= 1.0.0
BuildRequires:	gtk2-devel
BuildRequires:	pango-devel
BuildRequires:	cairo-devel >= 1.4.0
BuildRequires:	libicu-devel
BuildRequires:	libjpeg-devel
BuildRequires:	libpng-devel
BuildRequires:	libxslt-devel
BuildRequires:	sqlite-devel >= 3.4.0

%description
WebKit is a port of the WebKit embeddable web component to GTK+.

%package devel
License:        BSD; LGPL v2.0 only; LGPL v2.0 or later
Group:          Development/Libraries/C and C++
Summary:        Library for rendering web content, GTK+ Port
Requires:       libwebkit-1_0-1 = %{version} gtk2-devel

%description devel
WebKit is a port of the WebKit embeddable web component to GTK+.

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

%build
export CFLAGS=" $RPM_OPT_FLAGS"
export LDFLAGS="-L/usr/X11R6/lib"
export confopt="--disable-dashboard-support --disable-offline-web-applications --disable-dom-storage --disable-svg --disable-video --with-font-backend=pango --with-http-backend=curl"
./autogen.sh $confopt
%configure $confopt
make

%install
make install DESTDIR=%{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc JavaScriptCore/COPYING.LIB WebCore/LICENSE-APPLE WebCore/LICENSE-LGPL-2 WebCore/LICENSE-LGPL-2.1
%{_libdir}/libwebkit-1.0.so.1
%{_libdir}/libwebkit-1.0.so.1.0.0

%files devel
%defattr(-,root,root)
%doc JavaScriptCore/COPYING.LIB WebCore/LICENSE-APPLE WebCore/LICENSE-LGPL-2 WebCore/LICENSE-LGPL-2.1
%{_libdir}/libwebkit-1.0.la
%{_libdir}/libwebkit-1.0.so
%{_libdir}/pkgconfig/webkit-1.0.pc
%{_includedir}/webkit-1.0
%{_includedir}/JavaScriptCore

%changelog
* Tue Oct 14 2008 mtr@nets-solutions.de
- initial package
openSUSE Build Service is sponsored by