File librelp.spec of Package librelp
#
# spec file for package librelp
#
# Copyright (c) 2017 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 library_name librelp0
Name: librelp
Version: 1.12.0
Release: 0
Summary: A reliable logging library
License: GPL-3.0+
Group: Development/Libraries/C and C++
Url: http://www.librelp.com/
Source: http://download.rsyslog.com/librelp/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110
BuildRequires: pkgconfig(gnutls)
%else
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: gnutls-devel
%else
BuildRequires: libgnutls-devel
%endif
%endif
%description
librelp is an easy to use library for the RELP protocol. RELP in turn provides
reliable event logging over the network (and consequently RELP stands for
Reliable Event Logging Protocol). RELP was initiated by Rainer Gerhards after
he was finally upset by the lossy nature of plain tcp syslog and wanted a cure
for all these dangling issues.
RELP (and hence) librelp assures that no message is lost, not even when
connections break and a peer becomes unavailable. The current version of RELP
has a minimal window of opportunity for message duplication after a session has
been broken due to network problems. In this case, a few messages may be
duplicated (a problem that also exists with plain tcp syslog). Future versions
of RELP will address this shortcoming.
Please note that RELP is a general-purpose, extensible logging protocol. Even
though it was designed to solve the urgent need of rsyslog-to-rsyslog
communication, RELP supports many more applications. Extensible command verbs
provide ample opportunity to extend the protocol without affecting existing
applications.
%package -n %{library_name}
Summary: A reliable logging library
Group: Development/Libraries/C and C++
%description -n %{library_name}
librelp is an easy to use library for the RELP protocol. RELP in turn provides
reliable event logging over the network (and consequently RELP stands for
Reliable Event Logging Protocol). RELP was initiated by Rainer Gerhards after
he was finally upset by the lossy nature of plain tcp syslog and wanted a cure
for all these dangling issues.
RELP (and hence) librelp assures that no message is lost, not even when
connections break and a peer becomes unavailable. The current version of RELP
has a minimal window of opportunity for message duplication after a session has
been broken due to network problems. In this case, a few messages may be
duplicated (a problem that also exists with plain tcp syslog). Future versions
of RELP will address this shortcoming.
Please note that RELP is a general-purpose, extensible logging protocol. Even
though it was designed to solve the urgent need of rsyslog-to-rsyslog
communication, RELP supports many more applications. Extensible command verbs
provide ample opportunity to extend the protocol without affecting existing
applications.
%package devel
Summary: A reliable logging library
Group: Development/Libraries/C and C++
Requires: %{library_name} = %{version}
BuildRequires: openssl-devel >= 0.9.7
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?scientificlinux_version}
BuildRequires: gnutls-devel
%else
Requires: libgnutls-devel >= 1.4.0
%endif
%description devel
librelp is an easy to use library for the RELP protocol. RELP in turn provides
reliable event logging over the network (and consequently RELP stands for
Reliable Event Logging Protocol). RELP was initiated by Rainer Gerhards after
he was finally upset by the lossy nature of plain tcp syslog and wanted a cure
for all these dangling issues.
RELP (and hence) librelp assures that no message is lost, not even when
connections break and a peer becomes unavailable. The current version of RELP
has a minimal window of opportunity for message duplication after a session has
been broken due to network problems. In this case, a few messages may be
duplicated (a problem that also exists with plain tcp syslog). Future versions
of RELP will address this shortcoming.
Please note that RELP is a general-purpose, extensible logging protocol. Even
though it was designed to solve the urgent need of rsyslog-to-rsyslog
communication, RELP supports many more applications. Extensible command verbs
provide ample opportunity to extend the protocol without affecting existing
applications.
%prep
%setup -q
%build
%configure \
--disable-static \
--with-pic
make %{?_smp_mflags} V=1
%install
%make_install
rm %{buildroot}%{_libdir}/librelp.la
%post -n %{library_name} -p /sbin/ldconfig
%postun -n %{library_name} -p /sbin/ldconfig
%files -n librelp0
%defattr(-,root,root,-)
%{_libdir}/librelp.so.*
%files devel
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README doc/*.html
%{_includedir}/librelp.h
%{_libdir}/librelp.so
%{_libdir}/pkgconfig/relp.pc
%changelog
* Mon Sep 09 2025 Rainer Gerhards <rgerhards@adiscon.com> 1.12.0-1
- new upstream version
* Tue Jan 10 2023 Rainer Gerhards <rgerhards@adiscon.com> 1.11.0-1
- new upstream version
* Tue Feb 16 2021 Rainer Gerhards <rgerhards@adiscon.com> 1.10.0-1
- new upstream version
* Wed Nov 25 2020 Rainer Gerhards <rgerhards@adiscon.com> 1.9.0-1
- new upstream version
* Tue Sep 29 2020 Rainer Gerhards <rgerhards@adiscon.com> 1.8.0-1
- new upstream version
* Mon Aug 24 2020 Rainer Gerhards <rgerhards@adiscon.com> 1.7.0-1
- new upstream version
* Mon May 11 2020 Rainer Gerhards <rgerhards@adiscon.com> 1.6.0-1
- new upstream version
* Tue Jan 14 2020 Rainer Gerhards <rgerhards@adiscon.com> 1.5.0-1
- new upstream version
* Mon Mar 04 2019 Jan Gerhards <jgerhards@adiscon.com> 1.4.0-1
- new upstream version
* Tue Dec 11 2018 Jan Gerhards <jgerhards@adiscon.com> 1.3.0-1
- new upstream version
* Mon Sep 24 2018 Jan Gerhards <jgerhards@adiscon.com> 1.2.18-1
- new upstream version
* Sat Aug 18 2018 Jan Gerhards <jgerhards@adiscon.com> 1.2.16-1
- new upstream version