File konkretcmpi.spec of Package konkretcmpi

#
# spec file for package konkretcmpi (Version 0.8.6)
#
# Copyright (c) 2008 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:           konkretcmpi
BuildRequires:  gcc gcc-c++ sblim-cmpi-devel
Url:            http://konkretcmpi.org/
# Increment the version every time the source code changes.
Version:        0.8.6
Release:        1
Group:          Development/Libraries/C and C++
Summary:        An open-source library/tool for rapidly developing CMPI providers in the C programming language
License:        X11/MIT
# 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:       cim-server sblim-cmpi-devel
Requires:       cim-schema >= 2.17
Source0:        konkretcmpi-%{version}.tar.gz

%description
An open-source tool for rapidly developing CMPI providers in the C
programming language. KonkretCMPI makes CMPI provider development
easier by generating type-safe concrete CIM interfaces from MOF
definitions and by providing default implementations for many of the
provider operations.



Authors:
--------
    Michael E. Brasher

%prep
# Untar the sources.
%setup -n konkretcmpi-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS -fstack-protector" \
CXXFLAGS="$RPM_OPT_FLAGS -fstack-protector" \
%configure --with-schema=%{_datadir}/mof/cim-current
%{__make}

%install
%makeinstall

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%pre

%post -p /sbin/ldconfig

%preun

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%dir %{_includedir}/konkret  
%{_includedir}/konkret/*.h  
%{_libdir}/*.a*  
%{_bindir}/konkret
%{_bindir}/konkretreg

%changelog
* Mon Aug 25 2008 npaxton@novell.com
- Update to latest version (0.8.6) of code
  - Converted KonkretCMPI to use GNU autotools.
  - Bug fixes and minor enhancements
* Thu Jul 10 2008 npaxton@novell.com
- added sblim-cmpi-devel to BuildRequires
* Wed Jul 09 2008 npaxton@novell.com
- cleanup spec file, add dir ownership, remove erroneous comments
- update to version 0.8.1 which includes upgrade to autotools
* Mon Jul 07 2008 npaxton@novell.com
- Initial version
openSUSE Build Service is sponsored by