-#Source0: http://downloads.sourceforge.net/fceultra/fceux-%{version}.src.tar.gz
-Source0: https://sourceforge.net/projects/fceultra/files/Source%20Code/%{version}%20src/fceux-%{version}.tar.gz
-# Source0-md5: d45dbfca4a2c398889111b93e8f7f16f
-URL: http://fceultra.sourceforge.net/
-BuildRequires: Mesa-libGLU-devel
+#Source0Download: https://fceux.com/web/download.html
+# TODO: use named tarballs
+#Source0: https://github.com/TASEmulators/fceux/archive/v%{version}/fceux-%{version}.tar.gz
+Source0: https://github.com/TASEmulators/fceux/archive/refs/tags/v%{version}.tar.gz
+# Source0-md5: 8e1aede624ebe26f0a936daba3b87328
+URL: https://fceux.com/
+BuildRequires: OpenGL-devel
+BuildRequires: SDL2-devel >= 2.0
+BuildRequires: cmake >= 3.8
+# libavcodec libavformat libavutil libswresample libswscale
+BuildRequires: ffmpeg-devel
+BuildRequires: libarchive-devel
+BuildRequires: libx264-devel
+BuildRequires: libx265-devel
+BuildRequires: lua51-devel >= 5.1
+BuildRequires: minizip-devel
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.605
+# checked but not used
+#BuildRequires: xorg-lib-libX11-devel
+#BuildRequires: xorg-lib-libxkbcommon-devel
+BuildRequires: zlib-devel
+%if %{with qt6}
+BuildRequires: Qt6Core-devel >= 6.0
+BuildRequires: Qt6Gui-devel >= 6.0
+BuildRequires: Qt6Help-devel >= 6.0
+BuildRequires: Qt6OpenGL-devel >= 6.0
+BuildRequires: Qt6Widgets-devel >= 6.0
+BuildRequires: qt6-build >= 6.0
+Requires: Qt6Gui-platform-xcb-glx >= 5.11
+%else