File sblim-sfcc.spec of Package sblim-sfcc

#
# spec file for package sblim-sfcc (Version 2.2.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-sfcc
Version:        2.2.0
Release:        2
Url:            http://sblim.wiki.sourceforge.net/
License:        Common Public License v1.0
Group:          System/Management
Summary:        Small Footprint CIM Client Library
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM %{name}-2.2.0-missing-includes.patch [ upstream#2793377 ] mhrusecky@suse.cz -- add missing includes
# https://sourceforge.net/tracker/?func=detail&aid=2793377&group_id=128809&atid=712784
Patch0:         %{name}-2.2.0-missing-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
%if 0%{?suse_version} > 1020
BuildRequires:  libcurl-devel
%else
BuildRequires:  curl-devel
%endif

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



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

%package devel
License:        Other uncritical OpenSource License; Common Public License v1.0
Summary:        Small Footprint CIM Client Library
Group:          System/Management
Requires:       %{name} = %{version}
Requires:       glibc-devel
%if 0%{?suse_version} > 1020
Requires:       libcurl-devel
%else
Requires:       curl-devel
%endif

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



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

%prep
%setup -q
%patch0 -p1

%build
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
%doc %{_mandir}/man3/*
%{_libdir}/*.so.*

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

%changelog
* Thu Mar 05 2009 mhrusecky@suse.cz
- update to 2.2.0
  * Bugs:
    - 2596921: v2test_ei test fails when using CIMXML interface
    - 2431835: XML client library not found.
    - 2270179: Missing includes and values in return statements
    - 2158091: sfcb modules belong in private dir
    - 2102345: missing configuration of CIM-HOST-PORT in sblim-sfcc
    - 2102339: Missing ret values in sblim-sfcc
  * Dropped merged patches
* Wed Nov 12 2008 prusnak@suse.cz
- added 5 more fixes to retval.patch
- merged implicit-fortify-decl.patch and stdlib.patch into includes.patch
* Thu Oct 09 2008 crrodriguez@suse.de
- fix build, implicit-fortify-decl backend/cimxml/indicationlistener.c:85
- disable static libraries
- correct -devel package requires
* Tue Sep 09 2008 prusnak@suse.cz
- updated to 2.1.0
  * New features:
    - 1820015 sfcc: prepare for indication support
    - 1854813 sfcc: new parser
    - 1867649 sfcc: embedded instance support (receiving side)
    - 1828588 sfcc: Indication support (CIMXML)
    - 1828584 sfcc: large volume data support (CIMXML)
  * Bugs:
    - 1887125 sfcc: cleanup due to new parser
    - 1940546: Memory corruption in AsciiToXmlStr()
- fixed undefined variable (cimhostport.patch)
* Tue May 20 2008 ro@suse.de
- add some missing return values for non-void functions
* Wed Mar 19 2008 prusnak@suse.cz
- updated to 2.0.3
  * fixed sfcc generates incorrect XML for complex properties
  * sfcc reports incorrect namespace for associators operation
* Wed Nov 21 2007 prusnak@suse.cz
- updated to 2.0.2
  * fixed handling of complex array IN arguments
  * fixed issue with the SFCC xml parsing code
  * invokeMethod test now works correctly
* Tue Jul 17 2007 prusnak@suse.cz
- fixed missing include <stdlib.h> for sources in TEST directory
  (stdlib.patch)
* Tue Jul 17 2007 prusnak@suse.cz
- fixed documentation files handling
* Fri Jul 13 2007 prusnak@suse.cz
- created package (version 2.0.1)
- based on BuildService package sblim-sfcc in home:mihajlov
openSUSE Build Service is sponsored by