File riemann-c-client.spec of Package riemann-c-client

# spec file for package riemann-c-client
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Peter Czanik, Budapest, Hungary.
# 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

Name:		riemann-c-client
Version:	1.6.1
Release:	1
Summary:	The riemann C client
License:	GPL-2.0
Group:		System/Libraries
Source:		riemann-c-client-%{version}.tar.xz
Patch0:		riemann-c-client-1.6.1+gnutls3.1.diff
BuildRequires:  pkgconfig
BuildRequires:	protobuf-c
BuildRequires:  libjson-devel
BuildRequires:	libgnutls-devel
BuildRequires:	xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This is a C client library for the Riemann monitoring system, providing a
convenient and simple API, high test coverage and a copyleft license,
along with API and ABI stability.

%package devel
Summary:        Development files for riemann-c-client
Group:          Development/Libraries
Requires:       %{name} = %{version}
Requires:	protobuf-c
Requires:	libgnutls-devel

%description devel
This package provides files necessary for riemann-c-client development.

%setup -q -n riemann-c-client-%{version}
%patch0 -p1

make %_smp_mflags

make DESTDIR=${RPM_BUILD_ROOT} install




%attr(755,root,root) %{_libdir}/*
%attr(755,root,root) %{_bindir}/riemann-client

%files devel
%dir %{_includedir}/riemann/
%dir %{_includedir}/riemann/proto/
%attr(644,root,root) %{_libdir}/
%attr(644,root,root) %{_libdir}/
%attr(644,root,root) %{_libdir}/libriemann-client.a
%attr(644,root,root) %{_libdir}/
%attr(644,root,root) %{_includedir}/riemann/*.h
%attr(644,root,root) %{_includedir}/riemann/proto/*.h
%attr(644,root,root) %{_libdir}/pkgconfig/riemann-client.pc