3 %bcond_without static_libs # static library
5 Summary: The Reliable Event Logging Protocol library
6 Summary(pl.UTF-8): Biblioteka Reliable Event Logging Protocol
10 License: GPL v3+ or commercial
12 Source0: https://download.rsyslog.com/librelp/%{name}-%{version}.tar.gz
13 # Source0-md5: 9a90df3baeed1e5614a61bc594523630
14 URL: https://www.rsyslog.com/librelp/
15 BuildRequires: autoconf >= 2.61
16 BuildRequires: automake
17 BuildRequires: gnutls-devel >= 2.0.0
18 BuildRequires: libtool
19 BuildRequires: pkgconfig
20 Requires: gnutls-libs >= 2.0.0
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Librelp is an easy to use library for the RELP protocol. RELP (stands
25 for Reliable Event Logging Protocol) is a general-purpose, extensible
28 %description -l pl.UTF-8
29 Librelp to łatwa w użyciu biblioteka do protokołu RELP. RELP (Reliable
30 Event Logging Protocol - protokół wiarygodnego logowania zdarzeń).
33 Summary: Development files for librelp library
34 Summary(pl.UTF-8): Pliki programistyczne biblioteki librelp
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
39 This package contains the header files needed to develop applications
42 %description devel -l pl.UTF-8
43 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji z
44 użyciem biblioteki librelp.
47 Summary: Static librelp library
48 Summary(pl.UTF-8): Statyczna biblioteka librelp
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
53 Static librelp library.
55 %description static -l pl.UTF-8
56 Statyczna biblioteka librelp.
61 # strip common GPL text
62 %{__sed} -i -e '/^---------/,$ d' COPYING
71 --disable-silent-rules \
72 %{!?with_static_libs:--disable-static} \
78 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT
83 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
92 %defattr(644,root,root,755)
93 %doc AUTHORS COPYING ChangeLog doc/*.html
94 %attr(755,root,root) %{_libdir}/librelp.so.*.*.*
95 %attr(755,root,root) %{_libdir}/librelp.so.0
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/librelp.so
100 %{_includedir}/librelp.h
101 %{_pkgconfigdir}/relp.pc
103 %if %{with static_libs}
105 %defattr(644,root,root,755)