3 %bcond_with qt6 # Qt 6 instead of Qt 5
5 Summary: FCE Ultra - Linux Nintendo Entertainment System emulator
6 Summary(pl.UTF-8): FCE Ultra - linuksowy emulator systemu Nintendo
11 Group: X11/Applications/Games
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
15 Source0: https://github.com/TASEmulators/fceux/archive/refs/tags/v%{version}.tar.gz
16 # Source0-md5: 8e1aede624ebe26f0a936daba3b87328
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
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
43 BuildRequires: Qt5Core-devel >= 5.11
44 BuildRequires: Qt5Gui-devel >= 5.11
45 BuildRequires: Qt5Help-devel >= 5.11
46 BuildRequires: Qt5OpenGL-devel >= 5.11
47 BuildRequires: Qt5Widgets-devel >= 5.11
48 BuildRequires: qt5-build >= 5.11
49 Requires: Qt5Gui-platform-xcb-glx >= 5.11
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 FCE Ultra is a cross platform, NTSC and PAL Famicom/NES emulator.
56 %description -l pl.UTF-8
57 FCE Ultra to wieloplatformowy emulator konsoli Famicom/NES/Pegasus.
60 %setup -q -n fceux-%{version}
64 CXXFLAGS="%{rpmcxxflags}"
74 rm -rf $RPM_BUILD_ROOT
76 %{__make} -C build install \
77 DESTDIR=$RPM_BUILD_ROOT
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
84 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
88 %doc README TODO-SDL changelog.txt readme.md documentation/*
89 %attr(755,root,root) %{_bindir}/fceux
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