-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhugo.spec
70 lines (60 loc) · 1.69 KB
/
hugo.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Summary: Hu-Go! - TurboGrafx 16/PC-Engine Emulator
Name: hugo
Version: 2.12
Release: 13
License: GPLv2+
Group: Emulators
Url: https://www.zeograd.com/
Source0: http://www.zeograd.com/download/%{name}-%{version}.tar.gz
Source1: %{name}-48.png
Patch0: hugo-2.12-gcc4.patch
Patch1: hugo-2.12-x86_64fix.patch
Patch2: hugo-2.12-x86_64-fixes-backport.patch
Patch3: hugo-2.12-sfmt.patch
Patch4: hugo-2.12-compile.patch
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(SDL_mixer)
BuildRequires: pkgconfig(SDL_net)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(zlib)
%description
Hu-Go! is a TurboGrafx 16/PC-Engine Emulator. There is some public domain roms
you play with. The other games need that you own the original card or CD.
%files
%doc AUTHORS NEWS README
%attr(0755,root,games) %{_bindir}/%{name}
%{_bindir}/hugod
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_iconsdir}/*.png
%{_mandir}/man6/%{name}*.6*
#----------------------------------------------------------------------------
%prep
%autosetup -p1
autoreconf -f
automake -a
aclocal
autoconf
%conf
./configure --prefix=%{_prefix} --libdir=%{_libdir}
%build
%make_build
%install
%make_install bindir=%{buildroot}/%{_gamesbindir}
install -d -m 755 %{buildroot}%{_mandir}/man6/
install -m 644 %{name}*.6 %{buildroot}%{_mandir}/man6/
install -D -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_datadir}/applications
cat<<EOF>%{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Hu-Go!
Comment=%{summary}
Exec=%{_gamesbindir}/hugo
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;Emulator;
EOF