build a doc subpackage

This commit is contained in:
Matthias Clasen 2011-05-11 18:15:37 -04:00
commit 687ce39743

View file

@ -7,7 +7,7 @@
Name: webkitgtk3
Version: 1.4.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: GTK+ Web content engine library
Group: Development/Libraries
@ -29,6 +29,7 @@ BuildRequires: gperf
BuildRequires: gstreamer-devel
BuildRequires: gstreamer-plugins-base-devel
BuildRequires: gtk3-devel >= 2.99.0
BuildRequires: gtk-doc
BuildRequires: libsoup-devel >= 2.27.91
BuildRequires: libicu-devel
BuildRequires: libjpeg-devel
@ -64,6 +65,14 @@ Requires: gtk3-devel
The %{name}-devel package contains libraries, build data, and header
files for developing applications that use %{name}.
%package doc
Summary: Documentation files for %{name}
Group: Development/Libraries
BuildArch: noarch
%description doc
This package contains developer documentation for %{name}.
%prep
%setup -qn "webkit-%{version}"
%patch1 -p1 -b .no-execmem
@ -79,7 +88,8 @@ CFLAGS="%{optflags} -DLIBSOUP_I_HAVE_READ_BUG_594377_AND_KNOW_SOUP_PASSWORD_MANA
--with-gtk=3.0 \
--enable-jit \
--enable-geolocation \
--enable-introspection
--enable-introspection \
--enable-gtk-doc
mkdir -p DerivedSources/webkit
mkdir -p DerivedSources/WebCore
@ -87,6 +97,11 @@ mkdir -p DerivedSources/WebCore
# no %%{_smp_mflags} because of http://bugs.webkit.org/show_bug.cgi?id=34846
make
# docs need to be built separately
pushd Source/WebKit/gtk/docs
make
popd
%install
make install DESTDIR=%{buildroot}
@ -144,6 +159,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas
%changelog
* Wed May 11 2011 Cosimo Cecchi <cosimoc@redhat.com> 1.4.0-2
- Add a doc package for gtk-doc documentation
* Tue Apr 26 2011 Matthias Clasen <mclasen@redhat.com> 1.4.0-1
- Update to 1.4.0