]> git.pld-linux.org Git - packages/jasper.git/commitdiff
- without_opengl bcond added
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 22 Sep 2006 12:00:57 +0000 (12:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    jasper.spec -> 1.31

jasper.spec

index 7d05a6a51000b0f8e5335ca991bae2953e9e4201..cbb915e33d1fe00426114e2ca0a95714340c636a 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without opengl  # Disable OpenGL
+#
 Summary:       JasPer - collection of software for coding and manipulation of images
 Summary(pl):   JasPer - zestaw oprogramowania do obróbki obrazków
 Name:          jasper
@@ -12,6 +16,7 @@ URL:          http://www.ece.uvic.ca/~mdadams/jasper/
 BuildRequires: autoconf >= 2.57
 BuildRequires: automake
 BuildRequires: glut-devel >= 3.7-12
+%{?without_opengl:BuildRequires:       glut-devel >= 3.7-12}
 BuildRequires: libjpeg-devel
 BuildRequires: libtool
 BuildRequires: unzip
@@ -103,6 +108,7 @@ kolor
 %{__autoheader}
 %{__automake}
 %configure \
+        %{?without_opengl:--disable-opengl} \
        --enable-shared
 
 %{__make}
@@ -139,6 +145,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
+%if %{with opengl}
 %files jiv
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/jiv
+%endif
This page took 0.149786 seconds and 4 git commands to generate.