Name: xgrav Version: 1.2.0 Release: 34%{?dist} Summary: A simple physics simulation for a large number of particles License: GPL-2.0-or-later URL: http://aass.oru.se/~mbl/xgrav/ Source0: http://www.aass.oru.se/~mbl/xgrav/xgrav-%{version}.tgz Source1: xgrav.desktop #Created from screenshot of example1.g run. Source2: xgrav.png BuildRequires: make BuildRequires: gcc BuildRequires: desktop-file-utils, SDL-devel, flex, zlib-devel Requires: hicolor-icon-theme %description X-Grav simulates the effect of gravity, collisions, heat dissipation and a simple chemical reaction. The simulation is in no way meant to be realistic but rather a toy with which you can create stars, planets and even simple solar systems. %prep %setup -qn xgrav chmod -x COPYING %build make LINUX_CFLAGS="-c $RPM_OPT_FLAGS `pkg-config --cflags sdl` \ -DWITH_ROOTWINDOW" LINUX_LDFLAGS="$RPM_OPT_FLAGS `pkg-config \ --libs sdl` -lGL `pkg-config --libs x11` -lm" %install mkdir -p %{buildroot}%{_bindir} install -p -m 755 xgrav %{buildroot}%{_bindir}/xgrav mkdir -p %{buildroot}%{_datadir}/xgrav install -p -m 644 example* %{buildroot}%{_datadir}/xgrav sed 's;/usr/share;%_datadir;' %{SOURCE1} > xgrav.desktop mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ xgrav.desktop mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps install -p -m 644 %{SOURCE2} \ %{buildroot}%{_datadir}/icons/hicolor/32x32/apps %files %doc COPYING documentation.html README README.html TODO VERSION %{_bindir}/xgrav %{_datadir}/xgrav %{_datadir}/applications/xgrav.desktop %{_datadir}/icons/hicolor/32x32/apps/xgrav.png %changelog * Sat Jul 22 2023 Fedora Release Engineering - 1.2.0-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Mar 02 2023 Gwyn Ciesla - 1.2.0-33 - migrated to SPDX license * Sat Jan 21 2023 Fedora Release Engineering - 1.2.0-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.2.0-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 1.2.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.2.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jan 28 2021 Fedora Release Engineering - 1.2.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.2.0-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jan 31 2020 Fedora Release Engineering - 1.2.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jul 27 2019 Fedora Release Engineering - 1.2.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 1.2.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.2.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.2.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 18 2018 Igor Gnatenko - 1.2.0-21 - Remove obsolete scriptlets * Thu Aug 03 2017 Fedora Release Engineering - 1.2.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.2.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.2.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Feb 05 2016 Fedora Release Engineering - 1.2.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 1.2.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Aug 18 2014 Fedora Release Engineering - 1.2.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.2.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.2.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Feb 10 2013 Parag Nemade - 1.2.0-12 - Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077 - Cleanup spec as per recently changed packaging guidelines * Sun Jul 22 2012 Fedora Release Engineering - 1.2.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 1.2.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 07 2011 Fedora Release Engineering - 1.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jul 27 2009 Fedora Release Engineering - 1.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.2.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Feb 08 2008 Jon Ciesla - 1.2.0-6 - GCC 4.3 rebuild. * Mon Nov 12 2007 Jon Ciesla - 1.2.0-5 - Release bump to fix F-8 EVR issue. * Wed Oct 17 2007 Jon Ciesla - 1.2.0-4 - Removed duplicate file listing. - Re-added zlib-devel BR. * Tue Oct 16 2007 Jon Ciesla - 1.2.0-3 - Fixed build. - Preserved source timestamp. * Tue Oct 16 2007 Jon Ciesla - 1.2.0-2 - Changing optflag method, dropped zlib-devel BR. - Sited icon source, dropped .png from .desktop icon name. - .desktop now honors macros. - Preserved timestamps. - Consistentified buildroot macro. * Mon Oct 15 2007 Jon Ciesla - 1.2.0-1 - create.