--- /dev/null
+--- libgee-0.20.0/doc/Makefile.am.orig 2013-03-30 21:15:30.000000000 +0100
++++ libgee-0.20.0/doc/Makefile.am 2017-04-11 21:02:00.553783557 +0200
+@@ -28,7 +28,7 @@
+ $(doc_data) $(innerdoc_DATA) $(img_DATA): gee-0.8/index.html
+
+ gee-0.8/index.html:
+- $(VALADOC) -o gee-0.8/ --wiki ./ --force -b $(top_srcdir) $(SRC_DIR)/*.vala
++ $(VALADOC) -o gee-0.8/ --wiki ./ --force -b $(top_srcdir) --vapidir ../utils --pkg geeutils --pkg gio-2.0 $(SRC_DIR)/*.vala
+
+ EXTRA_DIST += \
+ index.wiki \
#
# Conditional build:
+%bcond_without apidocs # API documentation (valadoc)
%bcond_without static_libs # static library
+%bcond_with bootstrap # bootstrap without apidocs subpackage (alias for without_apidocs)
+%if %{with bootstrap}
+%undefine with_apidocs
+%endif
Summary: libgee - GObject collection library
Summary(pl.UTF-8): libgee - biblioteka kolekcji oparta na GObject
Name: libgee
Group: Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/libgee/0.20/%{name}-%{version}.tar.xz
# Source0-md5: 66a4bfb6d7b03248acb99d140aac127d
+Patch0: %{name}-doc.patch
URL: http://live.gnome.org/Libgee
BuildRequires: autoconf >= 2.50
BuildRequires: automake >= 1:1.11
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: tar >= 1:1.22
+%{?with_apidocs:BuildRequires: valadoc}
BuildRequires: xz
# not required for stable releases (all generated files are included)
#BuildRequires: vala >= 2:0.25.1
%description -n vala-libgee -l pl.UTF-8
API libgee dla języka Vala.
+%package apidocs
+Summary: API documentation for libgee library
+Summary(pl.UTF-8): Dokumentacja API biblioteki libgee
+Group: Documentation
+
+%description apidocs
+API documentation for libgee library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libgee.
+
%prep
%setup -q
+%patch0 -p1
%build
%{__libtoolize}
%{__autoheader}
%{__automake}
%configure \
+ %{?with_apidocs:--enable-doc} \
--disable-silent-rules \
%{?with_static_libs:--enable-static}
%{__make}
%files -n vala-libgee
%defattr(644,root,root,755)
%{_datadir}/vala/vapi/gee-0.8.vapi
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_datadir}/devhelp/references/gee-0.8
+%endif