File supportconfig-utils.spec of Package supportconfig-utils

# spec file for package supportconfig-utils
# Copyright (c) 2015 SUSE LINUX 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

%define version_unconverted 0.2.0+git.1550071091.03c5392

# Support older distributions
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates

Name:           supportconfig-utils
Version:        0.2.0+git.1550071091.03c5392
Release:        0
Summary:        Utilities for examining supportconfig tarballs
License:        GPL-3.0
Group:          Development/Tools/Debuggers
Source0:        supportconfig-utils-%{version}.tar.bz2
# suse_update_desktop_file macro requires /var/cache/gio-2.0:
BuildRequires:  libgio-2_0-0
# Required for desktop macros to work
BuildRequires:  update-desktop-files
Requires:       tar
# Maybe even 2.1 is required, not sure
Requires:       tmux >= 2.0
Requires:       tmux-lib
# For xdg-terminal:
Requires:       xdg-utils
Requires:       unpack
Requires(post): %fillup_prereq
Recommends:     lnav
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Utilities for examining supportconfig tarballs more easily, including:

- unpack-supportconfig - extracts supportconfigs, including snapshots
  of any config file / log file etc. which is embedded inside a .txt
  file within the supportconfig
- supportconfig-tmux - a wrapper around unpack-supportconfig which additionally
  creates a new tmux session with a window for viewing each of the log files
  which you most commonly look at
- a desktop handler and associated MIME type configuration in order to
  automatically launch a new tmux session in a new terminal when a supportconfig
  is downloaded
- extensions for SUSE products including SUSE OpenStack Cloud

%setup -q


install -d %{buildroot}%{_bindir}
install -D -m 755 bin/* plugins/*/bin/* %{buildroot}%{_bindir}

%suse_update_desktop_file -i supportconfig-tmux

install -d -m 755 %{buildroot}%{_datadir}/mime/packages
install -D -m 644 share/mime/packages/* %{buildroot}%{_datadir}/mime/packages

install -d -m 755 $etc $doc

cd plugins
for plugin in *; do
  for file in $plugin/etc/*; do
    if [[ $file == *.sample ]]; then
      install -D -m 644 -t $doc/plugins/$plugin $file
      install -D -m 644 -t $etc/plugins/$plugin $file
cd ..

install -d -m 755 %{buildroot}%{_fillupdir}
install -m 644 etc/sysconfig.%{name} %{buildroot}%{_fillupdir}




openSUSE Build Service is sponsored by