--- /dev/null
+--- libservicelog-1.1.11/src/servicelog-1.pc.in.orig 2011-03-14 22:34:44.000000000 +0100
++++ libservicelog-1.1.11/src/servicelog-1.pc.in 2011-05-01 20:20:03.681759499 +0200
+@@ -6,5 +6,6 @@
+ Name: servicelog
+ Description: Library for access to the system servicelog
+ Version: @VERSION@
+-Libs: -L${libdir} -lsqlite3 -l@GENERIC_PACKAGE_NAME@
++Libs: -L${libdir} -l@GENERIC_PACKAGE_NAME@
++Libs.private: -lsqlite3 -lrtas -lrtasevent
+ Cflags: -I${includedir}/@GENERIC_PACKAGE_NAME@-@GENERIC_API_VERSION@
+--- libservicelog-1.1.11/src/Makefile.am.orig 2011-03-14 22:34:44.000000000 +0100
++++ libservicelog-1.1.11/src/Makefile.am 2011-05-01 20:26:36.195105975 +0200
+@@ -35,9 +35,9 @@
+
+ libservicelog_la_LDFLAGS = -module -version-info \
+ @GENERIC_API_VERSION@ -release @GENERIC_RELEASE@
++libservicelog_la_LIBADD = -lsqlite3 -lrtas -lrtasevent
+
+ AM_CFLAGS = -Wall -g -DDEST_DIR='"${exec_prefix}"'
+-AM_LDFLAGS = -lsqlite3 -lrtas -lrtasevent
+
+ LIBTOOL_DEPS = @LIBTOOL_DEPS@
+ libtool: $(LIBTOOL_DEPS)
--- /dev/null
+Summary: Library for access to the system servicelog
+Summary(pl.UTF-8): Biblioteka dostępu do logu zdarzeń serwisowych w systemie
+Name: libservicelog
+Version: 1.1.11
+Release: 1
+License: LGPL v2+
+Group: Libraries
+Source0: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
+# Source0-md5: 7a65aa1fd1b524f8878b256f1527ca9a
+Patch0: %{name}-sqlite3.patch
+Patch1: %{name}-link.patch
+Patch2: %{name}-install.patch
+URL: http://linux-diag.sourceforge.net/servicelog/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: librtas-devel
+BuildRequires: libtool
+BuildRequires: sqlite3-devel
+# requires ppc-specific librtas
+ExclusiveArch: ppc ppc64
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains a library to create and maintain a database for
+storing events related to system service. This database allows for the
+logging of serviceable and informational events, and for the logging
+of service procedures that have been performed upon the system.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera bibliotekę tworzącą i utrzymującą bazę danych do
+przechowywania zdarzeń związanych z serwisowaniem systemu. Baza ta
+pozwala na logowanie zdarzeń serwisowych i informacyjnych oraz
+wykonanych w systemie procedur serwisowych.
+
+%package devel
+Summary: Header files for servicelog library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki servicelog
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: sqlite3-devel
+
+%description devel
+Header files for servicelog library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki servicelog.
+
+%package static
+Summary: Static servicelog library
+Summary(pl.UTF-8): Statyczna biblioteka servicelog
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static servicelog library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka servicelog.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/var/lib/servicelog
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkgconfig
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libservicelog.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_libdir}/libservicelog-1.1.so.*.*.*
+%ghost %{_libdir}/libservicelog-1.1.so.1
+%dir /var/lib/servicelog
+
+%files devel
+%defattr(644,root,root,755)
+%doc STATUS
+%attr(755,root,root) %{_libdir}/libservicelog.so
+%{_includedir}/servicelog-1
+%{_pkgconfigdir}/servicelog-1.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libservicelog.a