]> git.pld-linux.org Git - packages/fltk.git/commitdiff
- bconds, cosmetics
authoreothane <eothane@pld-linux.org>
Sun, 1 Feb 2004 23:29:28 +0000 (23:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fltk.spec -> 1.47

fltk.spec

index 1375cae8c5c5d604630b1a2e6afe47f60970eef1..7d0b793fb3a08439d4d664cc88f9b3c6f4fb3b00 100644 (file)
--- a/fltk.spec
+++ b/fltk.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
-# _without_gl  - without OpenGL libraries
-# _without_xft - without Xft support
+%bcond_without gl      # without OpenGL libraries
+%bcond_without xft     # without Xft support
 #
 Summary:       Fast Light Tool Kit
 Summary(pl):   FLTK - "lekki" X11 toolkit
@@ -19,13 +19,13 @@ Patch0:             %{name}-link.patch
 Patch1:                %{name}-acfix.patch
 Patch2:                %{name}-fluid-color.patch
 URL:           http://www.fltk.org/
-%{!?_without_gl:BuildRequires: OpenGL-devel}
+%{?with_gl:BuildRequires:      OpenGL-devel}
 BuildRequires: XFree86-devel >= 3.3.6
 BuildRequires: autoconf
 BuildRequires: libstdc++-devel
-%{!?_without_xft:BuildRequires:        xft-devel}
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%{?with_xft:BuildRequires:     xft-devel}
 Obsoletes:     libfltk1.1
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _noautoreqdep   libGL.so.1 libGLU.so.1
 
@@ -141,8 +141,8 @@ LDFLAGS=" "
 %configure \
        --enable-shared \
        --with-x \
-       %{?_without_gl:--disable-gl} \
-       %{!?_without_xft:--enable-xft}
+       %{!?with_gl:--disable-gl} \
+       %{?with_xft:--enable-xft}
 
 %{__make} depend
 %{__make}
@@ -201,7 +201,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(644,root,root) %{_libdir}/libfltk_forms.a
 %attr(644,root,root) %{_libdir}/libfltk_images.a
 
-%if 0%{!?_without_gl:1}
+%if %{with gl}
 %files gl
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libfltk_gl.so.*.*
This page took 0.211521 seconds and 4 git commands to generate.