2008-09-13 04:42:07 +02:00
|
|
|
#
|
|
|
|
# spec file for package libservicelog (Version 1.0.1)
|
|
|
|
#
|
2009-01-27 02:18:40 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: libservicelog
|
|
|
|
Version: 1.0.1
|
2009-01-27 02:18:40 +01:00
|
|
|
Release: 6
|
2008-09-13 04:42:07 +02:00
|
|
|
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
|
2009-01-27 02:18:40 +01:00
|
|
|
Requires: %{name} = %{version} glibc-devel
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%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
|
2009-01-27 02:18:40 +01:00
|
|
|
autoreconf -fiv
|
|
|
|
%configure --with-pic --disable-static
|
2008-09-13 04:42:07 +02:00
|
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
2009-01-27 02:18:40 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%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}/pkgconfig/servicelog-1.pc
|
|
|
|
|
|
|
|
%changelog
|
2009-01-27 02:18:40 +01:00
|
|
|
* Mon Jan 26 2009 crrodriguez@suse.de
|
|
|
|
- remove "la" files
|
2008-09-13 04:42:07 +02:00
|
|
|
* 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)
|