File wordwarvi.spec of Package wordwarvi

#
# spec file for package wordwarvi
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           wordwarvi
Version:        1.0.4
Release:        0
Summary:        A retro styled side scrolling shoot'em up arcade game for linux
License:        GPL-2.0-or-later AND CC-BY-SA-3.0
Group:          Amusements/Games/Action/Arcade
URL:            https://smcameron.github.com/wordwarvi/
Source:         https://github.com/smcameron/wordwarvi/archive/v%{version}.tar.gz#/wordwarvi-%{version}.tar.gz
Source1:        wordwarvi.desktop
# PATCH-FIX-OPENSUSE wordwarvi-dont_compress_manpage.patch -- Do not compress man page, this is done by brp-compress
Patch0:         wordwarvi-dont_compress_manpage.patch
BuildRequires:  alsa-devel
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  libtool
BuildRequires:  libvorbis-devel
BuildRequires:  make
BuildRequires:  pkgconfig
BuildRequires:  portaudio-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-2.0)

%description
Word War vi is your basic side-scrolling shoot 'em up '80s style arcade game.
You pilot your "vi"per craft through core memory, rescuing lost .swp files,
avoiding OS defenses, and wiping out those memory hogging emacs processes. When
all the lost .swp files are rescued, head for the socket which will take you to
the next node in the cluster.

%prep
%setup -q
%patch0

%build
%make_build \
    PREFIX="%{_prefix}" \
    DATADIR="%{_datadir}/%{name}" \
    MANDIR="%{_mandir}" \
    BINDIR="%{_bindir}" \
    SCREENSAVERFLAG="-DDO_INHIBIT_SCREENSAVER" \
    WITHAUDIO="yes" \
    BUILD_CC="gcc" \
    CFLAGS="%{optflags}"

%install
make  %{?_smp_mflags} \
    PREFIX="%{_prefix}" \
    DATADIR="%{_datadir}/%{name}" \
    MANDIR="%{_mandir}" \
    BINDIR="%{_bindir}" \
    DESTDIR=%{buildroot} \
    install

install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
install -D -m0644 icons/wordwarvi_icon_128x128.png "%{buildroot}%{_datadir}/pixmaps/%{name}.png"
%suse_update_desktop_file -r "%{name}" Game ArcadeGame

%files
%license COPYING
%doc *.txt AUTHORS README
%{_bindir}/wordwarvi
%{_datadir}/wordwarvi
%{_mandir}/man6/wordwarvi.6%{?ext_man}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by