File geant4-rpm-macros.spec of Package geant4-rpm-macros
#
# spec file for package geant4-rpm-macros
#
# Copyright (c) 2024 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: geant4-rpm-macros
Version: 11.3
Release: 0
Group: Development/Tools/Building
Summary: Helper macros for building packages dependent on geant4
License: BSD-3-Clause
BuildArch: noarch
Provides: geant4-devel:%{_rpmconfigdir}/macros.d/macros.geant4
%description
Helper macros for building and packaging geant4 auxiliary packages.
%prep
# Nothing
%build
cat << EOF > macros.geant4
#
# Macros for Geant4
#
%geant4version %{version}
%geant4basedatadir %{_datadir}/Geant4
%geant4datadir %{_datadir}/Geant4/data
%geant4_install_data \\
test -d %%{buildroot}%%{geant4datadir} || mkdir -p %%{buildroot}%%{geant4datadir} \\
cp -r . %%{buildroot}%%{geant4datadir}/
EOF
%install
install -m644 macros.geant4 -D %{buildroot}%{_rpmconfigdir}/macros.d/macros.geant4
%files
%{_rpmconfigdir}/macros.d/macros.geant4
%changelog