+#
+# 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
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
%{__autoheader}
%{__automake}
%configure \
+ %{?without_opengl:--disable-opengl} \
--enable-shared
%{__make}
%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