File sblim-cmpi-crashdump.spec of Package sblim-cmpi-crashdump
#
# spec file for package sblim-cmpi-crashdump (Version 2.0.0)
#
# Copyright (c) 2009 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/
#
# norootforbuild
%define REGISTRATIONS Linux_OSCrashDump
%define SCHEMES %{REGISTRATIONS}
Name: sblim-cmpi-crashdump
Url: http://sourceforge.net/projects/sblim/files/sblim-cmpi-crashdump
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: bison
BuildRequires: flex
BuildRequires: libtool
BuildRequires: sblim-cmpi-base-devel
BuildRequires: sblim-cmpi-devel
BuildRequires: sblim-testsuite
BuildRequires: sblim-tools-libra-devel
Summary: SBLIM CMPI crashdump Instrumentation
Version: 2.0.0
Release: 21
Group: System/Management
License: EPL-1.0
Requires: sblim-cmpi-base >= 1.2.3, cim-server
Source: http://prdownloads.sourceforge.net/sblim/sblim-cmpi-crashdump-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: sblim-sfcb
Patch1: %{name}-%{version}-compare.patch
#!BuildIgnore: tog-pegasus
%description
Standards Based Linux crashdump Instrumentation Providers
Authors:
--------
SBLIM Project
%prep
%setup -q
%patch -P1
%build
find . -name 'Makefile.am' -exec sed -i 's|#.-Werror.*|-Wall|' \{\} \;
autoreconf -fi
%configure --disable-static
make %{?jobs:-j%jobs}
%install
%if 0%{?suse_version}
%makeinstall docdir=%{_docdir}/%{name}
%else
make install DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-%{version}
%endif
rm -f %buildroot%_libdir/cmpi/*.la
rm -f %buildroot%_libdir/*.la
%post
/sbin/ldconfig
# compile MOF
d=%_datadir/%name
$d/provider-register.sh -t sfcb -r $d/%{REGISTRATIONS}.registration -m $d/%{SCHEMES}.mof
###############################################################################
%preun
d=%_datadir/%name
$d/provider-register.sh -t sfcb -r $d/%{REGISTRATIONS}.registration -m $d/%{SCHEMES}.mof
###############################################################################
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/cmpi/*.so
%{_datadir}/%{name}/
%if 0%{?suse_version}
%doc %{_docdir}/%{name}
%else
%doc %{_docdir}/%{name}-%{version}
%endif
%changelog