This commit is contained in:
commit
4ccb7c28d5
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
6
baselibs.conf
Normal file
6
baselibs.conf
Normal file
@ -0,0 +1,6 @@
|
||||
libservicelog-1_0-1
|
||||
obsoletes "libservicelog-<targettype> <= <version>"
|
||||
provides "libservicelog-<targettype> = <version>"
|
||||
libservicelog-devel
|
||||
requires -libservicelog-<targettype>
|
||||
requires "libservicelog-1_0-1-<targettype> = <version>"
|
3
libservicelog-1.0.1.tar.bz2
Normal file
3
libservicelog-1.0.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f4b882e68e059b509156429044d876e6278462d7b4f35a0d8f9818bf7b562b40
|
||||
size 403827
|
11
libservicelog.changes
Normal file
11
libservicelog.changes
Normal file
@ -0,0 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 10 11:52:07 CEST 2008 - olh@suse.de
|
||||
|
||||
- link against sqlite3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 29 11:10:42 CEST 2008 - olh@suse.de
|
||||
|
||||
- new libservicelog-1.0.1, libservicelog-1_0-1 and libservicelog-devel
|
||||
packages (bnc#417533)
|
||||
|
13
libservicelog.install.patch
Normal file
13
libservicelog.install.patch
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
Makefile.am | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -19,5 +19,5 @@ library_includedir = ${includedir}/servi
|
||||
library_include_HEADERS = servicelog-1/servicelog.h
|
||||
|
||||
install-exec-hook:
|
||||
- install -D --mode=754 --group=service servicelog.db \
|
||||
+ install -D --mode=754 servicelog.db \
|
||||
${DESTDIR}/var/lib/servicelog/servicelog.db
|
132
libservicelog.spec
Normal file
132
libservicelog.spec
Normal file
@ -0,0 +1,132 @@
|
||||
#
|
||||
# spec file for package libservicelog (Version 1.0.1)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: libservicelog
|
||||
Version: 1.0.1
|
||||
Release: 2
|
||||
Summary: Servicelog Database and Library
|
||||
Requires: libservicelog-library
|
||||
BuildRequires: sqlite-devel
|
||||
Group: System/Libraries
|
||||
License: LGPL v2.0 or later
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Url: http://linux-diag.sourceforge.net/servicelog/
|
||||
Source0: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.bz2
|
||||
Patch0: libservicelog.install.patch
|
||||
Patch1: libservicelog.warnings.patch
|
||||
Patch2: libservicelog.sqlite-include.patch
|
||||
|
||||
%description
|
||||
The libservicelgo 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.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Mike Strosaker <strosake@austin.ibm.com>
|
||||
Nathan Fontenot <nfont@austin.ibm.com>
|
||||
|
||||
%package -n libservicelog-1_0-1
|
||||
License: LGPL v2.0 or later
|
||||
Summary: Servicelog Database and Library
|
||||
Group: System/Libraries
|
||||
Provides: libservicelog-library
|
||||
|
||||
%description -n libservicelog-1_0-1
|
||||
The libservicelgo 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.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Mike Strosaker <strosake@austin.ibm.com>
|
||||
Nathan Fontenot <nfont@austin.ibm.com>
|
||||
|
||||
%package devel
|
||||
License: LGPL v2.0 or later
|
||||
Summary: Development files for libservicelog
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Contains header files for building with libservicelog.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Mike Strosaker <strosake@austin.ibm.com>
|
||||
Nathan Fontenot <nfont@austin.ibm.com>
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
%configure --disable-static
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%pre
|
||||
/usr/sbin/groupadd -r service || echo groupadd service failed
|
||||
|
||||
%post -n libservicelog-1_0-1 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libservicelog-1_0-1 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING NEWS AUTHORS
|
||||
%attr( 754, root, service ) %dir /var/lib/servicelog
|
||||
%attr( 644, root, service ) /var/lib/servicelog/servicelog.db
|
||||
|
||||
%files -n libservicelog-1_0-1
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/lib*.so.*
|
||||
# dlopen object
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/servicelog-1
|
||||
%{_libdir}/*.la
|
||||
%{_libdir}/pkgconfig/servicelog-1.pc
|
||||
|
||||
%changelog
|
||||
* Wed Sep 10 2008 olh@suse.de
|
||||
- link against sqlite3
|
||||
* Fri Aug 29 2008 olh@suse.de
|
||||
- new libservicelog-1.0.1, libservicelog-1_0-1 and libservicelog-devel
|
||||
packages (bnc#417533)
|
27
libservicelog.sqlite-include.patch
Normal file
27
libservicelog.sqlite-include.patch
Normal file
@ -0,0 +1,27 @@
|
||||
do not required sqlite, it is linked statically
|
||||
---
|
||||
servicelog-1/servicelog.h | 1 -
|
||||
src/Makefile.am | 2 +-
|
||||
2 files changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
--- a/servicelog-1/servicelog.h
|
||||
+++ b/servicelog-1/servicelog.h
|
||||
@@ -24,7 +24,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
-#include <sqlite3.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -27,7 +27,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
|
51
libservicelog.warnings.patch
Normal file
51
libservicelog.warnings.patch
Normal file
@ -0,0 +1,51 @@
|
||||
strptime man page is incorrect
|
||||
_GNU_SOURCE defines also _XOPEN_SOURCE
|
||||
|
||||
---
|
||||
src/event.c | 2 +-
|
||||
src/notify.c | 1 +
|
||||
src/repair_action.c | 2 +-
|
||||
3 files changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/src/event.c
|
||||
+++ b/src/event.c
|
||||
@@ -18,12 +18,12 @@
|
||||
* Licence along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
+#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
-#define _XOPEN_SOURCE
|
||||
#include <time.h>
|
||||
#include <grp.h>
|
||||
#include <sys/types.h>
|
||||
--- a/src/notify.c
|
||||
+++ b/src/notify.c
|
||||
@@ -18,6 +18,7 @@
|
||||
* Licence along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
+#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
--- a/src/repair_action.c
|
||||
+++ b/src/repair_action.c
|
||||
@@ -18,12 +18,12 @@
|
||||
* Licence along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
+#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
-#define _XOPEN_SOURCE
|
||||
#include <time.h>
|
||||
#include <grp.h>
|
||||
#include <sys/types.h>
|
Loading…
x
Reference in New Issue
Block a user