]> git.pld-linux.org Git - packages/libgsf.git/commitdiff
- Added apidocs bcond
authoradgor <adgor@pld-linux.org>
Thu, 1 Dec 2005 16:57:55 +0000 (16:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- Added no_GConf2_macros.patch
- with gnome BR GConf2-devel

Changed files:
    libgsf.spec -> 1.40

libgsf.spec

index d1d27f0b33973dbc4e0df5dfcfd0a1782dff3fcd..928d113af20f18fbf3e40f6c41e334c9484258e1 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
-%bcond_without gnome   # without GNOME extensions packages
+%bcond_without apidocs         # disable gtk-doc
+%bcond_without gnome           # without GNOME extensions packages
 #
 Summary:       GNOME Structured File library
 Summary(pl):   Biblioteka plików strukturalnych dla GNOME
@@ -11,14 +12,17 @@ License:    GPL v2
 Group:         Libraries
 Source0:       http://ftp.gnome.org/pub/gnome/sources/libgsf/1.13/%{name}-%{version}.tar.bz2
 # Source0-md5: b35e95f6bd7b8add9981b6cf6336674a
+Patch0:                %{name}-no_GConf2_macros.patch
 URL:           http://www.gnumeric.org/
+%{?with_gnome:BuildRequires:   GConf2-devel}
 %{?with_gnome:BuildRequires:   ORBit2-devel >= 2.8.1}
 BuildRequires: autoconf >= 2.54
 BuildRequires: automake
 BuildRequires: bzip2-devel
 BuildRequires: glib2-devel >= 1:2.6.0
 %{?with_gnome:BuildRequires:   gnome-vfs2-devel >= 2.4.0}
-BuildRequires: gtk-doc >= 1.0
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
+BuildRequires: gtk-doc-automake
 %{?with_gnome:BuildRequires:   libbonobo-devel >= 2.4.0}
 BuildRequires: libtool
 BuildRequires: libxml2-devel >= 2.4.16
@@ -117,6 +121,7 @@ Prosty program tworz
 
 %prep
 %setup -q
+%{!?with_gnome:%patch0 -p1}
 
 %build
 rm -f acinclude.m4
@@ -125,7 +130,7 @@ rm -f acinclude.m4
 %{__autoconf}
 %{__automake}
 %configure \
-       --enable-gtk-doc \
+       %?with_apidocs:--enable-gtk-doc} \
        --with-html-dir=%{_gtkdocdir}/%{name} \
        %{!?with_gnome:--without-gnome}
 %{__make}
@@ -186,10 +191,10 @@ rm -rf $RPM_BUILD_ROOT
 %files gnome-static
 %defattr(644,root,root,755)
 %{_libdir}/libgsf-gnome-?.a
-%endif
 
 %files -n gsf-office-thumbnailer
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/gsf-office-thumbnailer
 %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas
 %{_mandir}/man1/gsf-office-thumbnailer.1*
+%endif
This page took 0.138416 seconds and 4 git commands to generate.