File pscircle.spec of Package pscircle

#
# spec file for package pscircle
#
# Copyright (c) 2019 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:           pscircle
Version:        1.3.1
Release:        0
Summary:        Visualizes Linux processes on a radial tree
License:        GPL-2.0-only
URL:            https://gitlab.com/mildlyparallel/pscircle
Source0:        https://gitlab.com/mildlyparallel/pscircle/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:  gcc >= 7
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(x11)

%description
Tool for visualizing Linux processes in the form of radial tree.

%prep
%setup -q -n %{name}-v%{version}
# fix shebang
sed -i 's|^#!.*|#!%{_bindir}/bash|' examples/pscircle-pywal.sh
# remove useless stuff
rm examples/pscircle-9999.ebuild examples/macos.sh

%build
%meson
%meson_build

%install
%meson_install

%files
%doc README.md docs examples
%license LICENSE
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by