File omcclp.spec of Package omc-clp
Summary: Implementation of the OMC-CLP specification
Name: omcclp
BuildRequires: gcc-c++ openwbem-devel openssl-devel ncurses-devel
BuildRequires: readline-devel >= 5.0
BuildRequires: flex bison
%if 0%{?fedora_version} == 11
BuildRequires: termcap libtermcap-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Version: 0.5
Release: 1
#Copyright: Novell Inc.
License: GPL
Group: System/Management
Source: %{name}-%{version}.tar.gz
Patch0: gcc4.patch
URL: https://svn.innerweb.novell.com/svn/novlclp/trunk/omcclp
%if 0%{?suse_version}
Distribution: SUSE Linux
%endif
%if 0%{?fedora_version}
Distribution: Fedora Linux
%endif
Packager: Brad Nicholes <bnicholes@novell.com>
%description
Implementation of the Server Management Command Line Protocol
%prep
%setup
%patch0 -p1
%build
%if 0%{?suse_version} >= 1120
LIBS="-lpthread" \
export LIBS \
%endif
%configure
make
%install
%makeinstall
%files
%defattr(-,root,root)
%{_bindir}/omcclp
%{_sbindir}/omcclpd
%dir %{_sysconfdir}/omcclp
%config %{_sysconfdir}/omcclp/omcclp.conf
%config %{_sysconfdir}/omcclp/omcclpaddr.ini
%config %{_sysconfdir}/omcclp/oemextensions.ini