]> git.pld-linux.org Git - packages/fceultra.git/blob - fceultra.spec
- completed dependencies, release 3 (libx264 0.164)
[packages/fceultra.git] / fceultra.spec
1 #
2 # Conditional build:
3 %bcond_with     qt6     # Qt 6 instead of Qt 5
4
5 Summary:        FCE Ultra - Linux Nintendo Entertainment System emulator
6 Summary(pl.UTF-8):      FCE Ultra - linuksowy emulator systemu Nintendo
7 Name:           fceultra
8 Version:        2.6.6
9 Release:        3
10 License:        GPL v2+
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
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
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
50 %endif
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
60 %setup -q -n fceux-%{version}
61
62 %build
63 CFLAGS="%{rpmcflags}"
64 CXXFLAGS="%{rpmcxxflags}"
65 mkdir -p build
66 cd build
67 %cmake .. \
68         -DQHELP=ON \
69         %{?with_qt6:-DQT6=ON}
70
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %{__make} -C build install \
77         DESTDIR=$RPM_BUILD_ROOT
78
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
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
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
This page took 0.04604 seconds and 4 git commands to generate.