libservicelog/libservicelog.spec
Dirk Mueller c912222f0e Accepting request 90023 from home:k0da:ppc
- 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

OBS-URL: https://build.opensuse.org/request/show/90023
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libservicelog?expand=0&rev=10
2011-11-03 12:20:54 +00:00

132 lines
3.6 KiB
RPMSpec

#
# spec file for package libservicelog (Version 1.0.1)
#
# Copyright (c) 2010 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.1.11
Release: 1
Summary: Servicelog Database and Library
Requires: libservicelog-library
BuildRequires: sqlite3-devel librtas-devel pkg-config
Group: System/Libraries
License: LGPLv2.0+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://linux-diag.sourceforge.net/servicelog/
ExclusiveArch: ppc ppc64
Source0: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.bz2
Source1: baselibs.conf
Source2: libservicelog-rpmlintrc
Patch0: libservicelog.install.patch
Patch4: libservicelog-pkgconfig.patch
Patch5: libservicelog-printf_types.patch
%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.
Authors:
--------
Mike Strosaker <strosake@austin.ibm.com>
Nathan Fontenot <nfont@austin.ibm.com>
%package -n libservicelog-1_1-1
License: LGPLv2.0+
Summary: Servicelog Database and Library
Group: System/Libraries
Provides: libservicelog-library
%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
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: LGPLv2.0+
Summary: Development files for libservicelog
Group: Development/Libraries/Other
Requires: %{name} = %{version} glibc-devel
Requires: libservicelog-1_1-1
%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
%patch4
%patch5
%build
autoreconf -fiv
export CFLAGS="%{optflags}"
%configure --with-pic --disable-static
make %{?jobs:-j%jobs}
%install
%{makeinstall}
%__rm -f %{buildroot}%{_libdir}/*.la
%clean
%pre
/usr/sbin/groupadd -r service || echo groupadd service failed
%post -n libservicelog-1_1-1 -p /sbin/ldconfig
%postun -n libservicelog-1_1-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_1-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