From 4716fda2f051aff6906c43a966daf4b6035e6d75 Mon Sep 17 00:00:00 2001 From: Peter Vrabec Date: Jun 13 2008 08:54:56 +0000 Subject: initial package build --- diff --git a/.cvsignore b/.cvsignore index e69de29..6dd095a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +librelp-0.1.1.tar.gz diff --git a/librelp.spec b/librelp.spec new file mode 100644 index 0000000..f5d8daf --- /dev/null +++ b/librelp.spec @@ -0,0 +1,68 @@ +Summary: The Reliable Event Logging Protocol library +Name: librelp +Version: 0.1.1 +Release: 2%{?dist} +License: GPLv3+ +Group: System Environment/Libraries +URL: http://www.rsyslog.com/ +Source0: http://download.rsyslog.com/librelp/%{name}-%{version}.tar.gz +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Librelp is an easy to use library for the RELP protocol. RELP (stands +for Reliable Event Logging Protocol) is a general-purpose, extensible +logging protocol. + +%package devel +Summary: Development files for the %{name} package +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Librelp is an easy to use library for the RELP protocol. The +librelp-devel package contains the header files and libraries needed +to develop applications using librelp. + +%prep +%setup -q + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +rm $RPM_BUILD_ROOT/%{_libdir}/*.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun +if [ "$1" = "0" ] ; then + /sbin/ldconfig +fi + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING NEWS README doc/*html +%{_libdir}/librelp.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/* +%{_libdir}/librelp.so +%{_libdir}/pkgconfig/relp.pc + +%changelog +* Wed May 7 2008 Tomas Heinrich 0.1.1-2 +- removed "BuildRequires: autoconf automake" + +* Tue Apr 29 2008 Tomas Heinrich 0.1.1-1 +- initial build diff --git a/sources b/sources index e69de29..50e6f47 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8d98ef2dadeff03b5bd40efed7ae418d librelp-0.1.1.tar.gz