File konkretcmpi.spec of Package konkretcmpi

#
# spec file for package konkretcmpi
#
# Copyright (c) 2012 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/
#


Name:           konkretcmpi
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  sblim-cmpi-devel
Url:            http://konkretcmpi.org/
# Increment the version every time the source code changes.
Version:        0.8.7
Release:        0
Summary:        An open-source library/tool for rapidly developing CMPI providers in the C programming language
License:        MIT
Group:          Development/Libraries/C and C++
# 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"
Requires:       cim-schema >= 2.17
Requires:       cim-server
Requires:       sblim-cmpi-devel
Source0:        konkretcmpi-%{version}.tar.gz
Patch0:         konkretcmpi-gcc47.patch

%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}
%patch0 -p1

%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
openSUSE Build Service is sponsored by