File sblim-cmpi-ssh_service_profile.spec of Package sblim-cmpi-ssh_service_profile
#
# spec file for package sblim-cmpi-ssh_service_profile (Version 1.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
Name: sblim-cmpi-ssh_service_profile
BuildRequires: gcc gcc-c++ konkretcmpi sblim-cmpi-devel sblim-cmpiutil-devel sblim-sfcb
Url: http://www.omc-project.org
# Increment the version every time the source code changes.
Version: 1.0.0
Release: 36
Group: System/Management
Summary: Instrumentation for DMTF SSH Service Profile.
License: Other uncritical OpenSource License; Eclipse Public License 1.0
# This is necessary to build the RPM as a non-root user.
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# "yes" is the default, but we put it here explicitly to avoid someone
# setting it to "no"
AutoReqProv: yes
Requires: sblim-sfcb sblim-cmpi-base
Requires: cim-schema >= 2.17
Source0: sblim-cmpi-ssh_service_profile-%{version}.tar.gz
%description
Linux providers for instrumentation of DMTF SSH Service Profile (DSP
1017)
Authors:
--------
Bart Whiteley
Norm Paxton
Mike Brasher
%prep
# Untar the sources.
%setup -n sblim-cmpi-ssh_service_profile-%{version}
%build
# If the LD_RUN_PATH environment variable is set at link time,
# it's value is embedded in the resulting binary. At run time,
# The binary will look here first for shared libraries. This way
# we link against the libraries we want at run-time even if libs
# by the same name are in /usr/lib or some other path in /etc/ld.so.conf
autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS -fstack-protector" \
CXXFLAGS="$RPM_OPT_FLAGS -fstack-protector" \
%configure --disable-static --with-pic
%{__make}
%install
# Tell 'make install' to install into the BuildRoot
%makeinstall
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%clean
rm -rf %{buildroot}
%pre
# If upgrading/not new install/not removing, deregister old version
if [ $1 -gt 1 ]
then
sfcbunstage -n root/cimv2 -r linux-ssh-service-profile.reg linux-ssh-service-profile.mof
sfcbunstage -n root/cimv2 linux-ssh-service-profile-interop.mof
sfcbunstage -n root/interop linux-ssh-service-profile-interop.mof
sfcbrepos -f
/etc/init.d/sfcb condrestart
fi
%post
/sbin/ldconfig
sfcbstage -n root/cimv2 -r %{_datadir}/mof/%{name}/linux-ssh-service-profile.reg %{_datadir}/mof/%{name}/linux-ssh-service-profile.mof
sfcbstage -n root/cimv2 %{_datadir}/mof/%{name}/linux-ssh-service-profile-interop.mof
sfcbstage -n root/interop %{_datadir}/mof/%{name}/linux-ssh-service-profile-interop.mof
sfcbrepos -f
/etc/init.d/sfcb condrestart
%preun
# If removing (not upgrading) then de-register, before the files are gone
if [ "x$1" = "x0" ]; then
sfcbunstage -n root/cimv2 -r linux-ssh-service-profile.reg linux-ssh-service-profile.mof
sfcbunstage -n root/cimv2 linux-ssh-service-profile-interop.mof
sfcbunstage -n root/interop linux-ssh-service-profile-interop.mof
sfcbrepos -f
/etc/init.d/sfcb condrestart
fi
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/cmpi/*.so*
%dir %{_datadir}/mof/%{name}
%{_datadir}/mof/%{name}/*
%changelog
* Wed Apr 15 2009 crrodriguez@suse.de
- use --disable-static instead of removing "*.a"
* Wed Aug 13 2008 npaxton@novell.com
- Remove dependency on /usr/sbin/provider-register.sh from
sblim-cmpi-base; instead use sfcb-specific calls:
sfcbstage/sfcbunstage, sfcbrepos
- Fix some misnamed class references
- Rework to advertise classes appropriately in root/interop
and root/cimv2
* Thu Jul 10 2008 npaxton@novell.com
- Fix link problem (in tarball) introduced by refactor of a
dependent rpm (libsblim-cmpiutil... was sblim-cmpiutil)
- changed rpm dependency of sblim-cmpiutil to libsblim-cmpiutil
and sblim-cmpiutil-devel
* Mon Jul 07 2008 npaxton@novell.com
- Initial revision