SPECS: libtiff.spec - 'without opengl' bcond added

jajcus jajcus at pld-linux.org
Fri Sep 22 09:06:19 CEST 2006


Author: jajcus                       Date: Fri Sep 22 07:06:19 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- 'without opengl' bcond added

---- Files affected:
SPECS:
   libtiff.spec (1.81 -> 1.82) 

---- Diffs:

================================================================
Index: SPECS/libtiff.spec
diff -u SPECS/libtiff.spec:1.81 SPECS/libtiff.spec:1.82
--- SPECS/libtiff.spec:1.81	Sun Aug  6 22:05:16 2006
+++ SPECS/libtiff.spec	Fri Sep 22 09:06:13 2006
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without opengl # do not build OpenGL viewer
+#
 Summary:	Library for handling TIFF files
 Summary(de):	Library zum Verwalten von TIFF-Dateien
 Summary(fr):	Bibliothčque de gestion des fichiers TIFF
@@ -13,7 +17,7 @@
 # Source0-md5:	fbb6f446ea4ed18955e2714934e5b698
 Patch0:		%{name}-sec.patch
 URL:		http://www.remotesensing.org/libtiff/
-BuildRequires:	OpenGL-glut-devel
+%{?with_opengl:BuildRequires:  OpenGL-glut-devel}
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake
 BuildRequires:	libjpeg-devel
@@ -218,14 +222,18 @@
 %files progs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
-%exclude %{_bindir}/tiffgt
 %{_mandir}/man1/*
+%if %{with opengl}
 %exclude %{_mandir}/man1/tiffgt.1*
+%exclude %{_bindir}/tiffgt
+%endif
 
+%if %{with opengl}
 %files progs-gl
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/tiffgt
 %{_mandir}/man1/tiffgt.1*
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -233,6 +241,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.82  2006/09/22 07:06:13  jajcus
+- 'without opengl' bcond added
+
 Revision 1.81  2006/08/06 20:05:16  adamg
 - updated -sec.patch with fixes for CVE-2006-3459, CVE-2006-3460,
   CVE-2006-3461, CVE-2006-3462, CVE-2006-3463, CVE-2006-3464, CVE-2006-3465
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libtiff.spec?r1=1.81&r2=1.82&f=u



More information about the pld-cvs-commit mailing list