File hugo.spec of Package hugo-2.12-4.48
#
# spec file for package hugo
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define name hugo
%define longname Hu-Go!
%define version 2.12
Name: %{name}
Version: %{version}
Release: 4.48
Summary: %{longname} - PC Engine Emulator
License: GPL-2.0 and BSD-3-Clause
Group: System/Emulators/Other
Url: http://www.zeograd.com/
Source0: http://www.zeograd.com/download/%{name}-%{version}.tar.bz2
Source1: %{name}.changes
Patch0: %{name}-%{version}.patch
Patch1: %{name}-rpmlint.patch
BuildRequires: SDL-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_net-devel
BuildRequires: gtk2-devel
BuildRequires: latex2html
BuildRequires: libvorbis-devel
BuildRequires: lyx
BuildRequires: tidy
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Hu-go! is a TurboGrafx 16/PC-Engine Emulator.
%prep
%setup -q
%patch0
%patch1
# fix builddate info
# Remove build time references so build-compare can do its work
cp %{SOURCE1} .
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
sed -e "s/__TIME__/\"$FAKE_BUILDTIME\"/" -i pce.c
sed -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" -i pce.c
%build
export CFLAGS="-fgnu89-inline"
%configure \
--with-sdl-mixer --with-ogg-support
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/hugo
%{_bindir}/hugod
%{_datadir}/%{name}
%changelog
* Sat Nov 26 2016 aloisio@gmx.com
- Fixed TW/Factory build
- Spec cleanup
* Mon Nov 24 2008 uli@suse.d
- fixed bugs found by rpmlint
* Sun Jun 15 2008 uli@suse.d
- fixed to work on 64-bit archs
* Sun Mar 13 2005 goetz@zarb.org
- update file list
- fix buildrequires
- drop patches
- fix URL
- fix License
- new version
* Wed Feb 16 2005 goetz@zarb.org
- fix build
* Sun Jul 20 2003 goetz@plf.zarb.org
- buildrequires fix
* Thu Jul 17 2003 goetz@plf.zarb.org
- patch to fix build with current gcc
- quiet tar
* Wed Apr 9 2003 thauvin@aerov.jussieu.fr
- => plf
- games path
- somes minor fix
* Mon Mar 3 2003 guillaume.bedot@wanadoo.fr
- Update to 2.10.
* Mon Feb 24 2003 guillaume.bedot@wanadoo.fr
- Update to latest CVS.
- Added menu entry and icons for the GUI.
* Wed Feb 12 2003 guillaume.bedot@wanadoo.fr
- First try to package Hu-Go!