File servicelog.spec of Package servicelog
#
# spec file for package servicelog
#
# Copyright (c) 2021 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 https://bugs.opensuse.org/
#
Name:           servicelog
Version:        1.1.16
Release:        0
Summary:        Servicelog Tools
License:        GPL-2.0-only
Group:          System/Management
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  librtas-devel
BuildRequires:  libservicelog-devel
BuildRequires:  sqlite3-devel
URL:            https://github.com/power-ras/servicelog/
Source0:        https://github.com/power-ras/servicelog/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
ExclusiveArch:  ppc ppc64 ppc64le
%description
Command-line interfaces for viewing and manipulating the contents of
the servicelog database.  Servicelog contains entries that are useful
for performing system service operations, and for providing a history
of service operations that have been performed on the system.
Authors:
--------
    Mike Strosaker <strosake@austin.ibm.com>
    Nathan Fontenot <nfont@austin.ibm.com>
%prep
%setup -q
%build
autoreconf -fvi
%configure
%{__make} %{?_smp_mflags}
%install
%{__make} install DESTDIR=$RPM_BUILD_ROOT
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%if %{undefined license}
%define license %doc
%endif
%files
%license COPYING
%doc README
%{_bindir}/servicelog
%{_bindir}/servicelog_notify
%{_bindir}/log_repair_action
%{_bindir}/servicelog_manage
%{_bindir}/v1_servicelog
%{_bindir}/v29_servicelog
%{_sbindir}/slog_common_event
%{_mandir}/man*/*
%changelog