]> git.pld-linux.org Git - packages/fceultra.git/blame - fceultra.spec
- completed dependencies, release 3 (libx264 0.164)
[packages/fceultra.git] / fceultra.spec
CommitLineData
6bed159a
JB
1#
2# Conditional build:
3%bcond_with qt6 # Qt 6 instead of Qt 5
4
13d75901
BZ
5Summary: FCE Ultra - Linux Nintendo Entertainment System emulator
6Summary(pl.UTF-8): FCE Ultra - linuksowy emulator systemu Nintendo
7Name: fceultra
a7cc4094 8Version: 2.6.6
6bed159a 9Release: 3
47bdd946 10License: GPL v2+
13d75901 11Group: 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
15Source0: https://github.com/TASEmulators/fceux/archive/refs/tags/v%{version}.tar.gz
16# Source0-md5: 8e1aede624ebe26f0a936daba3b87328
6bed159a
JB
17URL: https://fceux.com/
18BuildRequires: OpenGL-devel
19BuildRequires: SDL2-devel >= 2.0
20BuildRequires: cmake >= 3.8
21# libavcodec libavformat libavutil libswresample libswscale
22BuildRequires: ffmpeg-devel
23BuildRequires: libarchive-devel
24BuildRequires: libx264-devel
25BuildRequires: libx265-devel
26BuildRequires: lua51-devel >= 5.1
27BuildRequires: minizip-devel
28BuildRequires: pkgconfig
29BuildRequires: rpmbuild(macros) >= 1.605
30# checked but not used
31#BuildRequires: xorg-lib-libX11-devel
32#BuildRequires: xorg-lib-libxkbcommon-devel
33BuildRequires: zlib-devel
34%if %{with qt6}
35BuildRequires: Qt6Core-devel >= 6.0
36BuildRequires: Qt6Gui-devel >= 6.0
37BuildRequires: Qt6Help-devel >= 6.0
38BuildRequires: Qt6OpenGL-devel >= 6.0
39BuildRequires: Qt6Widgets-devel >= 6.0
40BuildRequires: qt6-build >= 6.0
41Requires: Qt6Gui-platform-xcb-glx >= 5.11
42%else
f81e99a4
KM
43BuildRequires: Qt5Core-devel >= 5.11
44BuildRequires: Qt5Gui-devel >= 5.11
6bed159a 45BuildRequires: Qt5Help-devel >= 5.11
f81e99a4
KM
46BuildRequires: Qt5OpenGL-devel >= 5.11
47BuildRequires: Qt5Widgets-devel >= 5.11
6bed159a 48BuildRequires: qt5-build >= 5.11
c26c1182 49Requires: Qt5Gui-platform-xcb-glx >= 5.11
6bed159a 50%endif
13d75901
BZ
51BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53%description
54FCE Ultra is a cross platform, NTSC and PAL Famicom/NES emulator.
55
56%description -l pl.UTF-8
57FCE 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
63CFLAGS="%{rpmcflags}"
64CXXFLAGS="%{rpmcxxflags}"
f81e99a4 65mkdir -p build
57c3802d 66cd build
6bed159a
JB
67%cmake .. \
68 -DQHELP=ON \
69 %{?with_qt6:-DQT6=ON}
f81e99a4
KM
70
71%{__make}
47bdd946 72
13d75901
BZ
73%install
74rm -rf $RPM_BUILD_ROOT
6bed159a
JB
75
76%{__make} -C build install \
f81e99a4 77 DESTDIR=$RPM_BUILD_ROOT
13d75901 78
6bed159a
JB
79install -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
84rm -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
This page took 0.150924 seconds and 5 git commands to generate.