SPECS: rrdtool.spec - make building python bindings optional (defa...
agaran
agaran at pld-linux.org
Fri Jan 11 09:31:24 CET 2008
Author: agaran Date: Fri Jan 11 08:31:24 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- make building python bindings optional (default is to build python support)
---- Files affected:
SPECS:
rrdtool.spec (1.122 -> 1.123)
---- Diffs:
================================================================
Index: SPECS/rrdtool.spec
diff -u SPECS/rrdtool.spec:1.122 SPECS/rrdtool.spec:1.123
--- SPECS/rrdtool.spec:1.122 Sun Nov 25 17:23:33 2007
+++ SPECS/rrdtool.spec Fri Jan 11 09:31:18 2008
@@ -1,4 +1,8 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without python # without python
+#
%include /usr/lib/rpm/macros.perl
%define pdir RRDp
Summary: RRDtool - round robin database
@@ -22,8 +26,10 @@
BuildRequires: libpng-devel >= 2:1.2.8
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: pkgconfig
+%if %{with python}
BuildRequires: python >= 1:2.5
BuildRequires: python-devel >= 1:2.5
+%endif
BuildRequires: rpm-perlprov
BuildRequires: rpm-pythonprov
BuildRequires: tcl-devel
@@ -167,6 +173,7 @@
RRDtoola jako modułu dzielonego oraz RRDp do dostępu poprzez zestaw
potoków.
+%if %{with python}
%package -n python-rrdtool
Summary: Python interface to RRDtool
Summary(pl.UTF-8): Pythonowy interfejs do RRDtoola
@@ -180,6 +187,7 @@
%description -n python-rrdtool -l pl.UTF-8
Interfejs Pythona do RRDtoola - narzędzia do tworzenia wykresów i
logowania.
+%endif
%package -n tcl-rrdtool
Summary: Tcl extension to access the RRD library
@@ -265,10 +273,12 @@
%{_mandir}/man3/RRDp.3*
%{_mandir}/man3/RRDs.3*
+%if %{with python}
%files -n python-rrdtool
%defattr(644,root,root,755)
%attr(755,root,root) %{py_sitedir}/rrdtoolmodule.so
%{py_sitedir}/py_rrdtool-*.egg-info
+%endif
%files -n tcl-rrdtool
%defattr(644,root,root,755)
@@ -281,6 +291,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.123 2008-01-11 08:31:18 agaran
+- make building python bindings optional (default is to build python support)
+
Revision 1.122 2007-11-25 16:23:33 arekm
- up to 1.2.26
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/rrdtool.spec?r1=1.122&r2=1.123&f=u
More information about the pld-cvs-commit
mailing list