diff --git a/opensm-3.2.1-elif.patch b/opensm-3.2.1-elif.patch new file mode 100644 index 0000000..779f023 --- /dev/null +++ b/opensm-3.2.1-elif.patch @@ -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 + #elif defined( OSM_VENDOR_INTF_AL ) + #include +-#elif ++#else + #error No MAD Interface selected! + #error Choose an interface in osm_vendor_select.h + #endif diff --git a/opensm.spec b/opensm.spec index 4672615..58e531c 100644 --- a/opensm.spec +++ b/opensm.spec @@ -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 - 3.2.1-3 +- fix bare elifs to rebuild + * Thu Feb 26 2009 Fedora Release Engineering - 3.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild