SPECS: python.spec - add bcond_without info - allow to build Pytho...

twittner twittner at pld-linux.org
Mon Mar 27 18:43:42 CEST 2006


Author: twittner                     Date: Mon Mar 27 16:43:42 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add bcond_without info - allow to build Python without BR: emacs

---- Files affected:
SPECS:
   python.spec (1.261 -> 1.262) 

---- Diffs:

================================================================
Index: SPECS/python.spec
diff -u SPECS/python.spec:1.261 SPECS/python.spec:1.262
--- SPECS/python.spec:1.261	Sun Mar 26 15:16:17 2006
+++ SPECS/python.spec	Mon Mar 27 18:43:37 2006
@@ -7,6 +7,7 @@
 # - kill BR: file requirement from lib64 patch
 #
 # Conditional build:
+%bcond_without	info			# don't build info pages (requires emacs)
 %bcond_without	tkinter			# disables tkinter module building
 %bcond_without	tests			# disables Python testing
 %bcond_with	verbose_tests		# runs tests in verbose mode
@@ -57,7 +58,7 @@
 BuildRequires:	autoconf
 BuildRequires:	bzip2-devel
 BuildRequires:	db-devel >= 4
-BuildRequires:	emacs >= 21
+%{?with_info:BuildRequires:	emacs >= 21}
 BuildRequires:	expat-devel >= 1:1.95.7
 BuildRequires:	file
 BuildRequires:	gdbm-devel >= 1.8.3
@@ -68,7 +69,7 @@
 BuildRequires:	readline-devel >= 5.0
 BuildRequires:	rpm-pythonprov
 BuildRequires:	sed >= 4.0
-BuildRequires:	tetex-makeindex
+%{?with_info:BuildRequires:	tetex-makeindex}
 %{?with_tkinter:BuildRequires:	tix-devel >= 1:8.1.4-4}
 %{?with_tkinter:BuildRequires:	tk-devel >= 8.4.3}
 BuildRequires:	zlib-devel
@@ -542,8 +543,10 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with info}
 %{__make} -C Doc/info
 install Doc/info/python*info* $RPM_BUILD_ROOT%{_infodir}
+%endif
 
 install Makefile.pre.in $RPM_BUILD_ROOT%{py_libdir}/config
 
@@ -832,9 +835,11 @@
 %defattr(644,root,root,755)
 %doc Python-Docs-%{version}/*
 
+%if %{with info}
 %files doc-info
 %defattr(644,root,root,755)
 %{_infodir}/*
+%endif
 
 %if %{with tkinter}
 %files tkinter
@@ -854,6 +859,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.262  2006/03/27 16:43:37  twittner
+- add bcond_without info - allow to build Python without BR: emacs
+
 Revision 1.261  2006/03/26 13:16:17  twittner
 - keep BRs in alphabetical order
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python.spec?r1=1.261&r2=1.262&f=u



More information about the pld-cvs-commit mailing list