File sblim-cmpiutil.spec of Package sblim-cmpiutil
#
# spec file for package sblim-cmpiutil (Version 1.0.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: sblim-cmpiutil
BuildRequires: gcc pkgconfig sblim-cmpi-devel
%define tarname sblim-cmpiutil
Url: http://www.omc-project.org
# Increment the version every time the source code changes.
Version: 1.0.1
Release: 2
Group: Development/Libraries/C and C++
Summary: utility library for cmpi development
PreReq: coreutils
License: BSD 3-Clause
# 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
Source0: %{tarname}-%{version}.tar.bz2
%package -n libsblim-cmpiutil1
Group: Development/Libraries/C and C++
Summary: utility library for cmpi development
License: Other uncritical OpenSource License
#for the debug pkg
Provides: %{name} = %{version}-%{release}
%package devel
License: Other uncritical OpenSource License
Group: Development/Libraries/C and C++
Summary: utility library for cmpi development
Requires: sblim-cmpiutil-devel, %{name}
%description
A set of utility functions that make cmpi provider development easier
Authors:
--------
Norm Paxton
Jon Carey
%description -n libsblim-cmpiutil1
A set of utility functions that make cmpi provider development easier
Authors:
--------
Norm Paxton
Jon Carey
%description devel
A set of utility functions that make cmpi provider development easier
Authors:
--------
Norm Paxton
Jon Carey
%prep
# Untar the sources.
%setup -n %{tarname}-%{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
%{__make}
%install
# Tell 'make install' to install into the BuildRoot
#make DESTDIR=$RPM_BUILD_ROOT install
%makeinstall
%{__rm} %{buildroot}%{_libdir}/libsblim-cmpiutil.la
%clean
%{__rm} -rf %{buildroot}
%post -n libsblim-cmpiutil1 -p /sbin/ldconfig
%postun -n libsblim-cmpiutil1 -p /sbin/ldconfig
%files -n libsblim-cmpiutil1
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/cmpiutil
%{_includedir}/cmpiutil/*
%{_libdir}/*.so
%changelog
* Thu Jul 03 2008 npaxton@novell.com
- Initial checkin