]>
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 | |
57c3802d | 8 | Version: 2.6.3 |
c5baaead | 9 | Release: 1 |
47bdd946 | 10 | License: GPL v2+ |
13d75901 | 11 | Group: X11/Applications/Games |
53e91816 KM |
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 | |
57c3802d | 14 | # Source0-md5: d45dbfca4a2c398889111b93e8f7f16f |
13d75901 | 15 | URL: http://fceultra.sourceforge.net/ |
f81e99a4 KM |
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 | |
456c8f71 | 25 | BuildRequires: pkgconfig |
c26c1182 | 26 | Requires: Qt5Gui-platform-xcb-glx >= 5.11 |
13d75901 BZ |
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 | |
c5baaead | 36 | %setup -q -n fceux-%{version} |
13d75901 BZ |
37 | |
38 | %build | |
6f2ad28d KM |
39 | CFLAGS="%{rpmcflags}" |
40 | CXXFLAGS="%{rpmcxxflags}" | |
f81e99a4 | 41 | mkdir -p build |
57c3802d KM |
42 | cd build |
43 | %cmake .. | |
f81e99a4 KM |
44 | |
45 | %{__make} | |
47bdd946 | 46 | |
13d75901 BZ |
47 | %install |
48 | rm -rf $RPM_BUILD_ROOT | |
57c3802d | 49 | cd build |
f81e99a4 KM |
50 | %{__make} install \ |
51 | DESTDIR=$RPM_BUILD_ROOT | |
57c3802d | 52 | cd .. |
13d75901 | 53 | |
f81e99a4 KM |
54 | install -d $RPM_BUILD_ROOT%{_mandir}/man6/ |
55 | %{__mv} documentation/fceux.6 $RPM_BUILD_ROOT%{_mandir}/man6/ | |
56 | %{__mv} documentation/fceux-net-server.6 $RPM_BUILD_ROOT%{_mandir}/man6/ | |
13d75901 BZ |
57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
f81e99a4 | 63 | %doc README TODO-SDL changelog.txt readme.md documentation/* |
47bdd946 | 64 | %attr(755,root,root) %{_bindir}/fceux |
f81e99a4 KM |
65 | %dir %{_datadir}/fceux |
66 | %dir %{_datadir}/fceux/luaScripts | |
67 | %dir %{_datadir}/fceux/palettes | |
68 | %dir %{_datadir}/fceux/tools | |
69 | %{_datadir}/fceux/*.{dll,chm} | |
70 | %{_datadir}/fceux/luaScripts/* | |
71 | %{_datadir}/fceux/palettes/* | |
72 | %{_datadir}/fceux/tools/* | |
73 | %{_mandir}/man6/fceux-net-server.6* | |
74 | %{_mandir}/man6/fceux.6* | |
75 | %{_pixmapsdir}/fceux1.png | |
76 | %{_desktopdir}/fceux.desktop |