[Mono-list] Patch to build RPM on S390

Ferguson, Neale Neale.Ferguson@SoftwareAG-USA.com
Fri, 7 Mar 2003 07:51:41 -0700


The following patch will allow the building of RPMs from the src RPM:

--- mono-orig.spec      2003-03-07 14:46:39.000000000 -0500
+++ mono.spec   2003-03-07 14:29:42.000000000 -0500
@@ -36,11 +36,13 @@

 %install
 rm -rf %{buildroot}
 (cd mono*;
 %makeinstall
+%ifarch s390
  cp mono/interpreter/mint %{buildroot}/usr/bin/mono
+%endif
 )

 %clean
 rm -rf %{buildroot}

@@ -82,12 +84,14 @@
 %{_mandir}/man5/*


 %files devel
 %defattr(-, root, root)
+%ifnarch s390
 %{_libdir}/*.a
 %{_libdir}/*.la
 %{_libdir}/*.so
+%endif
 %{_libdir}/pkgconfig/*
 %{_includedir}/*
 %{_datadir}/%{name}/*

Neale Ferguson