647d7c4
Name:		chocolate-doom
72e5ee0
Version:	2.2.1
72e5ee0
Release:	1%{?dist}
647d7c4
Group:		Amusements/Games
647d7c4
Summary:	Historically compatible Doom engine
647d7c4
License:	GPLv2+
647d7c4
URL:		http://chocolate-doom.org/
e07c702
Source0:	http://www.chocolate-doom.org/downloads/%{version}/%{name}-%{version}.tar.gz
647d7c4
BuildRequires:	SDL-devel, SDL_mixer-devel, SDL_net-devel
647d7c4
BuildRequires:	libsamplerate-devel desktop-file-utils
9eb93bf
# Required by man/docgen
9eb93bf
BuildRequires:	%{__python}
647d7c4
Provides:	bundled(md5-plumb)
647d7c4
647d7c4
%description
647d7c4
Chocolate Doom is a game engine that aims to accurately reproduce the experience 
647d7c4
of playing vanilla Doom. It is a conservative, historically accurate Doom source 
647d7c4
port, which is compatible with the thousands of mods and levels that were made 
647d7c4
before the Doom source code was released. Rather than flashy new graphics, 
647d7c4
Chocolate Doom's main features are its accurate reproduction of the game as it
647d7c4
was played in the 1990s. 
647d7c4
647d7c4
%prep
647d7c4
%setup -q
647d7c4
647d7c4
%build
647d7c4
%configure
9eb93bf
make %{?_smp_mflags}
647d7c4
647d7c4
%install
647d7c4
make install DESTDIR=%{buildroot} \
647d7c4
     iconsdir="%{_datadir}/icons/hicolor/64x64/apps" \
9eb93bf
     docdir="%{_pkgdocdir}"
647d7c4
mkdir -p %{buildroot}/%{_bindir}
647d7c4
mv %{buildroot}/%{_prefix}/games/* %{buildroot}/%{_bindir}/
647d7c4
Richard Hughes 4641a61
# Register as an application to be visible in the software center
Richard Hughes 4641a61
#
Richard Hughes 4641a61
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 4641a61
# project, translated and installed into the right place during `make install`.
Richard Hughes 4641a61
#
Richard Hughes 4641a61
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 4641a61
#
Richard Hughes 4641a61
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 4641a61
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 4641a61
Richard Hughes 4641a61
Richard Hughes 4641a61
Richard Hughes 4641a61
BugReportURL: https://github.com/chocolate-doom/chocolate-doom/issues/406
Richard Hughes 4641a61
SentUpstream: 2014-09-24
Richard Hughes 4641a61
-->
Richard Hughes 4641a61
<application>
Richard Hughes 4641a61
  <id type="desktop">chocolate-doom.desktop</id>
Richard Hughes 4641a61
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 4641a61
  <summary>A clone of the popular DOS game DOOM</summary>
Richard Hughes 4641a61
  <description>
Richard Hughes 4641a61
    

Richard Hughes 4641a61
      Chocolate Doom is an original source port of the popular DOOM game for the PC.
Richard Hughes 4641a61
    

Richard Hughes 4641a61
    

Richard Hughes 4641a61
      It accurately reproduces the playing experience of the original DOOM game
Richard Hughes 4641a61
      and is compatible with the numerous mods and levels designed for the original.
Richard Hughes 4641a61
    

Richard Hughes 4641a61
  </description>
Richard Hughes 4641a61
  <url type="homepage">http://chocolate-doom.org/</url>
Richard Hughes 4641a61
  <screenshots>
Richard Hughes 4641a61
    <screenshot type="default">http://www.chocolate-doom.org/wiki/images/a/a7/Chocolate-doom.png</screenshot>
Richard Hughes 4641a61
  </screenshots>
Richard Hughes 4641a61
</application>
Richard Hughes 4641a61
EOF
Richard Hughes 4641a61
e07c702
desktop-file-validate %{buildroot}/%{_datadir}/applications/chocolate-heretic.desktop
e07c702
desktop-file-validate %{buildroot}/%{_datadir}/applications/chocolate-hexen.desktop
e07c702
desktop-file-validate %{buildroot}/%{_datadir}/applications/chocolate-strife.desktop
e07c702
desktop-file-validate %{buildroot}/%{_datadir}/applications/screensavers/chocolate-doom-screensaver.desktop
647d7c4
647d7c4
%files
72e5ee0
%doc %{_docdir}/chocolate*
647d7c4
%{_bindir}/chocolate-doom
647d7c4
%{_bindir}/chocolate-server
e07c702
%{_bindir}/chocolate-doom-setup
e07c702
%{_bindir}/chocolate-heretic
e07c702
%{_bindir}/chocolate-heretic-setup
e07c702
%{_bindir}/chocolate-hexen
e07c702
%{_bindir}/chocolate-hexen-setup
e07c702
%{_bindir}/chocolate-strife
e07c702
%{_bindir}/chocolate-strife-setup
Richard Hughes 4641a61
%{_datadir}/appdata/*.appdata.xml
647d7c4
%{_datadir}/applications/chocolate-doom.desktop
647d7c4
%{_datadir}/applications/chocolate-setup.desktop
e07c702
%{_datadir}/applications/screensavers/chocolate-doom-screensaver.desktop
e07c702
%{_datadir}/applications/chocolate-heretic.desktop
e07c702
%{_datadir}/applications/chocolate-hexen.desktop
e07c702
%{_datadir}/applications/chocolate-strife.desktop
647d7c4
%{_datadir}/icons/hicolor/64x64/apps/chocolate-doom.png
647d7c4
%{_datadir}/icons/hicolor/64x64/apps/chocolate-setup.png
647d7c4
%{_mandir}/man5/chocolate-doom.cfg.5.gz
e07c702
%{_mandir}/man5/chocolate-heretic.cfg.5.gz
e07c702
%{_mandir}/man5/chocolate-hexen.cfg.5.gz
e07c702
%{_mandir}/man5/chocolate-strife.cfg.5.gz
647d7c4
%{_mandir}/man5/default.cfg.5.gz
e07c702
%{_mandir}/man5/heretic.cfg.5.gz
e07c702
%{_mandir}/man5/hexen.cfg.5.gz
e07c702
%{_mandir}/man5/strife.cfg.5.gz
647d7c4
%{_mandir}/man6/chocolate-doom.6.gz
647d7c4
%{_mandir}/man6/chocolate-server.6.gz
647d7c4
%{_mandir}/man6/chocolate-setup.6.gz
e07c702
%{_mandir}/man6/chocolate-doom-setup.6.gz
e07c702
%{_mandir}/man6/chocolate-heretic-setup.6.gz
e07c702
%{_mandir}/man6/chocolate-heretic.6.gz
e07c702
%{_mandir}/man6/chocolate-hexen-setup.6.gz
e07c702
%{_mandir}/man6/chocolate-hexen.6.gz
e07c702
%{_mandir}/man6/chocolate-strife-setup.6.gz
e07c702
%{_mandir}/man6/chocolate-strife.6.gz
647d7c4
647d7c4
%changelog
72e5ee0
* Sun Nov 06 2016 Filipe Rosset <rosset.filipe@gmail.com> - 2.2.1-1
72e5ee0
- Update to new upstream release 2.2.1 fixes RHBZ #1307376
72e5ee0
758aaac
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-12
758aaac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
758aaac
e415635
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-11
e415635
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e415635
e07c702
* Sat Jun 13 2015 Rahul Sundaram <sundaram@fedoraproject.org> - 2.2.0
e07c702
- update to 2.2.0
e07c702
Richard Hughes 4641a61
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.6.0-10
Richard Hughes 4641a61
- Add an AppData file for the software center
Richard Hughes 4641a61
f340a7c
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-9
f340a7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f340a7c
4e67150
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-8
4e67150
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4e67150
9eb93bf
* Tue Dec 31 2013 Ralf Cors├ępius <corsepiu@fedoraproject.org> - 1.6.0-7
9eb93bf
- Install docs into %%pkgdocdir.
9eb93bf
- BR: %%{__python} (Address FTBFS RHBZ #992055).
9eb93bf
dfb76bf
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-6
dfb76bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
dfb76bf
443e34f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-5
443e34f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
443e34f
11eba09
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-4
11eba09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
11eba09
8843bd3
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-3
8843bd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8843bd3
647d7c4
* Sat Aug 20 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 1.6.0-2
647d7c4
- use dist tag and added provides on bundled(md5-plumb) as per review
647d7c4
647d7c4
* Tue Aug 16 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 1.6.0-1
647d7c4
- initial spec