Name: SolarModel Summary: Real-time 3D Solar System simulation Version: 2.1 Release: 7%{?dist} License: GPL+ Group: System Environment/Base Source0: http://downloads.sourceforge.net/solarmodel/%{name}_src_2_1.zip # Upstream only has these .dat files in the binary zip file for 2.1 # http://downloads.sourceforge.net/solarmodel/SolarModel_bin_2_1.zip Source1: config.dat Source2: data.dat Source3: SolarModel.desktop Source4: SolarModel.png # Use system locations for libraries, headers # Use RPM_OPT_FLAGS # Fix swprintf/Linux related issues Patch0: SolarModel-2.1-Fedora.patch # Compile against irrlicht 1.6 Patch1: SolarModel-2.1-irrlicht1.6.patch URL: http://www.ffsoftworks.com/solarmodel.php BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: irrlicht-devel, libXext-devel, libX11-devel, desktop-file-utils %description Solar Model provides realtime modeling of the solar system. It allows the user to navigate in space, to control time counting (speed-up time flow) and estimate real movement of space bodies like planets, dwarf planets and moons; estimate its nowadays positions in space. You may select two possible views: Solar System view or Milky Way galaxy view. It also allows the user to bind the camera to space objects (for example, you can look from the Moon onto Earth in real-time flow). %prep %setup -q -n %{name}_src %patch0 -p1 -b .Fedora %patch1 -p1 -b .irrlicht1.6 for i in _dev/*.txt "_dev/map/*.txt"; do sed -i 's/\r//' $i done iconv -o _dev/Changelog.txt.iso88591 -f iso88591 -t utf8 _dev/Changelog.txt mv _dev/Changelog.txt.iso88591 _dev/Changelog.txt %build make %{_smp_mflags} %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} install -m0755 SolarModel %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_datadir}/pixmaps install -p -m0644 %{SOURCE1} %{buildroot}%{_datadir}/%{name} install -p -m0644 %{SOURCE2} %{buildroot}%{_datadir}/%{name} install -p -m0644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE3} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc _dev/Changelog.txt _dev/License.txt _dev/Readme.txt _dev/map/* _dev/num/* %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/*.desktop %{_datadir}/pixmaps/SolarModel.png %changelog * Tue May 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.1-7 - fix segfault caused by code not looking in correct place for config.dat * Thu Jan 14 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.1-6 - bump for new irrlicht (1.6) * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Apr 1 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.1-4 - fix desktop file (bz 492751) * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Jan 5 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.1-2 - add desktop file and icon - fix 32bit build (thanks to Lubomir Rintel) * Wed Dec 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.1-1 - Initial package for Fedora