File geant4-data-G4NDL.spec of Package geant4-data-G4NDL
#
# spec file for package geant4-data-G4NDL
#
# Copyright (c) 2020 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 srcname G4NDL
%define confvar G4NEUTRONHPDATA
Name: geant4-data-G4NDL
Version: 4.7.1
Release: 0
Summary: Neutron data files with thermal cross-sections for GEANT4
License: BSD-4-Clause
URL: https://geant4.web.cern.ch/
Source: http://geant4-data.web.cern.ch/geant4-data/datasets/G4NDL.%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: geant4-rpm-macros >= 11.1
BuildArch: noarch
%description
This package provides neutron data files with thermal cross-sections
for use with GEANT4.
Neutron cross-sections and final states are obtained from Joint
Evaluated Fission and Fusion File (JEFF version 3.3). Files not
coming from JEFF-3.3 and corresponding to previous G4NDL versions are:
JENDL_HE, IsotopeProduction, ThermalScattering, Inelastic/Gammas,
Fission/FF. Information concerning the conversion process of JEFF-3.3
to the G4NDL format can be found in: E.Mendoza and D.Cano-Ott, IAEA
technical report INDC(NDS)-0758, Vienna, 2018.
%prep
%setup -q -c %{name}-%{version}
%build
%install
%geant4_install_data
# REMOVE README FILES TO BE INSTALLED USING %%doc
find %{buildroot}%{geant4datadir}/ -name "README*" -delete -print
# EXPORT VARIABLES TO SYSTEMWIDE profile.d
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/%{srcname}.sh
export %{confvar}=%{geant4datadir}/%{srcname}%{version}
EOF
cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/%{srcname}.csh
setenv %{confvar} %{geant4datadir}/%{srcname}%{version}
EOF
%fdupes %{buildroot}%{geant4datadir}/
%files
%doc ./*/README*
%config %{_sysconfdir}/profile.d/%{srcname}.sh
%config %{_sysconfdir}/profile.d/%{srcname}.csh
%dir %{geant4basedatadir}
%dir %{geant4datadir}
%{geant4datadir}/%{srcname}%{version}/
%changelog