Name: orsa Version: 0.7.0 Release: 2%{?dist} Summary: Orbit Reconstruction, Simulation and Analysis Group: Amusements/Graphics License: GPLv2+ URL: http://orsa.sourceforge.net Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz # Patch to build with GCC 4.3 # Reported into upstream bugtracker as # http://sourceforge.net/tracker/index.php?func=detail&aid=2099077&group_id=44502&atid=439768 Patch0: %{name}-gcc43.patch # Patching configure in order to: # - make it find the fftw2 library properly (-lm was missing but needed) # - make it find the cln and ginac libraries properly as they do not use # {cln,ginac}-config anymore but rely on pkg-config instead in F9 and higher # Reported into upstream bugtracker as # http://sourceforge.net/tracker/index.php?func=detail&aid=2099054&group_id=44502&atid=439768 Patch1: %{name}-configure.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: readline-devel BuildRequires: qt3-devel BuildRequires: mesa-libGL-devel BuildRequires: fftw2-devel BuildRequires: gsl-devel BuildRequires: cln-devel BuildRequires: ginac-devel BuildRequires: openmpi-devel %description ORSA is an interactive tool for scientific grade Celestial Mechanics computations. Asteroids, comets, artificial satellites, Solar and extra-Solar planetary systems can be accurately reproduced, simulated, and analyzed. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: fftw2-devel Requires: gsl-devel Requires: zlib-devel Requires: %{name} = %{version}-%{release} %description devel This package contains development files for %{name}. %prep %setup -q %patch0 -p1 %patch1 -p1 %build # honor $RPM_OPT_FLAGS sed -i 's|-g -Wall -W -pipe -ftemplate-depth-64 -O3 -fno-exceptions -funroll-loops -fstrict-aliasing -fno-gcse|$CXXFLAGS|' configure %configure --disable-static --with-mpi "CLN_CONFIG=`which pkg-config` cln" "GINACLIB_CONFIG=`which pkg-config` ginac" # remove rpaths sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # we don't want to ship libtool archives: rm $RPM_BUILD_ROOT%{_libdir}/liborsa.la $RPM_BUILD_ROOT%{_libdir}/libxorsa.la %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc COPYING DEVELOPERS %{_bindir}/xorsa %{_libdir}/liborsa.so.* %{_libdir}/libxorsa.so.* %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/liborsa.so %{_libdir}/libxorsa.so %changelog * Wed Sep 10 2008 Milos Jakubicek - 0.7.0-2 - Patched configure to honor $RPM_OPT_FLAGS - Added missing Requires: to the -devel subpackage * Fri Sep 5 2008 Milos Jakubicek - 0.7.0-1 - Initial release.