File sblim-cmpi-dhcp.spec of Package sblim-cmpi-dhcp
#
# spec file for package sblim-cmpi-dhcp (Version 0.5.5)
#
# 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-dhcp
Url: http://sblim.sourceforge.net/wbemsmt.html
BuildRequires: bison flex sblim-cmpi-base-devel sblim-cmpi-devel sblim-testsuite sblim-tools-libra-devel
Summary: SBLIM CMPI dhcp Instrumentation
Version: 0.5.5
Release: 14
Group: System/Management
License: IBM Public License; Common Public License 1.0, Eclipse Public License
Requires: sblim-cmpi-base >= 1.2.3, cim-server
Source: http://prdownloads.sourceforge.net/sblim/sblim-cmpi-dhcp-%{version}.tar.bz2
Patch1: sblim-cmpi-dhcp-0.5.5-open-missing-mode.patch
Patch2: sblim-cmpi-dhcp-0.5.5-paths.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: sblim-sfcb
%description
Standards Based Linux dhcp Instrumentation Providers
Authors:
--------
SBLIM Project
%prep
%setup -q
%patch1
%patch2
%build
autoreconf -fi
%configure --disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall docdir=%{_docdir}/%{name}
rm %buildroot%_libdir/cmpi/*.la
rm %buildroot%_libdir/*.la
# XXX -devel package needed?
rm %buildroot%_libdir/libRaToolsDhcp.so
install -d %buildroot/etc/UniqueKey
%find_lang %name
%clean
%{__rm} -rf %{buildroot}
%post
/sbin/ldconfig
%define mofs Linux_DHCPEntity Linux_DHCPService Linux_DHCPGlobal Linux_DHCPGlobalForService Linux_DHCPGroup Linux_DHCPGroupsForEntity Linux_DHCPHost Linux_DHCPHostsForEntity Linux_DHCPOptions Linux_DHCPOptionsForEntity Linux_DHCPParams Linux_DHCPParamsForEntity Linux_DHCPPool Linux_DHCPPoolsForEntity Linux_DHCPRegisteredProfile Linux_DHCPServiceConfiguration Linux_DHCPServiceConfigurationForService Linux_DHCPSharednet Linux_DHCPSharednetsForEntity Linux_DHCPSubnet Linux_DHCPSubnetsForEntity Linux_DHCPElementConformsToProfile
# compile MOF
d=%_datadir/%name
m=""
r=""
for i in %mofs; do
m="$m $d/$i.mof"
if test -f $d/$i.registration; then
r="$r $d/$i.registration"
fi
done
$d/provider-register.sh -t sfcb -r $r -m $m
###############################################################################
%preun
if [ $1 -eq 0 ]; then
d=%_datadir/%name
m=""
r=""
for i in %mofs; do
m="$m $d/$i.mof"
if test -f $d/$i.registration; then
r="$r $d/$i.registration"
fi
done
$d/provider-register.sh -t sfcb -d -r $r -m $m
fi
###############################################################################
%postun -p /sbin/ldconfig
%files -f %name.lang
%defattr(-,root,root)
%config /etc/smt_dhcp_ra_support.conf
%dir /etc/UniqueKey
%{_libdir}/cmpi/*.so
%{_libdir}/*.so*
%{_datadir}/sblim-testsuite/*
%{_datadir}/%{name}/
%_mandir/man5/smt_dhcp_ra_support.conf*
%doc %{_docdir}/%{name}
%changelog
* Tue Sep 23 2008 mmarek@suse.cz
- don't package /usr/lib/debug in the main package
* Fri Sep 12 2008 mmarek@suse.cz
- switch to sfcb
* Mon Aug 18 2008 mmarek@suse.cz
- create the tempfile in libuniquekey with mode 0600 (sf#2049850)
* Wed Aug 13 2008 mmarek@suse.cz
- install /etc/UniqueKey for libuniquekey
* Wed Aug 13 2008 mmarek@suse.cz
- fix hardcoded paths (sblim-cmpi-dhcp-0.5.5-paths.patch)
* Fri Aug 08 2008 mmarek@suse.cz
- packaged sblim-cmpi-dhcp-0.5.5 (fate#304337)