File sblim-sfcc.spec of Package sblim-sfcc

#
# spec file for package sblim-sfcc (Version 2.2.1)
#
# Copyright (c) 2010 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-sfcc
Version:        2.2.1
Release:        1
Url:            http://sblim.wiki.sourceforge.net/
License:        Other uncritical OpenSource License
Group:          System/Management
Summary:        Small Footprint CIM Client Library
Source:         %{name}-%{version}.tar.bz2
Source1:        autoconfiscate.sh
Patch0:         %{name}-%{version}-includes.patch
Patch1:         0001-bnc535724-2847964-grammar.c.patch
Patch2:         0002-bnc535724-2847964-constClass.c.patch

Patch10:        0001-2967265-Code-cleanup-in-frontend-sfcc-sfcclient.c.patch
Patch11:        0002-2967257-Support-use-of-CMPI_chars-in-sfccclient.c.patch

Patch15:        0006-Show-class-and-property-qualifiers.patch
Patch16:        0007-2967257-support-CMPI_chars-in-the-cimxml-backend.patch
Patch17:        0008-2967257-support-CMPI_chars-in-testing.patch

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

%description
Small Footprint CIM Client Library (sfcc) Runtime Libraries



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

%package devel
License:        Other uncritical OpenSource License
Group:          System/Management
Summary:        Small Footprint CIM Client Library
Requires:       %{name} = %{version} glibc-devel

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



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

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p0

%patch10 -p1
%patch11 -p1

%patch15 -p1
%patch16 -p1
%patch17 -p1

%build
sh %{S:1}
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --disable-static --with-pic
make %{?jobs:-j%jobs}

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

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*
%doc %{_mandir}/man3/*
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so

%changelog
openSUSE Build Service is sponsored by