X-Git-Url: http://git.pld-linux.org/?p=packages%2Ffceultra.git;a=blobdiff_plain;f=fceultra.spec;h=fa8dfee31c87abe9e7f0f9fe33d322bfdff11644;hp=f8f0bce129ba96fb4034d3219343c5956004438e;hb=HEAD;hpb=e0fc8bafe35d6ef480ba76299ea8fc3eed90a7a8 diff --git a/fceultra.spec b/fceultra.spec index f8f0bce..1d8eb74 100644 --- a/fceultra.spec +++ b/fceultra.spec @@ -1,20 +1,53 @@ +# +# Conditional build: +%bcond_with qt6 # Qt 6 instead of Qt 5 + Summary: FCE Ultra - Linux Nintendo Entertainment System emulator Summary(pl.UTF-8): FCE Ultra - linuksowy emulator systemu Nintendo Name: fceultra -Version: 2.1.0a -Release: 1 -License: GPL v2 +Version: 2.6.6 +Release: 4 +License: GPL v2+ Group: X11/Applications/Games -Source0: http://dl.sourceforge.net/fceultra/fceux-%{version}.src.tar.bz2 -# Source0-md5: d48ed087e1cd5018ca8a4c9142130948 -URL: http://fceultra.sourceforge.net/ -BuildRequires: OpenGL-GLU-devel -BuildRequires: SDL >= 1.2.0 -BuildRequires: SDL_gfx-devel >= 1.2.0 -BuildRequires: lua51-devel -BuildRequires: scons -BuildRequires: zenity -Requires: zenity +#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 +BuildRequires: Qt5Core-devel >= 5.11 +BuildRequires: Qt5Gui-devel >= 5.11 +BuildRequires: Qt5Help-devel >= 5.11 +BuildRequires: Qt5OpenGL-devel >= 5.11 +BuildRequires: Qt5Widgets-devel >= 5.11 +BuildRequires: qt5-build >= 5.11 +Requires: Qt5Gui-platform-xcb-glx >= 5.11 +%endif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -24,23 +57,45 @@ FCE Ultra is a cross platform, NTSC and PAL Famicom/NES emulator. FCE Ultra to wieloplatformowy emulator konsoli Famicom/NES/Pegasus. %prep -%setup -q -n fceu -%{__sed} -i 's/lua5.1/lua51/g' SConstruct +%setup -q -n fceux-%{version} %build -%scons - +CFLAGS="%{rpmcflags}" +CXXFLAGS="%{rpmcxxflags}" +mkdir -p build +cd build +%cmake .. \ + -DQHELP=ON \ + %{?with_qt6:-DQT6=ON} + +%{__make} + %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_bindir} -install bin/fceux $RPM_BUILD_ROOT%{_bindir} +%{__make} -C build install \ + DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_mandir}/man6 +%{__mv} documentation/fceux.6 $RPM_BUILD_ROOT%{_mandir}/man6 +%{__mv} documentation/fceux-net-server.6 $RPM_BUILD_ROOT%{_mandir}/man6 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc AUTHORS changelog.txt TODO-PROJECT -%doc Documentation -%attr(755,root,root) %{_bindir}/* +%doc README TODO-SDL changelog.txt readme.md documentation/* +%attr(755,root,root) %{_bindir}/fceux +%dir %{_datadir}/fceux +%dir %{_datadir}/fceux/luaScripts +%dir %{_datadir}/fceux/palettes +%dir %{_datadir}/fceux/tools +%{_datadir}/fceux/*.{dll,chm} +%{_datadir}/fceux/luaScripts/* +%{_datadir}/fceux/palettes/* +%{_datadir}/fceux/tools/* +%{_mandir}/man6/fceux-net-server.6* +%{_mandir}/man6/fceux.6* +%{_pixmapsdir}/fceux1.png +%{_desktopdir}/fceux.desktop