From 4ccb7c28d5b5fe7bb86e216a05e1490c3def8d0b84ef6c5a6dff0daeb33c9536 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 13 Sep 2008 02:42:07 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libservicelog?expand=0&rev=1 --- .gitattributes | 23 +++++ .gitignore | 1 + baselibs.conf | 6 ++ libservicelog-1.0.1.tar.bz2 | 3 + libservicelog.changes | 11 +++ libservicelog.install.patch | 13 +++ libservicelog.spec | 132 +++++++++++++++++++++++++++++ libservicelog.sqlite-include.patch | 27 ++++++ libservicelog.warnings.patch | 51 +++++++++++ ready | 0 10 files changed, 267 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 baselibs.conf create mode 100644 libservicelog-1.0.1.tar.bz2 create mode 100644 libservicelog.changes create mode 100644 libservicelog.install.patch create mode 100644 libservicelog.spec create mode 100644 libservicelog.sqlite-include.patch create mode 100644 libservicelog.warnings.patch create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..869f1d2 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,6 @@ +libservicelog-1_0-1 + obsoletes "libservicelog- <= " + provides "libservicelog- = " +libservicelog-devel + requires -libservicelog- + requires "libservicelog-1_0-1- = " diff --git a/libservicelog-1.0.1.tar.bz2 b/libservicelog-1.0.1.tar.bz2 new file mode 100644 index 0000000..2466a15 --- /dev/null +++ b/libservicelog-1.0.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4b882e68e059b509156429044d876e6278462d7b4f35a0d8f9818bf7b562b40 +size 403827 diff --git a/libservicelog.changes b/libservicelog.changes new file mode 100644 index 0000000..caa84db --- /dev/null +++ b/libservicelog.changes @@ -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) + diff --git a/libservicelog.install.patch b/libservicelog.install.patch new file mode 100644 index 0000000..49cd221 --- /dev/null +++ b/libservicelog.install.patch @@ -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 diff --git a/libservicelog.spec b/libservicelog.spec new file mode 100644 index 0000000..f56442f --- /dev/null +++ b/libservicelog.spec @@ -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 + Nathan Fontenot + +%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 + Nathan Fontenot + +%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 + Nathan Fontenot + +%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) diff --git a/libservicelog.sqlite-include.patch b/libservicelog.sqlite-include.patch new file mode 100644 index 0000000..49111de --- /dev/null +++ b/libservicelog.sqlite-include.patch @@ -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 + #include +-#include + + #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 diff --git a/libservicelog.warnings.patch b/libservicelog.warnings.patch new file mode 100644 index 0000000..18a4ee5 --- /dev/null +++ b/libservicelog.warnings.patch @@ -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 . + */ + ++#define _GNU_SOURCE + #include + #include + #include + #include + #include +-#define _XOPEN_SOURCE + #include + #include + #include +--- a/src/notify.c ++++ b/src/notify.c +@@ -18,6 +18,7 @@ + * Licence along with this program; if not, see . + */ + ++#define _GNU_SOURCE + #include + #include + #include +--- a/src/repair_action.c ++++ b/src/repair_action.c +@@ -18,12 +18,12 @@ + * Licence along with this program; if not, see . + */ + ++#define _GNU_SOURCE + #include + #include + #include + #include + #include +-#define _XOPEN_SOURCE + #include + #include + #include diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4