SPECS: octave-forge.spec - added nonfree bcond

baggins baggins at pld-linux.org
Thu Mar 5 15:25:10 CET 2009


Author: baggins                      Date: Thu Mar  5 14:25:09 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added nonfree bcond

---- Files affected:
SPECS:
   octave-forge.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SPECS/octave-forge.spec
diff -u SPECS/octave-forge.spec:1.21 SPECS/octave-forge.spec:1.22
--- SPECS/octave-forge.spec:1.21	Thu Feb 26 15:23:17 2009
+++ SPECS/octave-forge.spec	Thu Mar  5 15:25:04 2009
@@ -1,9 +1,13 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	nonfree		# build nonfree extensions
+#
 Summary:	Extensions for GNU Octave
 Summary(pl.UTF-8):	Rozszerzenia dla GNU Octave
 Name:		octave-forge
 Version:	20080831
-Release:	1
+Release:	1%{?with_nonfree:.nonfree}
 License:	GPL
 Group:		Applications/Math
 Source0:	http://dl.sourceforge.net/octave/%{name}-bundle-%{version}.tar.gz
@@ -87,7 +91,7 @@
 
 %build
 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"; export CFLAGS
-for d in main extra; do
+for d in main extra %{?with_nonfree:nonfree}; do
 	cd $d
 	for pkg in * ; do
 		[ -d $pkg ] || continue
@@ -106,7 +110,7 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-for d in main extra; do
+for d in main extra %{?with_nonfree:nonfree}; do
 	cd $d
 	for pkg in * ; do
 		[ -d $pkg ] || continue
@@ -138,6 +142,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2009/03/05 14:25:04  baggins
+- added nonfree bcond
+
 Revision 1.21  2009/02/26 14:23:17  baggins
 - rel 1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/octave-forge.spec?r1=1.21&r2=1.22&f=u



More information about the pld-cvs-commit mailing list