File project.diff of Package dopewars
--- dopewars.spec.orig
+++ dopewars.spec
@@ -1,105 +1,99 @@
#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
+# spec file for package dopewars
+#
+# 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/
#
-# norootforbuild
-Summary: Drug dealing game
-Name: dopewars
-Version: 1.5.12.1053
-Release: 1
-Vendor: Ben Webb <benwebb@users.sf.net>
-URL: http://dopewars.sourceforge.net/
-License: GPL-2.0
-Group: Amusements/Games
-Source0: %{name}-%{version}.tar.gz
-Obsoletes: dopewars-esd = 1.5.7
-BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
-BuildRequires: SDL_mixer-devel
-BuildRequires: SDL-devel
-#BuildRequires: esound-devel
-BuildRequires: autoconf
-BuildRequires: automake
-#BuildRequires: gtkmm2-devel
-BuildRequires: glib2-devel
-BuildRequires: ncurses-devel
+Name: dopewars
+Version: 1.6.2
+Release: 0
+Summary: Drug dealing game
+License: GPL-2.0-only
+Group: Amusements/Games/Strategy/Other
+URL: https://dopewars.sourceforge.io/
+Source: https://github.com/benmwebb/dopewars/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: ncurses-devel
+BuildRequires: pkgconfig
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(libcurl)
+BuildRequires: pkgconfig(gtk+-3.0)
+BuildRequires: pkgconfig(sdl2)
%description
-Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an
-imaginary drug market. dopewars is an All-American game which features
-buying, selling, and trying to get past the cops!
-
-The first thing you need to do is pay off your debt to the Loan Shark. After
-that, your goal is to make as much money as possible (and stay alive)! You
-have one month of game time to make your fortune.
+Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an
+imaginary drug market. dopewars is an All-American game which features
+buying, selling, and trying to get past the cops!
+
+The first thing you need to do is pay off your debt to the Loan Shark. After
+that, your goal is to make as much money as possible (and stay alive)! You
+have one month of game time to make your fortune.
dopewars supports multiple players via. TCP/IP. Chatting to and fighting
with other players (computer or human) is supported; check the command line
-switches (via dopewars -h) for further information.
+switches (via dopewars -h) for further information.
%package sdl
-Summary: dopewars SDL_mixer sound plugin
-Group: Amusements/Games
-Requires: %{name}
+Summary: Dopewars SDL_mixer sound plugin
+Group: Amusements/Games/Strategy/Other
+Requires: %{name}
+
%description sdl
-This package adds a plugin to dopewars to allow sound to be output via.
+This package adds a plugin to dopewars to allow sound to be output via
the Simple DirectMedia Layer mixer (SDL_mixer).
%prep
-%setup
+%setup -q
%build
-%define _localstatedir /var/games
-./autogen.sh
-%configure --disable-gui-client --enable-curses-client --with-sdl
-make
+#%%define _localstatedir %{_localstatedir}/games
+autoreconf -fiv
+%configure \
+ --docdir="%{_docdir}/%{name}" \
+ --enable-curses-client \
+ --enable-gui-client \
+ --without-esd
+%make_build
%install
-make install DESTDIR=%{buildroot}
-%__mkdir_p %{buildroot}/%{_datadir}/applications
-%__mv %{buildroot}/%{_datadir}/gnome/apps/Games/dopewars.desktop %{buildroot}/%{_datadir}/applications
+%make_install
+install -d %{buildroot}/%{_datadir}/applications
+mv %{buildroot}/%{_datadir}/gnome/apps/Games/dopewars.desktop %{buildroot}/%{_datadir}/applications
%find_lang %{name}
-%post
-%{_bindir}/dopewars -C %{_localstatedir}/dopewars.sco
+# FIXME: Highscroe-file-handling
+rm %{buildroot}/%{_localstatedir}/dopewars.sco
-%clean
-%{?buildroot:%__rm -rf "%{buildroot}"}
+%post
+#%%{_bindir}/dopewars -C %{_localstatedir}/dopewars.sco
%files -f %{name}.lang
-%defattr(-,root,root)
-%doc ChangeLog LICENCE README
-%dir %{_datadir}/doc/dopewars-SVN
-%dir %{_libdir}/dopewars/
-%dir %{_localstatedir}
-%ghost %dir %{_datadir}/applications
-%doc %{_datadir}/doc/dopewars-SVN/*
-%attr(0755,root,users) %{_bindir}/dopewars
-%attr(0660,root,users) %config %{_localstatedir}/dopewars.sco
-%{_mandir}/man6/dopewars.6.gz
+%license COPYING
+%doc AUTHORS ChangeLog.md NEWS README.md
+%{_docdir}/%{name}/
+%{_bindir}/dopewars
+#%%config %{_localstatedir}/dopewars.sco
+%{_mandir}/man6/dopewars.6%{?ext_man}
%{_datadir}/applications/dopewars.desktop
-%{_datadir}/pixmaps/dopewars-pill.png
-%{_datadir}/pixmaps/dopewars-weed.png
-%{_datadir}/pixmaps/dopewars-shot.png
-%dir %{_datadir}/dopewars/
-%{_datadir}/dopewars/bye.wav
-%{_datadir}/dopewars/colt.wav
-%{_datadir}/dopewars/die.wav
-%{_datadir}/dopewars/gun.wav
-%{_datadir}/dopewars/jet.wav
-%{_datadir}/dopewars/losebitch.wav
-%{_datadir}/dopewars/message.wav
-%{_datadir}/dopewars/murmur.wav
-%{_datadir}/dopewars/punch.wav
-%{_datadir}/dopewars/run.wav
-%{_datadir}/dopewars/shotdown.wav
-%{_datadir}/dopewars/train.wav
+%{_datadir}/pixmaps/dopewars-*.png
+%{_datadir}/dopewars/
%files sdl
-%defattr(-,root,root)
+%dir %{_libdir}/dopewars
%{_libdir}/dopewars/libsound_sdl.so
%changelog
-* Wed Feb 8 2012 brunciter@localhost.lan
-- initial package