SPECS: diacanvas.spec - static_libs and apidocs bconds - apidocs s...
wrobell
wrobell at pld-linux.org
Thu Feb 2 12:51:03 CET 2006
Author: wrobell Date: Thu Feb 2 11:51:02 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- static_libs and apidocs bconds
- apidocs subpackage added
---- Files affected:
SPECS:
diacanvas.spec (1.40 -> 1.41)
---- Diffs:
================================================================
Index: SPECS/diacanvas.spec
diff -u SPECS/diacanvas.spec:1.40 SPECS/diacanvas.spec:1.41
--- SPECS/diacanvas.spec:1.40 Wed Feb 1 16:07:09 2006
+++ SPECS/diacanvas.spec Thu Feb 2 12:50:57 2006
@@ -1,4 +1,8 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without apidocs # disable gtk-doc
+%bcond_without static_libs # don't build static library
%define src_name diacanvas2
@@ -12,6 +16,7 @@
Source0: http://dl.sourceforge.net/diacanvas/%{src_name}-%{version}.tar.gz
# Source0-md5: cc1dc41aff8084cb9e4514a0edbaf8b4
URL: http://diacanvas.sourceforge.net/
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
BuildRequires: libgnomeprintui-devel >= 2.2.0
BuildRequires: libtool
BuildRequires: pkgconfig
@@ -52,6 +57,14 @@
%description static -l pl
Biblioteki statyczne Diacanvas.
+%package apidocs
+Summary: Diacanvas API documentation
+Group: Documentation
+Requires: gtk-doc-common
+
+%description apidocs
+Diacanvas API documentation.
+
%package -n python-%{name}
Summary: Diacanvas Python bindings
Summary(pl): Wiązania języka Python do biblioteki Diacanvas
@@ -83,11 +96,11 @@
%build
%configure \
- --enable-static \
+ --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
--enable-gnome-print \
--enable-python \
- --enable-gtk-doc \
- --with-html-dir=%{_gtkdocdir}
+ --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
+ %{?with_apidocs:--with-html-dir=%{_gtkdocdir}}
%{__make}
@@ -120,12 +133,19 @@
%attr(755,root,root) %{_libdir}/*.so
%{_libdir}/*.la
%{_includedir}/diacanvas
-%{_gtkdocdir}/%{src_name}
%{_pkgconfigdir}/*
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
-%{_libdir}/*.a
+%{_libdir}/lib*.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/*
+%endif
%files -n python-%{name}
%defattr(644,root,root,755)
@@ -143,6 +163,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.41 2006/02/02 11:50:57 wrobell
+- static_libs and apidocs bconds
+- apidocs subpackage added
+
Revision 1.40 2006/02/01 15:07:09 wrobell
- ver. 0.14.3
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/diacanvas.spec?r1=1.40&r2=1.41&f=u
More information about the pld-cvs-commit
mailing list