Summary: A tracking detector simulation program Name: garfieldpp %define version 337 Version: %{version} Release: 10.8%{?dist}1c 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 Patch0: garfieldpp-dylib.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 -b %patch0 -p1 (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))) export PATH=$PATH:$ROOTSYS/bin export DYLD_LIBRARY_PATH=$ROOTSYS/lib make (cd GarfRoot; make -f makefile_macosx) mv GarfRoot/garfroot bin/ make clean %install mkdir -p $RPM_BUILD_ROOT%{__prefix}/garfieldpp-%{version} tar -cf - . | tar -xvf - -C $RPM_BUILD_ROOT%{__prefix}/garfieldpp-%{version} (cd $RPM_BUILD_ROOT%{__prefix}/garfieldpp-%{version} for i in $(find . -name .svn); do rm -rf $i; done ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,wheel) %dir %{__prefix}/garfieldpp-%{version} %{__prefix}/garfieldpp-%{version}/* %changelog * Mon Dec 16 2013 Keisuke Fujii 337-10.8hepx1c - 3rd build on MacOS X 10.8 for Intel Macs - Fixed the init script. * Mon Dec 16 2013 Keisuke Fujii 337-10.8hepx1b - 2nd build on MacOS X 10.8 for Intel Macs - with root-5.34.12-10.8hepx3a * Sat Dec 07 2013 Keisuke Fujii 337-10.8hepx1a - 1st build on MacOS X 10.8 for Intel Macs * Fri May 04 2012 Keisuke Fujii 284-10.7hepx1a - 1st build on MacOS X 10.7 for Intel Macs