740cf8c99875e18e96ccfb0a22ebb14ab14e6951
[packages/fceultra.git] / fceultra.spec
1 #
2 # TODO: bcond for non-gtk gui (gfceux)
3 #
4 Summary:        FCE Ultra - Linux Nintendo Entertainment System emulator
5 Summary(pl.UTF-8):      FCE Ultra - linuksowy emulator systemu Nintendo
6 Name:           fceultra
7 Version:        2.1.5
8 Release:        5
9 License:        GPL v2+
10 Group:          X11/Applications/Games
11 Source0:        http://downloads.sourceforge.net/fceultra/fceux-%{version}.src.tar.bz2
12 # Source0-md5:  e8b20e62bbbb061b1a59d51b47c827bd
13 Patch0:         %{name}-build.patch
14 URL:            http://fceultra.sourceforge.net/
15 BuildRequires:  OpenGL-GLU-devel
16 BuildRequires:  SDL >= 1.2.14
17 BuildRequires:  SDL_gfx-devel >= 1.2.14
18 BuildRequires:  gtk+2-devel
19 BuildRequires:  pkgconfig
20 BuildRequires:  scons
21 BuildRequires:  zenity
22 Requires:       zenity
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 FCE Ultra is a cross platform, NTSC and PAL Famicom/NES emulator.
27
28 %description -l pl.UTF-8
29 FCE Ultra to wieloplatformowy emulator konsoli Famicom/NES/Pegasus.
30
31 %prep
32 %setup -q -n fceu%{version}
33 %undos src/file.cpp
34 %patch0 -p1
35
36 %build
37 CC="%{__cc}" \
38 CXX="%{__cxx}" \
39 CFLAGS="%{rpmcflags}" \
40 LDFLAGS="%{rpmldflags}" \
41 LIBS="-ldl" \
42 %scons
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_bindir}
47
48 cp -a bin/fceux $RPM_BUILD_ROOT%{_bindir}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Authors.txt README-SDL TODO-PROJECT TODO-SDL changelog.txt documentation
56 %attr(755,root,root) %{_bindir}/fceux
This page took 0.044972 seconds and 2 git commands to generate.