From e834919e851b65a4ac2f8c2de044b3cf56d11fa5 Mon Sep 17 00:00:00 2001 From: Roman Rakus Date: Tue, 18 May 2010 11:46:16 +0000 Subject: [PATCH] Link with needed libraries (sqlite, rtas, rtasevent) --- libservicelog-1.1.9-libs.patch | 12 ++++++++++++ libservicelog.spec | 11 +++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 libservicelog-1.1.9-libs.patch diff --git a/libservicelog-1.1.9-libs.patch b/libservicelog-1.1.9-libs.patch new file mode 100644 index 0000000..f60086d --- /dev/null +++ b/libservicelog-1.1.9-libs.patch @@ -0,0 +1,12 @@ +diff -up libservicelog-1.1/src/Makefile.am.libs libservicelog-1.1/src/Makefile.am +--- libservicelog-1.1/src/Makefile.am.libs 2010-05-17 13:24:46.297064301 -0400 ++++ libservicelog-1.1/src/Makefile.am 2010-05-17 13:26:07.737064638 -0400 +@@ -34,7 +34,7 @@ pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = servicelog-1.pc + + libservicelog_la_LDFLAGS = -module -version-info \ +- @GENERIC_API_VERSION@ -release @GENERIC_RELEASE@ ++ @GENERIC_API_VERSION@ -release @GENERIC_RELEASE@ $(AM_LDFLAGS) + + AM_CFLAGS = -Wall -g -DDEST_DIR='"${exec_prefix}"' + AM_LDFLAGS = -lsqlite3 -lrtas -lrtasevent diff --git a/libservicelog.spec b/libservicelog.spec index 98d5645..574c3ad 100644 --- a/libservicelog.spec +++ b/libservicelog.spec @@ -1,6 +1,6 @@ Name: libservicelog Version: 1.1.9 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Servicelog Database and Library Group: System Environment/Libraries @@ -23,6 +23,9 @@ Patch0: libservicelog-1.1.9-install.patch # Added missing include Patch1: libservicelog-1.1.9-include.patch +# Link with needed libraries +Patch2: libservicelog-1.1.9-libs.patch + %description The libservicelog package contains a library to create and maintain a database for storing events related to system service. This database @@ -44,6 +47,7 @@ Contains header files for building with libservicelog. %setup -q -n %{name}-1.1 %patch0 -p1 -b .install %patch1 -p1 -b .include +%patch2 -p1 -b .libs %build autoreconf -fiv @@ -72,17 +76,20 @@ getent group service >/dev/null || /usr/sbin/groupadd service %defattr(-,root,root,-) %doc COPYING NEWS AUTHORS %{_libdir}/libservicelog-*.so.* -%{_libdir}/*.so %attr( 754, root, service ) %dir /var/lib/servicelog/servicelog.db %dir /var/lib/servicelog %files devel %defattr(-,root,root,-) %{_includedir}/servicelog-1 +%{_libdir}/*.so %{_libdir}/pkgconfig/servicelog-1.pc %changelog +* Tue May 18 2010 Roman Rakus - 1.1.9-2 +- Link with needed libraries (sqlite, rtas, rtasevent) + * Tue May 11 2010 Roman Rakus - 1.1.9-1 - Update to 1.1.9