%define debug_package %{nil} Name: xbomb Version: 2.2b Release: 2%{?dist} Summary: This is a version of the minesweeper game for X Windows Group: Amusements/Games License: GPLv2+ URL: http://www.gedanken.org.uk/software/xbomb/ Source0: http://www.gedanken.org.uk/software/xbomb/download/xbomb-2.2b.tgz Source1: xbomb.png Source2: xbomb.desktop Patch0: xbomb-2.2b-modify_makefile.patch BuildRoot: %{_topdir}/BUILDROOT/%{name}-%{version}-%{release}.%{arch} BuildRequires: gcc BuildRequires: libXaw-devel BuildRequires: libXmu-devel BuildRequires: libXt-devel BuildRequires: libX11-devel BuildRequires: desktop-file-utils Requires: libXaw Requires: libXmu Requires: libXt Requires: libX11 %description Have you ever played minesweeper on a grid that is other than square in shape? Try playing on a hexagonal grid or for a challenge on a triangular grid. %prep %setup %patch0 -p1 %build make %{?_smp_mflags} xbomb %install strip xbomb install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_mandir}/man6 install -d %{buildroot}%{_datadir}/X11/app-defaults install -d %{buildroot}%{_datadir}/pixmaps install -m 755 xbomb %{buildroot}%{_bindir} install -m 644 xbomb.6 %{buildroot}%{_mandir}/man6 install -m 644 xbomb.ad %{buildroot}%{_datadir}/X11/app-defaults/XBomb install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps desktop-file-install --vendor "" --dir=%{buildroot}%{_datadir}/applications %{SOURCE2} %files %doc README /usr/bin/xbomb /usr/share/man/man6/xbomb.6.gz /usr/share/X11/app-defaults/XBomb /usr/share/applications/xbomb.desktop /usr/share/pixmaps/xbomb.png %changelog * Wed Oct 31 2018 drgraham - 2.2b-2 - Rebuild for Fedora 29 - Add gcc to BuildRequires * Sat Feb 11 2017 drgraham - 2.2b-1 - Initial package for Fedora