]> git.pld-linux.org Git - packages/libservicelog.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 1 May 2011 18:39:27 +0000 (18:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libservicelog-install.patch -> 1.1
    libservicelog-link.patch -> 1.1
    libservicelog-sqlite3.patch -> 1.1
    libservicelog.spec -> 1.1

libservicelog-install.patch [new file with mode: 0644]
libservicelog-link.patch [new file with mode: 0644]
libservicelog-sqlite3.patch [new file with mode: 0644]
libservicelog.spec [new file with mode: 0644]

diff --git a/libservicelog-install.patch b/libservicelog-install.patch
new file mode 100644 (file)
index 0000000..6600db3
--- /dev/null
@@ -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
diff --git a/libservicelog-link.patch b/libservicelog-link.patch
new file mode 100644 (file)
index 0000000..955d7df
--- /dev/null
@@ -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@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)
diff --git a/libservicelog-sqlite3.patch b/libservicelog-sqlite3.patch
new file mode 100644 (file)
index 0000000..e8dc26a
--- /dev/null
@@ -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])
diff --git a/libservicelog.spec b/libservicelog.spec
new file mode 100644 (file)
index 0000000..8c3a8f9
--- /dev/null
@@ -0,0 +1,109 @@
+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
This page took 0.108257 seconds and 4 git commands to generate.