File rds-tools.spec of Package rds-tools

#
# spec file for package rds-tools (Version 2.0.4)
#
# Copyright (c) 2008-2014 SUSE LINUX Products 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/
#

# norootforbuild


Name:           rds-tools
Summary:        RDS Support Tools
Version:        2.0.4
Release:        1
License:        BSD-2-Clause or GPL-2.0
Group:          System/Console
Url:            http://oss.oracle.com/projects/rds/
Source:         https://oss.oracle.com/projects/rds/dist/files/sources/%{name}-%{version}.tar.gz
Patch0:         rds-tools-external_cflags.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  automake autoconf libtool

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


%package        devel
Summary:        RDS development files
Group:          Development/Libraries/C and C++

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

%prep
%setup -q
%patch0

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

%install
make DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man7/*

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

%changelog