X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=libgee.spec;h=7028f1913a4f00fb4b38a67a543c50c357679d0b;hb=HEAD;hp=d6d27a3b2099d1b7fb966e959b1f830cebf393d0;hpb=571221c0d3b5b97a11a1f2322422d4a82f73e043;p=packages%2Flibgee.git diff --git a/libgee.spec b/libgee.spec index d6d27a3..7028f19 100644 --- a/libgee.spec +++ b/libgee.spec @@ -1,17 +1,23 @@ # # 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 -Version: 0.16.0 +Version: 0.20.6 Release: 1 License: LGPL v2+ Group: Libraries -Source0: http://ftp.gnome.org/pub/GNOME/sources/libgee/0.16/%{name}-%{version}.tar.xz -# Source0-md5: 12ab75a06a145a48406b2c135a3be191 -URL: http://live.gnome.org/Libgee +Source0: https://download.gnome.org/sources/libgee/0.20/%{name}-%{version}.tar.xz +# Source0-md5: 8b9001f47e15ef7a1776ac1f5bb015a0 +Patch0: %{name}-doc.patch +URL: https://wiki.gnome.org/Projects/Libgee BuildRequires: autoconf >= 2.50 BuildRequires: automake >= 1:1.11 BuildRequires: glib2-devel >= 1:2.36.0 @@ -19,6 +25,7 @@ BuildRequires: gobject-introspection-devel >= 0.9.0 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 @@ -64,6 +71,7 @@ Summary(pl.UTF-8): API libgee dla języka Vala Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} Requires: vala >= 2:0.25.1 +BuildArch: noarch %description -n vala-libgee libgee API for Vala language. @@ -71,8 +79,21 @@ libgee API for Vala language. %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 +BuildArch: noarch + +%description apidocs +API documentation for libgee library. + +%description apidocs -l pl.UTF-8 +Dokumentacja API biblioteki libgee. + %prep %setup -q +%patch0 -p1 %build %{__libtoolize} @@ -81,6 +102,7 @@ API libgee dla języka Vala. %{__autoheader} %{__automake} %configure \ + %{?with_apidocs:--enable-doc} \ --disable-silent-rules \ %{?with_static_libs:--enable-static} %{__make} @@ -122,3 +144,9 @@ rm -rf $RPM_BUILD_ROOT %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