Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wrzof:gate
geant4.10.03
geant4.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File geant4.spec of Package geant4.10.03
# # spec file for package geant4 # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # # See also http://en.opensuse.org/openSUSE:Specfile_guidelines Name: geant4 Version: 10.3.1 Release: 1 Summary: Geant4 is an acronym of GEometry ANd Tracking License: BSD-4-Clause Group: Productivity/Science/Physics Url: http://geant4.web.cern.ch/geant4/support/source/ Source: geant4.10.03.p01.tar.gz BuildRequires: cmake3 >= 3.3, libxerces-c-devel, libqt4-devel, libXmu-devel, fdupes %define debug_package %{nil} %define inst_dir /usr/local %define data_path %{inst_dir}/share/Geant4/data %define mname geant4.10.03.p01 %description Geant4 is a toolkit for the simulation of the passage of particles through matter. Its areas of application include high energy, nuclear and accelerator physics, as well as studies in medical and space science. The two main reference papers for Geant4 are published in Nuclear Instruments and Methods in Physics Research A 506 (2003) 250-303, and IEEE Transactions on Nuclear Science 53 No. 1 (2006) 270-278. It is noted that only dynamic libraries are included in this package just for the end users. %prep %autosetup -n %{mname} %build mkdir ../%{mname}_build cd ../%{mname}_build cmake3 -DGEANT4_INSTALL_DATADIR=%{data_path} -DGEANT4_USE_GDML=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_X11=ON -DCMAKE_INSTALL_PREFIX=%{buildroot}%{inst_dir} ../%{mname} %make_build %install cd ../%{mname}_build cmake3 --build . --target install rm %{buildroot}%{inst_dir}/share/Geant4-%{version}/geant4-%{version} mkdir -p %{buildroot}/etc/profile.d/ echo "source %{inst_dir}/bin/geant4.sh" >> %{buildroot}/etc/profile.d/geant4.sh sed -i "s/> \/dev\/null/\&>\/dev\/null/g" %{buildroot}%{inst_dir}/bin/geant4.sh #fdupes -s %{buildroot}%{inst_dir} #%post # %files /etc/profile.d/geant4.sh %dir %{inst_dir} %{inst_dir}/*
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor