SPECS: libcaca.spec - this is not dotnet app, introduce without dotnet bcond

tommat tommat at pld-linux.org
Mon May 12 09:04:42 CEST 2008


Author: tommat                       Date: Mon May 12 07:04:42 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- this is not dotnet app, introduce without dotnet bcond

---- Files affected:
SPECS:
   libcaca.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: SPECS/libcaca.spec
diff -u SPECS/libcaca.spec:1.22 SPECS/libcaca.spec:1.23
--- SPECS/libcaca.spec:1.22	Mon May 12 08:23:03 2008
+++ SPECS/libcaca.spec	Mon May 12 09:04:37 2008
@@ -1,5 +1,18 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	dotnet		# don't build mono plugin
+#
+%ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
+%undefine	with_dotnet
+%endif
+%ifarch i386
+%undefine	with_dotnet
+%endif
+
+%if %{with dotnet}
 %include	/usr/lib/rpm/macros.mono
+%endif
 Summary:	Graphics library that outputs text instead of pixels
 Summary(pl.UTF-8):	Biblioteka graficzna wyświetlająca tekst zamiast pikseli
 Name:		libcaca
@@ -19,7 +32,7 @@
 BuildRequires:	imlib2-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool
-BuildRequires:	mono-csharp
+%{?with_dotnet:BuildRequires:	mono-csharp}
 BuildRequires:	rpmbuild(macros) >= 1.272
 BuildRequires:	rpmbuild(monoautodeps)
 BuildRequires:	ruby-devel
@@ -29,8 +42,6 @@
 BuildRequires:	tetex-makeindex
 BuildRequires:	tetex-metafont
 BuildRequires:	xorg-lib-libX11-devel
-ExclusiveArch:	%{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
-ExcludeArch:	i386
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		specflags	-fomit-frame-pointer
@@ -205,12 +216,13 @@
 %{__automake}
 %configure \
 	--disable-ncurses \
-	--enable-cxx \
+	--%{!?with_dotnet:dis}%{?with_dotnet:en}able-cxx \
 	--enable-gl \
 	--enable-plugins \
 	--enable-slang \
 	--enable-x11
 
+
 # ObjC file not used, use plain CC to link library to avoid C++/ObjC deps
 %{__make} \
 	OBJC="%{__cc}"
@@ -315,10 +327,12 @@
 %{_libdir}/libcaca++.a
 %{_libdir}/libcucul++.a
 
+%if %{with dotnet}
 %files -n dotnet-caca-sharp
 %defattr(644,root,root,755)
 %{_libdir}/caca-sharp
 %{_libdir}/cucul-sharp
+%endif
 
 %files -n ruby-caca
 %defattr(644,root,root,755)
@@ -332,6 +346,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2008-05-12 07:04:37  tommat
+- this is not dotnet app, introduce without dotnet bcond
+
 Revision 1.22  2008-05-12 06:23:03  tommat
 - EA where mono is avaliable
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libcaca.spec?r1=1.22&r2=1.23&f=u



More information about the pld-cvs-commit mailing list