diff --git a/libcaca.changes b/libcaca.changes index e56d070..8bea846 100644 --- a/libcaca.changes +++ b/libcaca.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Mar 17 21:53:40 UTC 2013 - dmueller@suse.com + +- add buildconditional to build optionally without mono + ------------------------------------------------------------------- Wed Jun 6 10:09:07 UTC 2012 - cfarrell@suse.com diff --git a/libcaca.spec b/libcaca.spec index 03204ae..238ca97 100644 --- a/libcaca.spec +++ b/libcaca.spec @@ -1,7 +1,7 @@ # # spec file for package libcaca # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,6 +18,7 @@ %define withjava 0 %define withpython 1 +%bcond_without mono Name: libcaca BuildRequires: doxygen @@ -35,7 +36,9 @@ BuildRequires: freeglut-devel BuildRequires: ftgl-devel BuildRequires: gcc-c++ BuildRequires: java-devel +%if %{with mono} BuildRequires: mono-devel +%endif BuildRequires: python-devel BuildRequires: ruby-devel BuildRequires: xorg-x11-libs @@ -98,6 +101,7 @@ Requires: %{name}0-java = %{version} This package contains the header files and static libraries needed to compile applications or shared objects that use libcaca. +%if %{with mono} %package csharp Summary: C# support for libcaca Group: Development/Languages/Mono @@ -106,6 +110,7 @@ Requires: mono %description csharp This package contains all that is needed to use libcaca from C# code. +%endif %if 0%{?withjava} == 1 @@ -219,7 +224,9 @@ make %{?_smp_mflags} %fdupes -s %{buildroot}%{python_sitelib}/caca/ %fdupes -s %{buildroot}%{_mandir}/ +%if %{with mono} %fdupes -s %{buildroot}%{_libdir}/mono +%endif %post -n libcaca0 -p /sbin/ldconfig @@ -258,9 +265,11 @@ make %{?_smp_mflags} %{_libdir}/jni/libcaca-java.so %endif +%if %{with mono} %files csharp %defattr(-, root, root, 0755) %{_libdir}/mono +%endif %files ruby %defattr(-, root, root, 0755)