From 2c8c073da598dd735e8dd77379477aa741c3bc08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 14 Nov 2023 09:07:57 +0100 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 libservicelog revision 4084c36a118278dacb100ae8a3c2977b --- .gitattributes | 23 +++++ baselibs.conf | 6 ++ libservicelog-1.1.19.tar.gz | 3 + libservicelog-rpmlintrc | 9 ++ libservicelog.changes | 184 ++++++++++++++++++++++++++++++++++++ libservicelog.spec | 124 ++++++++++++++++++++++++ system-group-service.conf | 3 + 7 files changed, 352 insertions(+) create mode 100644 .gitattributes create mode 100644 baselibs.conf create mode 100644 libservicelog-1.1.19.tar.gz create mode 100644 libservicelog-rpmlintrc create mode 100644 libservicelog.changes create mode 100644 libservicelog.spec create mode 100644 system-group-service.conf diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..b1345a7 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,6 @@ +libservicelog-1_1-1 + obsoletes "libservicelog- <= " + provides "libservicelog- = " +libservicelog-devel + requires -libservicelog- + requires "libservicelog-1_1-1- = " diff --git a/libservicelog-1.1.19.tar.gz b/libservicelog-1.1.19.tar.gz new file mode 100644 index 0000000..a10808d --- /dev/null +++ b/libservicelog-1.1.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf04b506ff5b4cbb4064490371810ff1feb3959133bf582d6f71b9a27b5dfeee +size 90198 diff --git a/libservicelog-rpmlintrc b/libservicelog-rpmlintrc new file mode 100644 index 0000000..dbdb3e3 --- /dev/null +++ b/libservicelog-rpmlintrc @@ -0,0 +1,9 @@ +# This line is mandatory to access the configuration functions +from Config import * + +addFilter("libservicelog.* shlib-policy-nonversioned-dir") +addFilter("libservicelog.* shlib-policy-missing-lib") +addFilter("libservicelog.* explicit-lib-dependency") +addFilter("libservicelog.* devel-file-in-non-devel-package") +addFilter("libservicelog.* zero-length") +addFilter("libservicelog.* no-binary") diff --git a/libservicelog.changes b/libservicelog.changes new file mode 100644 index 0000000..9a47d05 --- /dev/null +++ b/libservicelog.changes @@ -0,0 +1,184 @@ +------------------------------------------------------------------- +Thu Oct 26 15:11:01 UTC 2023 - Michal Suchanek + +- Use sysuser-tools package instead of creating the group (bsc#1216613) + +------------------------------------------------------------------- +Thu Jul 15 18:57:56 UTC 2021 - Jan Engelhardt + +- Drop --with-pic, has no effect with --disable-static. +- Replace PreReq with Requires(pre). +- Do not ignore error return from useradd. + +------------------------------------------------------------------- +Thu Jul 15 15:54:56 UTC 2021 - Michal Suchanek + +- Update to version 1.1.19 (jsc#SLE-18189) + - Fix segfault on servicelog_open() failure + - New project location + +------------------------------------------------------------------- +Mon Aug 28 08:53:47 UTC 2017 - jloeser@suse.com + +- version update to 1.1.18 (fate#322223, fate#326427) + - Sqlite bind call validation + - Added libservicelog test cases + - Print machine serial number + - Fixed few regression issues + +- removed patches: + * libservicelog-1.1.17-Fixes-fdopen-failure-issue-properly.patch + * libservicelog-1.1.17-Print-machine-serial-number-in-v29-path.patch + +------------------------------------------------------------------- +Thu Aug 10 12:47:12 UTC 2017 - msuchanek@suse.com + +- Machine serial number is not reported to Lpar for a SRC event + (bsc#1053227) + * libservicelog-1.1.17-Fixes-fdopen-failure-issue-properly.patch + * libservicelog-1.1.17-Print-machine-serial-number-in-v29-path.patch + +------------------------------------------------------------------- +Mon Mar 27 10:51:36 UTC 2017 - jloeser@suse.com + +- version update to 1.1.17 (fate#321443) + - NULL check before calling strdup + - Fixed various bugs + +------------------------------------------------------------------- +Tue Mar 22 16:15:16 UTC 2016 - jloeser@suse.com + +- version update to 1.1.16 (FATE#319556) + - see libservicelog-1.1.16/ChangeLog for changes + +- removed patches: + * libservicelog-printf_types.patch + +------------------------------------------------------------------- +Thu Sep 4 13:26:49 UTC 2014 - jengelh@inai.de + +- baselibs.conf did not match with the shared library package +- Remove libservicelog-lib_version.patch, there is no reason + provided to have it in the first place. +- Remove libservicelog-pkgconfig.patch; there is nothing wrong + with -L${libdir} in .pc files. +- Remove dlopen hacks; the packages ppc64-diag and servicelog which + OBS lists as dependants use no visible call to dlopen but do + a compile-time link. +- As the public header servicelog.h #includes , + Reqiures: sqlite3-devel is needed for libservicelog-devel. + +------------------------------------------------------------------- +Thu Sep 4 12:56:42 UTC 2014 - jloeser@suse.com + +- version update to 1.1.15 (BNC#894856) + - Cleanup build tools (configure.ac and Makefile.am) + +- modified patches: + * libservicelog-lib_version.patch + * libservicelog-pkgconfig.patch +------------------------------------------------------------------- +Fri Jan 17 10:31:57 UTC 2014 - jloeser@suse.com + +- version update to 1.1.14 (FATE#315456) + include servicelog.db and bootstrap.sh file into compression file + list +- Prereq: groupadd for %post + +------------------------------------------------------------------- +Tue Dec 10 19:07:21 UTC 2013 - dvaleev@suse.com + +- enable ppc64le + +------------------------------------------------------------------- +Thu Mar 28 12:26:33 UTC 2013 - dvaleev@suse.com + +- update to 1.1.23 +- Legalize SQL insert command input string +- Minor typo fix +- repair_action : fix output format issue +- drop libservicelog.install.patch +- refresh libservicelog-printf_types.patch + +------------------------------------------------------------------- +Wed Dec 5 18:09:10 UTC 2012 - dvaleev@suse.com + +- update to 1.1.12 + Upstream changelog: + Minor changes +- more printf types fixes (libservicelog-printf_types.patch) + +------------------------------------------------------------------- +Thu Jun 28 16:28:34 CEST 2012 - pth@suse.de + +- Using both -version-info and -release options for libtool is bogus, + therefore use version-info only and name shared library package + accordingly. +- Adapt requires of -devel package. + +------------------------------------------------------------------- +Tue Jan 31 16:01:42 CET 2012 - meissner@suse.de + +- buildreq autoconf and libtool so autoreconf -ivf works again. + +------------------------------------------------------------------- +Tue Jan 31 10:41:31 UTC 2012 - jengelh@medozas.de + +- Remove redundant tags/sections per specfile guideline suggestions +- Parallel building using %_smp_mflags + +------------------------------------------------------------------- +Wed Nov 2 12:31:42 UTC 2011 - dvaleev@suse.com + +- update to 1.1.11 + - new build requires librtas-devel pkg-config + - reworked patches + - Drop libservicelog.warnings.patch, + libservicelog.sqlite-include.patch + libservicelog-sqlite_fixes.patch + - Fix package description typo + - ppc,ppc64 exclusive package as it is requires librtas + +------------------------------------------------------------------- +Tue Apr 20 20:41:19 UTC 2010 - dimstar@opensuse.org + +- Fix build: use %__rm instead of %rm. + +------------------------------------------------------------------- +Mon Apr 19 10:50:30 UTC 2010 - pth@novell.com + +- Fix .changes + +------------------------------------------------------------------- +Wed Apr 14 18:23:27 UTC 2010 - pth@novell.com + +- Fix .pc file (bnc#588706) +- Only pass -L${libdir} if libdir isn't searched by default. +- Rename sqlite-fixes to libservicelog-sqlite_fixes.patch. + +------------------------------------------------------------------- +Mon Feb 1 11:53:00 UTC 2010 - jengelh@medozas.de + +- package baselibs.conf + +------------------------------------------------------------------- +Thu Dec 10 15:50:32 CET 2009 - duwe@suse.de + +- Fix sqlite free()s and one insert statement (bnc#482351) + +------------------------------------------------------------------- +Mon Jan 26 18:28:45 CET 2009 - crrodriguez@suse.de + +- remove "la" files + +------------------------------------------------------------------- +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.spec b/libservicelog.spec new file mode 100644 index 0000000..603652a --- /dev/null +++ b/libservicelog.spec @@ -0,0 +1,124 @@ +# +# spec file for package libservicelog +# +# Copyright (c) 2023 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%define lname libservicelog-1_1-1 +%if 0%{?suse_version} < 1500 +%global system_user_pkg 0 +%else +%global system_user_pkg 1 +%endif +Name: libservicelog +Version: 1.1.19 +Release: 0 +Summary: Servicelog Database and Library +License: LGPL-2.0-or-later +Group: Development/Libraries/C and C++ +URL: https://github.com/power-ras/libservicelog/ +#Git-Clone: https://github.com/power-ras/libservicelog.git +#Git-Web: https://github.com/power-ras/libservicelog/ +Source0: https://github.com/power-ras/libservicelog/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: baselibs.conf +Source2: libservicelog-rpmlintrc +Source3: system-group-service.conf +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: librtas-devel +BuildRequires: libtool +BuildRequires: pkgconfig +BuildRequires: sqlite3-devel +ExclusiveArch: ppc ppc64 ppc64le +%if %{system_user_pkg} +Requires(pre): sysuser-tools +%else +Requires(pre): %{_sbindir}/groupadd +%endif + +%description +The libservicelog 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. + +%package -n %{lname} +Summary: Servicelog Database and Library +Group: System/Libraries +Requires: %{name} + +%description -n %{lname} +The libservicelog 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. + +%package devel +Summary: Development files for libservicelog +Group: Development/Libraries/C and C++ +Requires: %{lname} = %{version} +Requires: glibc-devel +Requires: sqlite3-devel + +%description devel +Header files for building with libservicelog. + +%prep +%autosetup -p1 + +%build +autoreconf -fiv +%configure --disable-static +make %{?_smp_mflags} +%if %{system_user_pkg} +%sysusers_generate_pre %{SOURCE3} libservicelog system-group-service.conf +%else +cat > libservicelog.pre </dev/null || %{_sbindir}/groupadd -r service +EOF +%endif + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print +%if %{system_user_pkg} +install -m 0644 -D -t %{buildroot}%{_sysusersdir}/ %{SOURCE3} +%endif + +%pre -f libservicelog.pre + +%post -n %{lname} -p /sbin/ldconfig +%postun -n %{lname} -p /sbin/ldconfig + +%files +%license COPYING +%doc AUTHORS +%attr( 754, root, service ) %dir %{_localstatedir}/lib/servicelog +%attr( 644, root, service ) %{_localstatedir}/lib/servicelog/servicelog.db +%if %{system_user_pkg} +%{_sysusersdir}/system-group-service.conf +%endif + +%files -n %{lname} +%{_libdir}/lib*.so.* + +%files devel +%{_includedir}/servicelog-1 +%{_libdir}/pkgconfig/servicelog-1.pc +%{_libdir}/*.so + +%changelog diff --git a/system-group-service.conf b/system-group-service.conf new file mode 100644 index 0000000..a7cbb7c --- /dev/null +++ b/system-group-service.conf @@ -0,0 +1,3 @@ +# Type Name ID GECOS [HOME] +# Access to certain kernel and userspace facilities +g service - -