Update to version 3.0. OBS-URL: https://build.opensuse.org/request/show/1276470 OBS-URL: https://build.opensuse.org/package/show/science/geant4-data-G4ENSDFSTATE?expand=0&rev=5
68 lines
2.1 KiB
RPMSpec
68 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package geant4-data-G4ENSDFSTATE
|
|
#
|
|
# Copyright (c) 2022 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 G4ENSDFSTATE
|
|
Name: geant4-data-G4ENSDFSTATE
|
|
Version: 3.0
|
|
Release: 0
|
|
Summary: Data files for nuclides properties for GEANT4
|
|
Group: Productivity/Scientific/Physics
|
|
License: BSD-4-Clause
|
|
URL: https://geant4.web.cern.ch/
|
|
Source: http://geant4-data.web.cern.ch/geant4-data/datasets/%{srcname}.%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: geant4-rpm-macros >= 11.1
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
This package provides a data set of nuclides state properties derived
|
|
from the Evaluated Nuclear Structure Data File for use by GEANT4.
|
|
|
|
%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
|
|
|
|
%fdupes %{buildroot}%{geant4datadir}/
|
|
|
|
# EXPORT VARIABLES TO SYSTEMWIDE profile.d
|
|
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
|
cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/%{srcname}.sh
|
|
export %{srcname}DATA=%{geant4datadir}/%{srcname}%{version}
|
|
EOF
|
|
|
|
cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/%{srcname}.csh
|
|
setenv %{srcname}DATA %{geant4datadir}/%{srcname}%{version}
|
|
EOF
|
|
|
|
%files
|
|
%doc ./*/README*
|
|
%config %{_sysconfdir}/profile.d/%{srcname}.sh
|
|
%config %{_sysconfdir}/profile.d/%{srcname}.csh
|
|
%dir %{geant4basedatadir}
|
|
%dir %{geant4datadir}
|
|
%{geant4datadir}/%{srcname}%{version}
|
|
|
|
%changelog
|