packages: libservicelog/libservicelog-install.patch (NEW), libservicelog/li...
qboosh
qboosh at pld-linux.org
Sun May 1 20:39:32 CEST 2011
Author: qboosh Date: Sun May 1 18:39:32 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/libservicelog:
libservicelog-install.patch (NONE -> 1.1) (NEW), libservicelog-link.patch (NONE -> 1.1) (NEW), libservicelog-sqlite3.patch (NONE -> 1.1) (NEW), libservicelog.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/libservicelog/libservicelog-install.patch
diff -u /dev/null packages/libservicelog/libservicelog-install.patch:1.1
--- /dev/null Sun May 1 20:39:32 2011
+++ packages/libservicelog/libservicelog-install.patch Sun May 1 20:39:27 2011
@@ -0,0 +1,10 @@
+--- libservicelog-1.1.11/Makefile.am.orig 2011-03-14 22:34:44.000000000 +0100
++++ libservicelog-1.1.11/Makefile.am 2011-05-01 20:20:27.528426964 +0200
+@@ -17,7 +17,3 @@
+
+ library_includedir = ${includedir}/servicelog-1/
+ library_include_HEADERS = servicelog-1/servicelog.h servicelog-1/libservicelog.h
+-
+-install-exec-hook:
+- install -D --mode=754 --group=service servicelog.db \
+- ${DESTDIR}/var/lib/servicelog/servicelog.db
================================================================
Index: packages/libservicelog/libservicelog-link.patch
diff -u /dev/null packages/libservicelog/libservicelog-link.patch:1.1
--- /dev/null Sun May 1 20:39:32 2011
+++ packages/libservicelog/libservicelog-link.patch Sun May 1 20:39:27 2011
@@ -0,0 +1,23 @@
+--- 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 at GENERIC_PACKAGE_NAME@
++Libs: -L${libdir} -l at GENERIC_PACKAGE_NAME@
++Libs.private: -lsqlite3 -lrtas -lrtasevent
+ Cflags: -I${includedir}/@GENERIC_PACKAGE_NAME at -@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)
================================================================
Index: packages/libservicelog/libservicelog-sqlite3.patch
diff -u /dev/null packages/libservicelog/libservicelog-sqlite3.patch:1.1
--- /dev/null Sun May 1 20:39:32 2011
+++ packages/libservicelog/libservicelog-sqlite3.patch Sun May 1 20:39:27 2011
@@ -0,0 +1,11 @@
+--- libservicelog-1.1.11/configure.ac.orig 2011-03-14 22:34:44.000000000 +0100
++++ libservicelog-1.1.11/configure.ac 2011-05-01 12:34:16.077490378 +0200
+@@ -54,7 +54,7 @@
+ AC_SUBST(LIBTOOL_DEPS)
+
+ # Checks for libraries.
+-AC_CHECK_LIB([sqlite], [sqlite3_open sqlite3_exec sqlite3_close
++AC_CHECK_LIB([sqlite3], [sqlite3_open sqlite3_exec sqlite3_close
+ sqlite3_errmsg sqlite_prepare sqlite3_step sqlilte3_column_bytes
+ sqlite3_column_blob sqlite3_finalize sqlite3_bind_blob
+ sqlite3_last_insert_rowid])
================================================================
Index: packages/libservicelog/libservicelog.spec
diff -u /dev/null packages/libservicelog/libservicelog.spec:1.1
--- /dev/null Sun May 1 20:39:32 2011
+++ packages/libservicelog/libservicelog.spec Sun May 1 20:39:27 2011
@@ -0,0 +1,119 @@
+# $Revision$, $Date$
+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
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/05/01 18:39:27 qboosh
+- new
================================================================
More information about the pld-cvs-commit
mailing list