fix bare elifs to rebuild

This commit is contained in:
Caolan McNamara 2009-03-06 10:44:02 +00:00
parent 6650e12486
commit 319119304f
2 changed files with 18 additions and 1 deletions

12
opensm-3.2.1-elif.patch Normal file
View File

@ -0,0 +1,12 @@
diff -ru opensm-3.2.1.orig/include/vendor/osm_vendor.h opensm-3.2.1/include/vendor/osm_vendor.h
--- opensm-3.2.1.orig/include/vendor/osm_vendor.h 2009-03-06 10:34:06.000000000 +0000
+++ opensm-3.2.1/include/vendor/osm_vendor.h 2009-03-06 10:35:10.000000000 +0000
@@ -70,7 +70,7 @@
#include <vendor/osm_vendor_ibumad.h>
#elif defined( OSM_VENDOR_INTF_AL )
#include <vendor/osm_vendor_al.h>
-#elif
+#else
#error No MAD Interface selected!
#error Choose an interface in osm_vendor_select.h
#endif

View File

@ -1,6 +1,6 @@
Name: opensm
Version: 3.2.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: OpenIB InfiniBand Subnet Manager and management utilities
Group: System Environment/Daemons
License: GPLv2 or BSD
@ -10,6 +10,7 @@ Source1: opensm.conf
Source2: opensm.logrotate
Source3: opensm.initd
Patch0: opensm-3.2.1-rpath.patch
Patch1: opensm-3.2.1-elif.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libibmad-devel >= 1.2.0, libtool, bison, flex, byacc
Requires: %{name}-libs = %{version}-%{release}, logrotate, rdma
@ -47,6 +48,7 @@ Static version of opensm libraries
%prep
%setup -q
%patch0 -p1 -b .rpath
%patch1 -p1 -b .elif
./autogen.sh
%build
@ -108,6 +110,9 @@ fi
%{_libdir}/lib*.a
%changelog
* Fri Mar 06 2009 Caolán McNamara <caolanm@redhat.com> - 3.2.1-3
- fix bare elifs to rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild