]> git.pld-linux.org Git - packages/libtiff.git/commitdiff
- 'without opengl' bcond added
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 22 Sep 2006 07:06:13 +0000 (07:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libtiff.spec -> 1.82

libtiff.spec

index 0e523e4f80c88184ca056447390f96d12a3c8302..b9f4a4310eb888ac07dcfda0358718e82a4473ec 100644 (file)
@@ -1,3 +1,7 @@
+#
+# 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
@@ -12,7 +16,7 @@ Source0:      ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
 # 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
@@ -217,11 +221,15 @@ rm -rf $RPM_BUILD_ROOT
 %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
This page took 0.1047 seconds and 4 git commands to generate.