Summary: A tracking detector simulation program Name: garfieldpp %define version 467 Version: %{version} Release: 10.12%{?dist}2b Source0: r%{version}.tar.gz Source1: http://garfieldpp.web.cern.ch/garfieldpp/getting-started/garfroot.C Source2: http://garfieldpp.web.cern.ch/garfieldpp/getting-started/makefile_macosx Source3: thisgarfpp.sh Patch0: garfieldpp-macosx10.12.patch License: CERN Group: CERNLIB %define __prefix /opt/garfpp BuildRoot: %{_tmppath}/garfpp-root %description Garfield++ is a toolkit for the detailed simulation of particle detectors that use gas and semi-conductors as sensitive medium. The main area of application is currently in micropattern gaseous detectors. Garfield++ shares functionality with Garfield. The main differences are the more up-to-date treatment of electron transport and the user interface, which is derived from ROOT. %prep %setup -n r%{version} %patch0 -p1 mkdir bin cp -p $RPM_SOURCE_DIR/thisgarfpp.sh bin/ (cd bin ROOT_VER=`rpm -q root | sed -e 's;root-\([^-]*\).*;\1;'` mv thisgarfpp.sh thisgarfpp.sh.keep sed -e "s;5.34.12;$ROOT_VER;g" thisgarfpp.sh.keep > thisgarfpp.sh rm -f thisgarfpp.sh.keep ) mkdir GarfRoot cp -p $RPM_SOURCE_DIR/garfroot.C GarfRoot/ cp -p $RPM_SOURCE_DIR/makefile_macosx GarfRoot/ %build export GARFIELD_HOME=`pwd` export ROOTSYS=$(dirname $(dirname $(rpm -ql root | grep bin/root.exe))) source $ROOTSYS/bin/thisroot.sh make CXX='g++' (cd GarfRoot; make CXX='g++' -f makefile_macosx) mv GarfRoot/garfroot bin/ make clean %install mkdir -p $RPM_BUILD_ROOT%{__prefix}/r%{version} tar -cf - . | tar -xvf - -C $RPM_BUILD_ROOT%{__prefix}/r%{version} (cd $RPM_BUILD_ROOT%{__prefix}/r%{version} for i in $(find . -name .svn); do rm -rf $i; done ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,wheel) %dir %{__prefix}/r%{version} %{__prefix}/r%{version}/* %changelog * Fri Jan 6 2017 Keisuke Fujii 467-10.12hepx2b - 2nd build on MacOS X 10.12 for Intel Macs - renamed the installed directory. - included thisgarfpp.sh in SRPMS. * Fri Jan 6 2017 Keisuke Fujii 467-10.12hepx2a - 1st build on MacOS X 10.12 for Intel Macs * Tue Dec 27 2016 Keisuke Fujii 418-10.12hepx1b - 2nd build on MacOS X 10.12 for Intel Macs - rebuilt with OSXWS 10.12 * Mon Dec 19 2016 Keisuke Fujii 418-10.12hepx1a - 1st build on MacOS X 10.12 for Intel Macs - built with OSXWS 10.11 * Tue Feb 09 2016 Keisuke Fujii 418-10.11hepx1a - 1st build on MacOS X 10.11 for Intel Macs * Wed Dec 24 2014 Keisuke Fujii 349-10.10hepx1a - 1st build on MacOS X 10.10 for Intel Macs * Fri Aug 08 2014 Keisuke Fujii 349-10.9hepx1a - 1st build on MacOS X 10.9 for Intel Macs * Fri Dec 20 2013 Keisuke Fujii 337-10.9hepx1d - 4th build on MacOS X 10.9 for Intel Macs - now linked against root-5.34.14. * Mon Dec 16 2013 Keisuke Fujii 337-10.9hepx1c - 3rd build on MacOS X 10.9 for Intel Macs - Fixed the init script. * Mon Dec 16 2013 Keisuke Fujii 337-10.9hepx1b - 2nd build on MacOS X 10.9 for Intel Macs - with root-5.34.12-10.9hepx3a * Fri Nov 29 2013 Keisuke Fujii 337-10.9hepx1a - 1st build on MacOS X 10.9 for Intel Macs * Fri May 04 2012 Keisuke Fujii 284-10.7hepx1a - 1st build on MacOS X 10.7 for Intel Macs