]> git.pld-linux.org Git - packages/librelp.git/blob - librelp.spec
- new, partially based on Fedora
[packages/librelp.git] / librelp.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4
5 Summary:        The Reliable Event Logging Protocol library
6 Summary(pl.UTF-8):      Biblioteka Reliable Event Logging Protocol
7 Name:           librelp
8 Version:        1.6.0
9 Release:        1
10 License:        GPL v3+ or commercial
11 Group:          Libraries
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)
22
23 %description
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
26 logging protocol.
27
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ń).
31
32 %package devel
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}
37
38 %description devel
39 This package contains the header files needed to develop applications
40 using librelp.
41
42 %description devel -l pl.UTF-8
43 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji z
44 użyciem biblioteki librelp.
45
46 %package static
47 Summary:        Static librelp library
48 Summary(pl.UTF-8):      Statyczna biblioteka librelp
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Static librelp library.
54
55 %description static -l pl.UTF-8
56 Statyczna biblioteka librelp.
57
58 %prep
59 %setup -q
60
61 # strip common GPL text
62 %{__sed} -i -e '/^---------/,$ d' COPYING
63
64 %build
65 %{__libtoolize}
66 %{__aclocal} -I m4
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 %configure \
71         --disable-silent-rules \
72         %{!?with_static_libs:--disable-static} \
73         --disable-tls-openssl
74
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files
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
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/librelp.so
100 %{_includedir}/librelp.h
101 %{_pkgconfigdir}/relp.pc
102
103 %if %{with static_libs}
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/librelp.a
107 %endif
This page took 0.113172 seconds and 3 git commands to generate.