File sample.spec of Package sample
#
# spec file
#
# Copyright (c) 2023 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/
#
#%define __spec_clean_body /usr/bin/true
%define __spec_clean_template #!%{__spec_clean_shell} \
%{__spec_clean_pre} \
exit 0;
#%define __spec_clean_cmd /usr/bin/true
Name: sample
Version: 0.0
Release: 0
Summary: Sample Package
License: BSD-3-Clause
Source: sample-%{version}.tar
%description
Sample package for testing.
%prep
%setup -q
%build
echo "Package built" > result
echo "Template: %__spec_clean_template"
echo "Body: %__spec_clean_body"
echo "Post: %__spec_clean_post"
%triggerin -- foo
echo "running triggerin sample ${1}!"
%install
mkdir -p %{buildroot}/%{_datadir}/sample
cp result %{buildroot}/%{_datadir}/sample
%files
%dir %{_datadir}/sample
%{_datadir}/sample/result
%changelog