File cf-profile.spec of Package cf-profile

#
# spec file for package cf-profile
#
# Copyright (c) 2025 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:           cf-profile

# Yes, its not FHS conformant but in sync with cfengie documentation
%define         basedir   /var/%{name}
%define         workdir   %{basedir}

Summary:        Script for parsing output of verbose run for cf-agent
License:        GPL-3.0
Group:          Productivity/Networking/System
Version:        0.0
Release:        0
Url:            https://github.com/cfengineers-net/cf-profile
Source:         cf-profile.pl
Source1:        README.md
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       cfengine
Requires:       perl

%description
This simple perl script is aimed at giving more information about
cf-agent runs. It draws out a execution tree together with timings and
classes augmented so that you can see clearly the order of execution
together with what part of your policy cf-agent is spending most time
on.

%prep
%setup -q -c -T

%build
# nothing

%install
mkdir -p %{buildroot}%{_bindir}
cp %{S:0} %{buildroot}%{_bindir}/%{name}
chmod 755 %{buildroot}%{_bindir}/%{name}
cp %{S:1} README.md

%files
%defattr(-,root,root)
%doc README.md
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by