File wseventsink.spec of Package wseventsink

#
# spec file for package wseventsink (Version 0.0.4)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# 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:           wseventsink
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  libwsman-devel >= 2.8.0
BuildRequires:  pkgconfig
%if 0%{?suse_version} > 1010
BuildRequires:  libcurl-devel
%else
# SLE 10
BuildRequires:  curl-devel
%endif
Version:        0.0.4
Release:        1
Url:            https://openwsman.github.io
License:        BSD-3-Clause
Group:          System/Management
Summary:        Opensource Implementation of WS-Management - Event Sink Handler
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A sample implementation showing how to capture events from Openwsman

%prep
%setup -q -n %{name}-%{version}

%build
sh ./bootstrap
%configure --disable-static
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -rf $RPM_BUILD_ROOT/%{_libdir}/*a

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun
/sbin/ldconfig
exit 0

%files
%defattr(-,root,root)
%{_bindir}/wseventsink
%{_libdir}/libwseventlistener.so*

%changelog
openSUSE Build Service is sponsored by