[midori] Build separate devel package, BR vala and include gtk-doc

Christoph Wickert cwickert at fedoraproject.org
Tue Aug 24 16:06:01 UTC 2010


commit 63fa7c7a23de5cee37429738ecb4d386cd1082b3
Author: Christoph Wickert <cwickert at fedoraproject.org>
Date:   Tue Aug 24 18:05:48 2010 +0200

    Build separate devel package, BR vala and include gtk-doc

 midori.spec |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/midori.spec b/midori.spec
index 8d7d1bb..5028829 100644
--- a/midori.spec
+++ b/midori.spec
@@ -19,6 +19,7 @@ BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	desktop-file-utils
 BuildRequires:	gettext
+BuildRequires:	gtk-doc
 BuildRequires:	gtksourceview2-devel
 BuildRequires:	intltool
 BuildRequires:	libidn-devel
@@ -32,6 +33,7 @@ BuildRequires:	perl(XML::Parser)
 BuildRequires:	python-docutils
 BuildRequires:	sqlite-devel
 BuildRequires:	unique-devel
+BuildRequires:	vala
 BuildRequires:	waf >= 1.5
 BuildRequires:	webkitgtk-devel >= 1.1.1
 
@@ -50,6 +52,17 @@ modern browser, including:
 The project is currently in an early alpha state. The features are still being
 implemented, and some are still quite incomplete.
 
+%package	devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	vala
+
+%description	devel
+The %{name}-devel package contains libraries and header files for
+developing extensions for %{name}.
+
+
 %prep
 %setup -q
 ## Use the system-provided waf, instead of the in-tarball copy.
@@ -65,6 +78,7 @@ export CFLAGS="%{optflags}"
 ./waf	--prefix=%{_usr}			\
 	--docdir=%{_docdir}/%{name}-%{version}	\
 	--libdir=%{_libdir}			\
+	--enable-apidocs			\
 	configure
 #waf %{?_smp_mflags} build
 ./waf %{?_smp_mflags} build
@@ -80,6 +94,10 @@ desktop-file-install					\
 	--delete-original				\
 	--dir %{buildroot}%{_datadir}/applications	\
 	%{buildroot}%{_datadir}/applications/%{name}.desktop
+# needed because of a bug in the waf files, remove when fixed
+mkdir -p %{buildroot}%{_datadir}/gtk-doc/html/%{name}
+install -Dpm 644 _build_/docs/api/midori/html/* \
+	%{buildroot}%{_datadir}/gtk-doc/html/%{name}
 
 
 %clean
@@ -115,10 +133,19 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 #%config(noreplace) %{_sysconfdir}/%{name}/extensions/*/config
 #%{_sysconfdir}/%{name}/
 
+%files devel
+%defattr(-,root,root,-)
+%doc %{_datadir}/gtk-doc/
+#%{_includedir}/*
+%{_datadir}/vala/vapi/*
+
 
 %changelog
 * Tue Aug 24 2010 Christoph Wickert <cwickert at fedoraproject.org> - 0.2.7-1
 - Update to 0.2.7
+- Build separate devel package
+- BuildRequire vala
+- Include gtk-doc
 
 * Tue Jul 06 2010 Peter Gordon <peter at thecodergeek.com> - 0.2.6-2
 - Rebuild for WebKitGTK+ ABI bump.


More information about the scm-commits mailing list