File sblim-cmpi-nfsv3.spec of Package sblim-cmpi-nfsv3

#
# spec file for package sblim-cmpi-nfsv3 (Version 1.0.14)
#
# Copyright (c) 2008 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


Name:           sblim-cmpi-nfsv3
Url:            http://sblim.wiki.sourceforge.net/
BuildRequires:  bison flex gcc-c++ openslp-devel openssl-devel pam-devel sblim-cmpi-base-devel sblim-indication_helper-devel sblim-testsuite
Summary:        SBLIM CMPI NFSv3 Instrumentation
Version:        1.0.14
Release:        82
Group:          System/Management
License:        IBM Public License
Requires:       sblim-cmpi-base >= 1.2.3, cim-server
Source:         http://prdownloads.sourceforge.net/sblim/sblim-cmpi-nfsv3-%{version}.tar.bz2
Patch:          sblim-cmpi-nfsv3-1.0.13_gcc4.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         sblim-sfcb

%description
Standards Based Linux NFSv3 Instrumentation Providers



Authors:
--------
    SBLIM Project

%prep
%setup -n %{name}-%{version}
%patch

%build
%configure --disable-static
%{__make}

%install
%makeinstall docdir=%{_docdir}/%{name}
rm %buildroot%_libdir/cmpi/*.la
rm %buildroot%_libdir/*.la

%clean
%{__rm} -rf %{buildroot}

%post
%define mofs Linux_NFSv3SystemSetting Linux_NFSv3SystemConfiguration
# compile MOF
d=%_datadir/%name
for i in %mofs; do
	$d/provider-register.sh -t sfcb -r $d/$i.registration -m $d/$i.mof
done

%preun
if [ "$1" = "0" ]; then
	d=%_datadir/%name
	for i in %mofs; do
		$d/provider-register.sh -t sfcb -d -r $d/$i.registration -m $d/$i.mof
	done
fi

%files
%defattr(-,root,root)
%{_libdir}/cmpi/*.so
%{_libdir}/*.so
%{_datadir}/sblim-testsuite/*
%{_datadir}/%{name}/
%doc %{_docdir}/%{name}

%changelog
* Fri Sep 12 2008 mmarek@suse.cz
- switch to sfcb
* Thu Nov 01 2007 mmarek@suse.cz
- updated to 1.0.14
  fixed upstream bugs:
  * 1199129 Providers won't compile with CMPI 1.0
  * 1600348 Fixed association behaviour if /etc/exports
  file is empty
- removed static libs
* Thu Mar 29 2007 rguenther@suse.de
- add bison and flex BuildRequires
* Thu Mar 02 2006 mrueckert@suse.de
- update to 1.0.13 [#144214]
- dropped all patches as the build system changed
- added sblim-cmpi-nfsv3-1.0.13_gcc4.patch
  fixes a few compiler warnings in the lex/yacc generated code
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Dec 09 2005 mrueckert@suse.de
- build against openwbem
- use optflags
- fix the urgent compiler warnings
* Wed Apr 27 2005 ro@suse.de
- build with gcc-4
* Thu Nov 11 2004 ro@suse.de
- fixed file list
* Sun May 16 2004 nashif@suse.de
- #40661: SBLIM cmpi-nfsv3/4 reports error on empty
  /etc/exports file
- V 1.0.9
* Thu May 13 2004 nashif@suse.de
- #39756: cmpinfsv3 provider does not return associations for
  Linux_NFSv3SystemConfiguration class
- Do not De-register when updating package
* Tue May 11 2004 nashif@suse.de
- Dereigster providers when uninstalling (#39667)
- test scripts incorrectly check file read/write permission (#40262)
* Mon May 10 2004 nashif@suse.de
- Bug #39754:  wbemri & wbemrin fail to parse query results
  from Pegasus cimom
* Fri May 07 2004 nashif@suse.de
- Bug #39750: NFS providers not returning object path when
  creating new instance
* Fri Apr 30 2004 nashif@suse.de
- Update to version 1.0.2
- Fixed bug #39032: Copy utility library to /usr/lib
* Fri Apr 16 2004 nashif@suse.de
- Update version with bugfixes from IBM
* Wed Apr 14 2004 nashif@suse.de
- Added PreReq for loadmof.sh
* Wed Apr 07 2004 nashif@suse.de
- Initial Release
openSUSE Build Service is sponsored by