Author: megabajt Date: Sat Apr 28 08:47:28 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - added apidocs bcond and subpackage - release 4
---- Files affected: SPECS: libglade2.spec (1.55 -> 1.56) ---- Diffs: ================================================================ Index: SPECS/libglade2.spec diff -u SPECS/libglade2.spec:1.55 SPECS/libglade2.spec:1.56 --- SPECS/libglade2.spec:1.55 Tue Feb 13 07:46:51 2007 +++ SPECS/libglade2.spec Sat Apr 28 10:47:23 2007 @@ -3,13 +3,17 @@ # TODO: register glade-2.0.dtd # TODO: consider moving libglade-convert to main package - it is used to converting old # 1.2.x version *.glade files to current structure. +# +# Conditional build: +%bcond_without apidocs # disable gtk-doc +# Summary: libglade library Summary(es.UTF-8): El libglade permite que usted cargue archivos del interfaz del glade Summary(pl.UTF-8): Biblioteka do ładowania definicji interfejsu generowanego programem glade Summary(pt_BR.UTF-8): Esta biblioteca permite carregar arquivos da interface glade Name: libglade2 Version: 2.6.0 -Release: 3 +Release: 4 Epoch: 1 License: LGPL Group: X11/Libraries @@ -22,7 +26,7 @@ BuildRequires: bison BuildRequires: gettext-devel BuildRequires: gtk+2-devel >= 2:2.10.0 -BuildRequires: gtk-doc >= 1.6 +%{?with_apidocs:BuildRequires: gtk-doc >= 1.6} BuildRequires: libtool BuildRequires: libxml2-devel >= 1:2.6.26 BuildRequires: pkgconfig @@ -64,7 +68,6 @@ Group: X11/Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} Requires: gtk+2-devel >= 2:2.10.0 -Requires: gtk-doc-common Requires: libxml2-devel Obsoletes: libglade2.0-devel @@ -104,18 +107,30 @@ Bibliotecas estáticas para o desenvolvimento de aplicações com a interface glade. +%package apidocs +Summary: libglade API documentation +Summary(pl.UTF-8): Dokumentacja API libglade +Group: Documentation +Requires: gtk-doc-common + +%description apidocs +libglade API documentation. + +%description apidocs -l pl.UTF-8 +Dokumentacja API libglade. + %prep %setup -q -n libglade-%{version} %build -%{__gtkdocize} +%{?with_apidocs:%{__gtkdocize}} %{__libtoolize} %{__glib_gettextize} %{__aclocal} -I m4 %{__autoconf} %{__automake} %configure \ - --enable-gtk-doc \ + --%{?with_apidocs:en}%{?!with_apidocs:dis}able-gtk-doc \ --with-html-path=%{_gtkdocdir} %{__make} @@ -128,6 +143,8 @@ HTML_DIR=%{_gtkdocdir} \ pkgconfigdir=%{_pkgconfigdir} +%{?!with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} + %clean rm -rf $RPM_BUILD_ROOT @@ -150,18 +167,27 @@ %{_libdir}/lib*.la %{_pkgconfigdir}/* %{_includedir}/libglade-* -%{_gtkdocdir}/libglade %files static %defattr(644,root,root,755) %{_libdir}/lib*.a +%if %{with apidocs} +%files apidocs +%defattr(644,root,root,755) +%{_gtkdocdir}/libglade +%endif + %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} PLD Team <[EMAIL PROTECTED]> All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.56 2007/04/28 08:47:23 megabajt +- added apidocs bcond and subpackage +- release 4 + Revision 1.55 2007/02/13 06:46:51 glen - tabs in preamble ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/libglade2.spec?r1=1.55&r2=1.56&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit