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