tdopewars.spec.in - vaccinewars - be a doctor and try to vaccinate the world
 (HTM) git clone git://src.adamsgaard.dk/vaccinewars
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       tdopewars.spec.in (3683B)
       ---
            1 Summary:       Drug dealing game
            2 Name:          @PACKAGE@
            3 Version:       @VERSION@
            4 Release:       1%{?dist}
            5 Vendor:        Ben Webb <benwebb@users.sf.net>
            6 URL:           https://dopewars.sourceforge.io/
            7 License:       GPL
            8 Group:         Amusements/Games
            9 Source0:       %{name}-%{version}.tar.gz
           10 BuildRoot:     %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
           11 BuildRequires: SDL2_mixer-devel SDL2-devel glib2-devel gcc libcurl-devel
           12 BuildRequires: gtk3-devel ncurses-devel gettext-devel
           13 
           14 %description
           15 Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an    
           16 imaginary drug market.  dopewars is an All-American game which features       
           17 buying, selling, and trying to get past the cops!                              
           18                                                                                 
           19 The first thing you need to do is pay off your debt to the Loan Shark. After   
           20 that, your goal is to make as much money as possible (and stay alive)! You     
           21 have one month of game time to make your fortune.                              
           22 
           23 dopewars supports multiple players via. TCP/IP. Chatting to and fighting
           24 with other players (computer or human) is supported; check the command line
           25 switches (via dopewars -h) for further information. 
           26 
           27 %package sdl
           28 Summary:  dopewars SDL_mixer sound plugin
           29 Group:    Amusements/Games
           30 Requires: %{name}
           31 %description sdl
           32 This package adds a plugin to dopewars to allow sound to be output via.
           33 the Simple DirectMedia Layer mixer (SDL2 and SDL_mixer).
           34 
           35 %prep
           36 %setup
           37 
           38 %build
           39 %define _localstatedir /var/lib/games
           40 %configure --with-sdl
           41 make
           42 
           43 %install
           44 make install DESTDIR=${RPM_BUILD_ROOT}
           45 %find_lang %{name}
           46 
           47 %clean
           48 test "$RPM_BUILD_ROOT" != "/" && rm -rf ${RPM_BUILD_ROOT}
           49 
           50 %post
           51 %{_bindir}/dopewars -C %{_localstatedir}/dopewars.sco
           52 
           53 %files -f %{name}.lang
           54 %defattr(-,root,root)
           55 %doc ChangeLog.md LICENCE README.md
           56 %doc %{_docdir}/%{name}
           57 %attr(2755,root,games) %{_bindir}/dopewars
           58 %attr(0660,root,games) %config %{_localstatedir}/dopewars.sco
           59 %{_mandir}/man6/dopewars.6.gz
           60 %{_datadir}/gnome/apps/Games/dopewars.desktop
           61 %{_datadir}/pixmaps/dopewars-pill.png
           62 %{_datadir}/pixmaps/dopewars-weed.png
           63 %{_datadir}/pixmaps/dopewars-shot.png
           64 %dir %{_datadir}/dopewars/
           65 %{_datadir}/dopewars/bye.wav
           66 %{_datadir}/dopewars/colt.wav
           67 %{_datadir}/dopewars/die.wav
           68 %{_datadir}/dopewars/gun.wav
           69 %{_datadir}/dopewars/jet.wav
           70 %{_datadir}/dopewars/losebitch.wav
           71 %{_datadir}/dopewars/message.wav
           72 %{_datadir}/dopewars/murmur.wav
           73 %{_datadir}/dopewars/punch.wav
           74 %{_datadir}/dopewars/run.wav
           75 %{_datadir}/dopewars/shotdown.wav
           76 %{_datadir}/dopewars/train.wav
           77 
           78 %files sdl
           79 %defattr(-,root,root)
           80 %{_libdir}/dopewars/libsound_sdl.so
           81 
           82 %changelog
           83 * Wed Dec 02 2020 Ben Webb <benwebb@users.sf.net>
           84 - Build with SDL2 rather than SDL 1.
           85 
           86 * Mon Jul 28 2003 Ben Webb <benwebb@users.sf.net>
           87 - High score file moved to /var/lib/games for consistency with
           88   other packages
           89 
           90 * Mon Oct 21 2002 Ben Webb <benwebb@users.sf.net>
           91 - Dependency on SDL-devel added to properly build SDL plugin
           92 
           93 * Fri Oct 18 2002 Ben Webb <benwebb@users.sf.net>
           94 - ESD plugin incorporated into main package
           95 - Sound files added to distribution
           96 
           97 * Fri Jun 21 2002 Ben Webb <benwebb@users.sf.net>
           98 - Description typos corrected
           99 - A lot of hardcoded texts replaced with %{name} etc.
          100 - Redundant make arguments removed
          101 
          102 * Mon May 13 2002 Ben Webb <benwebb@users.sf.net>
          103 - SDL and ESD plugin subpackages added
          104 
          105 * Sun Feb 03 2002 Ben Webb <benwebb@users.sf.net>
          106 - Use of %attr tidied up
          107 - Rebuild with new version
          108 
          109 * Wed Oct 17 2001 Ben Webb <benwebb@users.sf.net>
          110 - Added in %attrs to allow building by non-root users
          111 
          112 * Wed Sep 26 2001 Ben Webb <benwebb@users.sf.net>
          113 - Added support for a buildroot