Name: accrete
Version: 1.0
Release: 2%{?dist}
Summary: Accrete is a physical simulation of solar system planet formation
License: Public Domain
Group: Applications/Engineering
URL: http://sourceforge.net/projects/accrete
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: accrete-1.0-savetofile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Accrete is a physical simulation of solar system planet formation,
by modelling a dust cloud around a Sun-like star, injecting a series
of masses which collect dust, and form planets. The simulation then
determines what the planetary environments will be like in terms
of temperature, atmospheric composition, and other factors.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p2 -b .filetosave
%build
make 'CFLAGS=%{optflags}' %{_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
install -Dm 755 accrete $RPM_BUILD_ROOT%{_bindir}/accrete
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README ChangeLog
%{_bindir}/accrete
%changelog
* Sat Nov 24 2007 Marek Mahut <mmahut@fedoraproject.org> - 1.0-2
- Initial build.