File rds-tools.spec of Package rds-tools

#
# spec file for package rds-tools
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define version_extra -1

Name:           rds-tools
Summary:        Support tools for Reliable Datagram Sockets
License:        BSD-3-Clause or GPL-2.0
Group:          System/Console
Version:        2.3.11
Release:        0
Url:            http://oss.oracle.com/projects/rds/
Source:         https://github.com/oracle/rds-tools/archive/refs/tags/rdma-vos/rds-tools-%{version}%{?version_extra}.tar.gz#/%{name}-%{version}%{version_extra}.tar.gz
Source100:      README.md
Patch0:         rds-tools-external_cflags.patch
Patch1:         rds-tools-uninitialized_var.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  libcap-devel
BuildRequires:  libdhash-devel
BuildRequires:  libjson-c-devel
ExcludeArch:    %ix86 %arm

%description
A collection of support tools for the RDS socket API.


%package        devel
Summary:        Development files for Reliable Datagram Sockets
Group:          Development/Libraries/C and C++

%description devel
This package provides the header needed to use the RDS socket API.

%prep
%autosetup -p0 -n rds-tools-rdma-vos-rds-tools-%{version}%{?version_extra}

%build
export CFLAGS="%{optflags} -Iinclude"
autoconf
%configure
make

%install
make DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%doc docs examples
%{_bindir}/rds-info
%{_bindir}/rds-ping
%{_bindir}/rds-stress
%{_mandir}/man1/rds*
%{_mandir}/man7/rds*

%files devel
%doc README
%defattr(-,root,root)
%{_includedir}/net/rds.h

%changelog
openSUSE Build Service is sponsored by