Initial package for Fedora review request

Signed-off-by: Honggang Li <honli@redhat.com>
This commit is contained in:
Honggang Li 2016-04-19 09:05:31 -04:00
parent a2753a5ae1
commit 740096c940
4 changed files with 88 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/fabtests-1.3.0.tar.bz2

View File

@ -0,0 +1,36 @@
From 41d5a0d4048dc32ecbff36843e8aadad6b621ff5 Mon Sep 17 00:00:00 2001
From: Michal Schmidt <mschmidt@redhat.com>
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

50
fabtests.spec Normal file
View File

@ -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 <honli@redhat.com> - 1.3.0-3
- Provide precise license information.
* Thu Apr 14 2016 Honggang Li <honli@redhat.com> - 1.3.0-2
- Remove license comment in file section.
- Merge duplicated file entries.
* Thu Apr 14 2016 Honggang Li <honli@redhat.com> - 1.3.0-1
- Import fabtests for Fedora.

View File

@ -0,0 +1 @@
2ef01a2bff625b1cf1fcc9891e648866 fabtests-1.3.0.tar.bz2