]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: bcond for non-gtk gui (gfceux) | |
3 | # TODO: bcond for gtk3 interface instead of qt | |
4 | # | |
5 | Summary: FCE Ultra - Linux Nintendo Entertainment System emulator | |
6 | Summary(pl.UTF-8): FCE Ultra - linuksowy emulator systemu Nintendo | |
7 | Name: fceultra | |
8 | Version: 2.4.0 | |
9 | Release: 1 | |
10 | License: GPL v2+ | |
11 | Group: X11/Applications/Games | |
12 | #Source0: http://downloads.sourceforge.net/fceultra/fceux-%{version}.src.tar.gz | |
13 | Source0: https://sourceforge.net/projects/fceultra/files/Source%20Code/%{version}%20src/fceux-%{version}.tar.gz | |
14 | # Source0-md5: 49266efef8c8c87455112d842bc162f3 | |
15 | URL: http://fceultra.sourceforge.net/ | |
16 | BuildRequires: Mesa-libGLU-devel | |
17 | BuildRequires: Qt5Core-devel >= 5.11 | |
18 | BuildRequires: Qt5Gui-devel >= 5.11 | |
19 | BuildRequires: Qt5OpenGL-devel >= 5.11 | |
20 | BuildRequires: Qt5Widgets-devel >= 5.11 | |
21 | BuildRequires: SDL2 >= 2.0 | |
22 | BuildRequires: cmake | |
23 | BuildRequires: lua51-devel | |
24 | BuildRequires: minizip-devel | |
25 | BuildRequires: pkgconfig | |
26 | Requires: Qt5Gui-platform-xcb-glx >= 5.11 | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | FCE Ultra is a cross platform, NTSC and PAL Famicom/NES emulator. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | FCE Ultra to wieloplatformowy emulator konsoli Famicom/NES/Pegasus. | |
34 | ||
35 | %prep | |
36 | %setup -q -n fceux-%{version} | |
37 | ||
38 | %build | |
39 | CFLAGS="%{rpmcflags}" | |
40 | CXXFLAGS="%{rpmcxxflags}" | |
41 | mkdir -p build | |
42 | %cmake --build=build . | |
43 | ||
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | %{__make} install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | install -d $RPM_BUILD_ROOT%{_mandir}/man6/ | |
52 | %{__mv} documentation/fceux.6 $RPM_BUILD_ROOT%{_mandir}/man6/ | |
53 | %{__mv} documentation/fceux-net-server.6 $RPM_BUILD_ROOT%{_mandir}/man6/ | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc README TODO-SDL changelog.txt readme.md documentation/* | |
61 | %attr(755,root,root) %{_bindir}/fceux | |
62 | %dir %{_datadir}/fceux | |
63 | %dir %{_datadir}/fceux/luaScripts | |
64 | %dir %{_datadir}/fceux/palettes | |
65 | %dir %{_datadir}/fceux/tools | |
66 | %{_datadir}/fceux/*.{dll,chm} | |
67 | %{_datadir}/fceux/luaScripts/* | |
68 | %{_datadir}/fceux/palettes/* | |
69 | %{_datadir}/fceux/tools/* | |
70 | %{_mandir}/man6/fceux-net-server.6* | |
71 | %{_mandir}/man6/fceux.6* | |
72 | %{_pixmapsdir}/fceux1.png | |
73 | %{_desktopdir}/fceux.desktop |