diff --git a/.gitignore b/.gitignore index e69de29..97f99c8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/fabtests-1.3.0.tar.bz2 diff --git a/0001-adjust-shebang-lines-in-rft_yaml_to_junit_xml-and-ru.patch b/0001-adjust-shebang-lines-in-rft_yaml_to_junit_xml-and-ru.patch new file mode 100644 index 0000000..2662714 --- /dev/null +++ b/0001-adjust-shebang-lines-in-rft_yaml_to_junit_xml-and-ru.patch @@ -0,0 +1,36 @@ +From 41d5a0d4048dc32ecbff36843e8aadad6b621ff5 Mon Sep 17 00:00:00 2001 +From: Michal Schmidt +Date: Tue, 19 Apr 2016 13:29:43 +0200 +Subject: [PATCH] adjust shebang lines in rft_yaml_to_junit_xml and + runfabtests.sh + +Do not use /usr/bin/env. Call the appropriate binary directly. +This way rpmbuild will record the right dependencies. +--- + scripts/rft_yaml_to_junit_xml | 2 +- + scripts/runfabtests.sh | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/scripts/rft_yaml_to_junit_xml b/scripts/rft_yaml_to_junit_xml +index feb646366a..2d3b3a30c4 100755 +--- a/scripts/rft_yaml_to_junit_xml ++++ b/scripts/rft_yaml_to_junit_xml +@@ -1,4 +1,4 @@ +-#!/usr/bin/env ruby ++#!/usr/bin/ruby + + # Copyright (c) 2015 Cisco Systems, Inc. All rights reserved. + # +diff --git a/scripts/runfabtests.sh b/scripts/runfabtests.sh +index a73340c8a6..85aceba6e3 100755 +--- a/scripts/runfabtests.sh ++++ b/scripts/runfabtests.sh +@@ -1,4 +1,4 @@ +-#!/usr/bin/env bash ++#!/bin/bash + + # + # Copyright (c) 2016, Cisco Systems, Inc. All rights reserved. +-- +2.7.3 + diff --git a/fabtests.spec b/fabtests.spec new file mode 100644 index 0000000..26d3b0f --- /dev/null +++ b/fabtests.spec @@ -0,0 +1,50 @@ +Name: fabtests +Version: 1.3.0 +Release: 3%{?dist} +Summary: Test suite for libfabric API +# include/jsmn.h and common/jsmn.c are licensed under MIT. +# All other source files permit distribution under BSD. Some of them +# additionaly expressly allow the option to be licensed under GPLv2. +# See the license headers in individual source files to see which those are. +License: BSD and (BSD or GPLv2) and MIT +Url: https://github.com/ofiwg/fabtests +Source: https://github.com/ofiwg/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2 +Patch0: 0001-adjust-shebang-lines-in-rft_yaml_to_junit_xml-and-ru.patch +BuildRequires: libfabric-devel >= 1.3.0 +BuildRequires: valgrind-devel +BuildRequires: gcc + +%description +Fabtests provides a set of examples that uses libfabric - a high-performance +fabric software library. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure --with-valgrind +make %{?_smp_mflags} V=1 + +%install +%make_install +# remove unpackaged files from the buildroot +rm -f %{buildroot}%{_libdir}/*.la + +%files +%{_datadir}/%{name}/ +%{_bindir}/* +%{_mandir}/man7/* +%doc AUTHORS README +%license COPYING + +%changelog +* Tue Apr 19 2016 Honggang Li - 1.3.0-3 +- Provide precise license information. + +* Thu Apr 14 2016 Honggang Li - 1.3.0-2 +- Remove license comment in file section. +- Merge duplicated file entries. + +* Thu Apr 14 2016 Honggang Li - 1.3.0-1 +- Import fabtests for Fedora. diff --git a/sources b/sources index e69de29..6592d12 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2ef01a2bff625b1cf1fcc9891e648866 fabtests-1.3.0.tar.bz2