forked from pool/libservicelog
114 lines
3.4 KiB
RPMSpec
114 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package libservicelog
|
|
#
|
|
# Copyright (c) 2014 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/
|
|
#
|
|
|
|
|
|
%define so_version 1
|
|
|
|
Name: libservicelog
|
|
Version: 1.1.14
|
|
Release: 0
|
|
Summary: Servicelog Database and Library
|
|
License: LGPL-2.0+
|
|
Group: System/Libraries
|
|
Requires: libservicelog-library
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: librtas-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: pkg-config
|
|
BuildRequires: sqlite3-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Url: http://linux-diag.sourceforge.net/servicelog/
|
|
ExclusiveArch: ppc ppc64 ppc64le
|
|
Source0: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
|
|
Source1: baselibs.conf
|
|
Source2: libservicelog-rpmlintrc
|
|
Patch0: libservicelog-pkgconfig.patch
|
|
Patch1: libservicelog-lib_version.patch
|
|
Patch2: 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.
|
|
|
|
|
|
%package -n %{name}%{so_version}
|
|
Summary: Servicelog Database and Library
|
|
Group: System/Libraries
|
|
Provides: libservicelog-library
|
|
|
|
%description -n %{name}%{so_version}
|
|
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/Other
|
|
Requires: %{name} = %{version}
|
|
Requires: %{name}%{so_version} = %{version}
|
|
Requires: glibc-devel
|
|
|
|
%description devel
|
|
Contains header files for building with libservicelog.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
%patch1
|
|
%patch2 -p1
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure --with-pic --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%{makeinstall}
|
|
%__rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%pre
|
|
/usr/sbin/groupadd -r service || echo groupadd service failed
|
|
|
|
%post -n %{name}%{so_version} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{so_version} -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 %{name}%{so_version}
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/lib*.so.*
|
|
# dlopen object
|
|
%{_libdir}/*.so
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/servicelog-1
|
|
%{_libdir}/pkgconfig/servicelog-1.pc
|
|
|
|
%changelog
|