]>
Commit | Line | Data |
---|---|---|
6bed159a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with qt6 # Qt 6 instead of Qt 5 | |
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 | |
a7cc4094 | 8 | Version: 2.6.6 |
6bed159a | 9 | Release: 3 |
47bdd946 | 10 | License: GPL v2+ |
13d75901 | 11 | Group: X11/Applications/Games |
6bed159a JB |
12 | #Source0Download: https://fceux.com/web/download.html |
13 | # TODO: use named tarballs | |
14 | #Source0: https://github.com/TASEmulators/fceux/archive/v%{version}/fceux-%{version}.tar.gz | |
a7cc4094 KM |
15 | Source0: https://github.com/TASEmulators/fceux/archive/refs/tags/v%{version}.tar.gz |
16 | # Source0-md5: 8e1aede624ebe26f0a936daba3b87328 | |
6bed159a JB |
17 | URL: https://fceux.com/ |
18 | BuildRequires: OpenGL-devel | |
19 | BuildRequires: SDL2-devel >= 2.0 | |
20 | BuildRequires: cmake >= 3.8 | |
21 | # libavcodec libavformat libavutil libswresample libswscale | |
22 | BuildRequires: ffmpeg-devel | |
23 | BuildRequires: libarchive-devel | |
24 | BuildRequires: libx264-devel | |
25 | BuildRequires: libx265-devel | |
26 | BuildRequires: lua51-devel >= 5.1 | |
27 | BuildRequires: minizip-devel | |
28 | BuildRequires: pkgconfig | |
29 | BuildRequires: rpmbuild(macros) >= 1.605 | |
30 | # checked but not used | |
31 | #BuildRequires: xorg-lib-libX11-devel | |
32 | #BuildRequires: xorg-lib-libxkbcommon-devel | |
33 | BuildRequires: zlib-devel | |
34 | %if %{with qt6} | |
35 | BuildRequires: Qt6Core-devel >= 6.0 | |
36 | BuildRequires: Qt6Gui-devel >= 6.0 | |
37 | BuildRequires: Qt6Help-devel >= 6.0 | |
38 | BuildRequires: Qt6OpenGL-devel >= 6.0 | |
39 | BuildRequires: Qt6Widgets-devel >= 6.0 | |
40 | BuildRequires: qt6-build >= 6.0 | |
41 | Requires: Qt6Gui-platform-xcb-glx >= 5.11 | |
42 | %else | |
f81e99a4 KM |
43 | BuildRequires: Qt5Core-devel >= 5.11 |
44 | BuildRequires: Qt5Gui-devel >= 5.11 | |
6bed159a | 45 | BuildRequires: Qt5Help-devel >= 5.11 |
f81e99a4 KM |
46 | BuildRequires: Qt5OpenGL-devel >= 5.11 |
47 | BuildRequires: Qt5Widgets-devel >= 5.11 | |
6bed159a | 48 | BuildRequires: qt5-build >= 5.11 |
c26c1182 | 49 | Requires: Qt5Gui-platform-xcb-glx >= 5.11 |
6bed159a | 50 | %endif |
13d75901 BZ |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52 | ||
53 | %description | |
54 | FCE Ultra is a cross platform, NTSC and PAL Famicom/NES emulator. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | FCE Ultra to wieloplatformowy emulator konsoli Famicom/NES/Pegasus. | |
58 | ||
59 | %prep | |
c5baaead | 60 | %setup -q -n fceux-%{version} |
13d75901 BZ |
61 | |
62 | %build | |
6f2ad28d KM |
63 | CFLAGS="%{rpmcflags}" |
64 | CXXFLAGS="%{rpmcxxflags}" | |
f81e99a4 | 65 | mkdir -p build |
57c3802d | 66 | cd build |
6bed159a JB |
67 | %cmake .. \ |
68 | -DQHELP=ON \ | |
69 | %{?with_qt6:-DQT6=ON} | |
f81e99a4 KM |
70 | |
71 | %{__make} | |
47bdd946 | 72 | |
13d75901 BZ |
73 | %install |
74 | rm -rf $RPM_BUILD_ROOT | |
6bed159a JB |
75 | |
76 | %{__make} -C build install \ | |
f81e99a4 | 77 | DESTDIR=$RPM_BUILD_ROOT |
13d75901 | 78 | |
6bed159a JB |
79 | install -d $RPM_BUILD_ROOT%{_mandir}/man6 |
80 | %{__mv} documentation/fceux.6 $RPM_BUILD_ROOT%{_mandir}/man6 | |
81 | %{__mv} documentation/fceux-net-server.6 $RPM_BUILD_ROOT%{_mandir}/man6 | |
13d75901 BZ |
82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
f81e99a4 | 88 | %doc README TODO-SDL changelog.txt readme.md documentation/* |
47bdd946 | 89 | %attr(755,root,root) %{_bindir}/fceux |
f81e99a4 KM |
90 | %dir %{_datadir}/fceux |
91 | %dir %{_datadir}/fceux/luaScripts | |
92 | %dir %{_datadir}/fceux/palettes | |
93 | %dir %{_datadir}/fceux/tools | |
94 | %{_datadir}/fceux/*.{dll,chm} | |
95 | %{_datadir}/fceux/luaScripts/* | |
96 | %{_datadir}/fceux/palettes/* | |
97 | %{_datadir}/fceux/tools/* | |
98 | %{_mandir}/man6/fceux-net-server.6* | |
99 | %{_mandir}/man6/fceux.6* | |
100 | %{_pixmapsdir}/fceux1.png | |
101 | %{_desktopdir}/fceux.desktop |