[gegl] don't build/package workshop operations on EL
Nils Philippsen
nphilipp at fedoraproject.org
Tue Apr 3 12:33:45 UTC 2012
commit de3f51908855852bb94e5da0c352b457044151b3
Author: Nils Philippsen <nils at redhat.com>
Date: Tue Apr 3 14:31:49 2012 +0200
don't build/package workshop operations on EL
gegl.spec | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/gegl.spec b/gegl.spec
index 2d12e4b..30a1b10 100644
--- a/gegl.spec
+++ b/gegl.spec
@@ -1,3 +1,9 @@
+%if 0%{?rhel}
+%bcond_with workshop
+%else
+%bcond_without workshop
+%endif
+
Summary: A graph based image processing framework
Name: gegl
Version: 0.2.0
@@ -51,6 +57,7 @@ GEGLs original design was made to scratch GIMPs itches for a new
compositing and processing core. This core is being designed to have
minimal dependencies. and a simple well defined API.
+%if %{with workshop}
%package operations-workshop
Summary: Experimental operations for GEGL
Group: System Environment/Libraries
@@ -59,6 +66,7 @@ Requires: %{name}%{_isa} = %{version}-%{release}
%description operations-workshop
This package contains experimental operations for GEGL. If used they may yield
unwanted results, or even crash. You're warned!
+%endif
%package devel
Summary: Headers for developing programs that will use %{name}
@@ -84,6 +92,11 @@ developing with %{name}.
export LANG=en_US.utf8
%configure \
+%if %{with workshop}
+ --enable-workshop \
+%else
+ --disable-workshop \
+%endif
--with-pic \
--with-gio \
--with-gtk \
@@ -106,8 +119,9 @@ export LANG=en_US.utf8
--with-libspiro \
--with-exiv2 \
--with-umfpack \
- --disable-static --enable-workshop \
+ --disable-static \
--disable-gtk-doc
+
make %{?_smp_mflags}
%install
@@ -189,7 +203,9 @@ rm -rf %{buildroot}
%{_libdir}/*.so.*
%dir %{_libdir}/gegl-%{apiver}/
+%if %{with workshop}
%files operations-workshop -f operations_files_workshop
+%endif
%files devel
%defattr(-, root, root, -)
@@ -202,6 +218,7 @@ rm -rf %{buildroot}
* Tue Apr 03 2012 Nils Philippsen <nils at redhat.com> - 0.2.0-1
- version 0.2.0
- split off workshop (i.e. experimental) operations
+- don't build/package workshop operations on EL
* Mon Feb 06 2012 Vít Ondruch <vondruch at redhat.com> - 0.1.8-3
- Rebuilt for Ruby 1.9.3.
More information about the scm-commits
mailing list