File sblim-sfcc.spec of Package sblim-sfcc

# spec file for package sblim-sfcc
# Copyright (c) 2014 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

Name:           sblim-sfcc
Version:        2.2.7
Release:        0
Summary:        Small Footprint CIM Client Library
License:        EPL-1.0
Group:          System/Management
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE: don't release op when used as value, upstream #2730
Patch:          0001-Don-t-release-op-when-used-as-value.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
BuildRequires:  libtool
%if 0%{?suse_version}
%if 0%{?suse_version} < 1020
BuildRequires:  curl-devel
BuildRequires:  libcurl-devel
BuildRequires:  curl-devel

Small Footprint CIM Client Library (sfcc) Runtime Libraries

%package devel
Summary:        Small Footprint CIM Client Library
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       glibc-devel

%description devel
Small Footprint CIM Client Library (sfcc) Header Files and Link

%setup -q
%patch -p1

# autoconfiscate
sh %{S:1}
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --disable-static --with-pic

# RHEL5 ships with old libtool (see
%if 0%{?rhel_version} >= 500 || 0%{?centos_version} >= 500
%if 0%{?rhel_version} < 600 || 0%{?centos_version} < 600
rm -f libtool; ln -s /usr/bin/libtool .

make %{?jobs:-j%jobs}

make DESTDIR=$RPM_BUILD_ROOT install docdir=%{_docdir}/%{name}
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_libdir}/*.a


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%dir %{_docdir}/%{name}
%doc %{_mandir}/man3/*
# dlopen'ed lib

%files devel

openSUSE Build Service is sponsored by