2008-09-13 04:42:07 +02:00
|
|
|
#
|
|
|
|
# spec file for package libservicelog (Version 1.0.1)
|
|
|
|
#
|
2010-03-17 14:26:13 +01:00
|
|
|
# Copyright (c) 2010 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
|
2011-11-03 13:20:54 +01:00
|
|
|
Version: 1.1.11
|
|
|
|
Release: 1
|
2008-09-13 04:42:07 +02:00
|
|
|
Summary: Servicelog Database and Library
|
|
|
|
Requires: libservicelog-library
|
2011-11-03 13:20:54 +01:00
|
|
|
BuildRequires: sqlite3-devel librtas-devel pkg-config
|
2008-09-13 04:42:07 +02:00
|
|
|
Group: System/Libraries
|
2010-03-17 14:26:13 +01:00
|
|
|
License: LGPLv2.0+
|
2008-09-13 04:42:07 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Url: http://linux-diag.sourceforge.net/servicelog/
|
2011-11-03 13:20:54 +01:00
|
|
|
ExclusiveArch: ppc ppc64
|
2008-09-13 04:42:07 +02:00
|
|
|
Source0: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.bz2
|
2010-03-17 14:26:13 +01:00
|
|
|
Source1: baselibs.conf
|
2010-04-20 02:25:20 +02:00
|
|
|
Source2: libservicelog-rpmlintrc
|
2008-09-13 04:42:07 +02:00
|
|
|
Patch0: libservicelog.install.patch
|
2010-04-20 02:25:20 +02:00
|
|
|
Patch4: libservicelog-pkgconfig.patch
|
|
|
|
Patch5: libservicelog-printf_types.patch
|
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
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Mike Strosaker <strosake@austin.ibm.com>
|
|
|
|
Nathan Fontenot <nfont@austin.ibm.com>
|
|
|
|
|
2011-11-03 13:20:54 +01:00
|
|
|
%package -n libservicelog-1_1-1
|
2010-03-17 14:26:13 +01:00
|
|
|
License: LGPLv2.0+
|
2008-09-13 04:42:07 +02:00
|
|
|
Summary: Servicelog Database and Library
|
|
|
|
Group: System/Libraries
|
|
|
|
Provides: libservicelog-library
|
|
|
|
|
2011-11-03 13:20:54 +01:00
|
|
|
%description -n libservicelog-1_1-1
|
|
|
|
The libservicelog package contains a library to create and maintain a
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Mike Strosaker <strosake@austin.ibm.com>
|
|
|
|
Nathan Fontenot <nfont@austin.ibm.com>
|
|
|
|
|
|
|
|
%package devel
|
2010-03-17 14:26:13 +01:00
|
|
|
License: LGPLv2.0+
|
2008-09-13 04:42:07 +02:00
|
|
|
Summary: Development files for libservicelog
|
|
|
|
Group: Development/Libraries/Other
|
2009-01-27 02:18:40 +01:00
|
|
|
Requires: %{name} = %{version} glibc-devel
|
2011-11-03 13:20:54 +01:00
|
|
|
Requires: libservicelog-1_1-1
|
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
|
2011-11-03 13:20:54 +01:00
|
|
|
%patch0
|
2010-04-20 02:25:20 +02:00
|
|
|
%patch4
|
|
|
|
%patch5
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%build
|
2009-01-27 02:18:40 +01:00
|
|
|
autoreconf -fiv
|
2010-04-20 02:25:20 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
2009-01-27 02:18:40 +01:00
|
|
|
%configure --with-pic --disable-static
|
2010-04-20 02:25:20 +02:00
|
|
|
make %{?jobs:-j%jobs}
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%install
|
2010-04-20 02:25:20 +02:00
|
|
|
%{makeinstall}
|
2011-11-03 13:20:54 +01:00
|
|
|
%__rm -f %{buildroot}%{_libdir}/*.la
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
%pre
|
|
|
|
/usr/sbin/groupadd -r service || echo groupadd service failed
|
|
|
|
|
2011-11-03 13:20:54 +01:00
|
|
|
%post -n libservicelog-1_1-1 -p /sbin/ldconfig
|
2008-09-13 04:42:07 +02:00
|
|
|
|
2011-11-03 13:20:54 +01:00
|
|
|
%postun -n libservicelog-1_1-1 -p /sbin/ldconfig
|
2008-09-13 04:42:07 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2011-11-03 13:20:54 +01:00
|
|
|
%files -n libservicelog-1_1-1
|
2008-09-13 04:42:07 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
# dlopen object
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/servicelog-1
|
|
|
|
%{_libdir}/pkgconfig/servicelog-1.pc
|
|
|
|
|
|
|
|
%changelog
|