Summary: A tracking detector simulation program Name: garfieldpp %define version 284 Version: %{version} Release: 10.7%{?dist}1a 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 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 * Fri May 04 2012 Keisuke Fujii 284-10.7hepx1a - 1st build on MacOS X 10.7 for Intel Macs