2008-09-13 04:42:07 +02:00
|
|
|
#
|
2012-01-31 11:41:37 +01:00
|
|
|
# spec file for package libservicelog
|
2008-09-13 04:42:07 +02:00
|
|
|
#
|
2023-10-27 11:08:12 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2008-09-13 04:42:07 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-07-15 20:41:00 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-13 04:42:07 +02:00
|
|
|
#
|
|
|
|
|
2012-01-31 16:12:00 +01:00
|
|
|
|
2014-09-05 09:35:35 +02:00
|
|
|
%define lname libservicelog-1_1-1
|
2023-10-27 11:08:12 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
%global system_user_pkg 0
|
|
|
|
%else
|
|
|
|
%global system_user_pkg 1
|
|
|
|
%endif
|
|
|
|
Name: libservicelog
|
2021-07-15 20:41:00 +02:00
|
|
|
Version: 1.1.19
|
2012-01-31 11:41:37 +01:00
|
|
|
Release: 0
|
2008-09-13 04:42:07 +02:00
|
|
|
Summary: Servicelog Database and Library
|
2021-07-15 20:41:00 +02:00
|
|
|
License: LGPL-2.0-or-later
|
2021-07-16 10:42:22 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2021-07-15 20:41:00 +02:00
|
|
|
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
|
2014-09-05 09:35:35 +02:00
|
|
|
Source1: baselibs.conf
|
|
|
|
Source2: libservicelog-rpmlintrc
|
2023-10-27 11:08:12 +02:00
|
|
|
Source3: system-group-service.conf
|
2012-01-31 16:12:00 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2012-01-31 11:41:37 +01:00
|
|
|
BuildRequires: librtas-devel
|
2012-01-31 16:12:00 +01:00
|
|
|
BuildRequires: libtool
|
2023-10-27 11:08:12 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-01-31 11:41:37 +01:00
|
|
|
BuildRequires: sqlite3-devel
|
2013-12-10 20:39:39 +01:00
|
|
|
ExclusiveArch: ppc ppc64 ppc64le
|
2023-10-27 11:08:12 +02:00
|
|
|
%if %{system_user_pkg}
|
|
|
|
Requires(pre): sysuser-tools
|
|
|
|
%else
|
|
|
|
Requires(pre): %{_sbindir}/groupadd
|
|
|
|
%endif
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%description
|
2011-11-03 13:20:54 +01:00
|
|
|
The libservicelog package contains a library to create and maintain a
|
2014-09-05 09:35:35 +02:00
|
|
|
database for storing events related to system service. This database
|
2008-09-13 04:42:07 +02:00
|
|
|
allows for the logging of serviceable and informational events, and for
|
|
|
|
the logging of service procedures that have been performed upon the
|
|
|
|
system.
|
|
|
|
|
2023-10-27 11:08:12 +02:00
|
|
|
%package -n %{lname}
|
2008-09-13 04:42:07 +02:00
|
|
|
Summary: Servicelog Database and Library
|
|
|
|
Group: System/Libraries
|
2023-10-27 11:08:12 +02:00
|
|
|
Requires: %{name}
|
2008-09-13 04:42:07 +02:00
|
|
|
|
2023-10-27 11:08:12 +02:00
|
|
|
%description -n %{lname}
|
2011-11-03 13:20:54 +01:00
|
|
|
The libservicelog package contains a library to create and maintain a
|
2014-09-05 09:35:35 +02:00
|
|
|
database for storing events related to system service. This database
|
2008-09-13 04:42:07 +02:00
|
|
|
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
|
2021-07-16 10:42:22 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2023-10-27 11:08:12 +02:00
|
|
|
Requires: %{lname} = %{version}
|
2012-06-28 16:25:47 +02:00
|
|
|
Requires: glibc-devel
|
2014-09-05 09:35:35 +02:00
|
|
|
Requires: sqlite3-devel
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%description devel
|
2021-07-16 10:42:22 +02:00
|
|
|
Header files for building with libservicelog.
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%prep
|
2021-07-16 10:42:22 +02:00
|
|
|
%autosetup -p1
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%build
|
2009-01-27 02:18:40 +01:00
|
|
|
autoreconf -fiv
|
2021-07-16 10:42:22 +02:00
|
|
|
%configure --disable-static
|
2012-01-31 11:41:37 +01:00
|
|
|
make %{?_smp_mflags}
|
2023-10-27 11:08:12 +02:00
|
|
|
%if %{system_user_pkg}
|
|
|
|
%sysusers_generate_pre %{SOURCE3} libservicelog system-group-service.conf
|
|
|
|
%else
|
|
|
|
cat > libservicelog.pre <<EOF
|
|
|
|
getent group service >/dev/null || %{_sbindir}/groupadd -r service
|
|
|
|
EOF
|
|
|
|
%endif
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%install
|
2014-09-05 09:35:35 +02:00
|
|
|
%make_install
|
2023-10-27 11:08:12 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%if %{system_user_pkg}
|
|
|
|
install -m 0644 -D -t %{buildroot}%{_sysusersdir}/ %{SOURCE3}
|
|
|
|
%endif
|
2008-09-13 04:42:07 +02:00
|
|
|
|
2023-10-27 11:08:12 +02:00
|
|
|
%pre -f libservicelog.pre
|
2008-09-13 04:42:07 +02:00
|
|
|
|
2023-10-27 11:08:12 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%files
|
2021-07-16 10:42:22 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS
|
2023-10-27 11:08:12 +02:00
|
|
|
%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
|
2008-09-13 04:42:07 +02:00
|
|
|
|
2023-10-27 11:08:12 +02:00
|
|
|
%files -n %{lname}
|
2008-09-13 04:42:07 +02:00
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/servicelog-1
|
|
|
|
%{_libdir}/pkgconfig/servicelog-1.pc
|
2014-09-05 09:35:35 +02:00
|
|
|
%{_libdir}/*.so
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%changelog
|