]> git.pld-linux.org Git - packages/fceultra.git/blobdiff - fceultra.spec
- updated to 2.2.1
[packages/fceultra.git] / fceultra.spec
index 69403cbc6faad7022bdc8ab406052ed07a0b326b..fa8dfee31c87abe9e7f0f9fe33d322bfdff11644 100644 (file)
@@ -1,18 +1,26 @@
+#
+# TODO: bcond for non-gtk gui (gfceux)
+#
 Summary:       FCE Ultra - Linux Nintendo Entertainment System emulator
 Summary(pl.UTF-8):     FCE Ultra - linuksowy emulator systemu Nintendo
 Name:          fceultra
-Version:       0.98.12
+Version:       2.2.1
 Release:       1
-License:       GPL v2
+License:       GPL v2+
 Group:         X11/Applications/Games
-Source0:       http://dl.sourceforge.net/fceultra/fceu-%{version}.src.tar.bz2
-# Source0-md5: 0fd2175b1f929e8b4d456789c4d7fc2b
+Source0:       http://downloads.sourceforge.net/fceultra/fceux-%{version}.src.tar.gz
+# Source0-md5: 696d0186afb17f3b70d4aa9e9f5cf1d1
+Patch0:                lua51.patch
+Patch1:                format-security.patch
 URL:           http://fceultra.sourceforge.net/
 BuildRequires: OpenGL-GLU-devel
-BuildRequires: SDL >= 1.2.0
-BuildRequires: SDL_gfx-devel >= 1.2.0
-BuildRequires: autoconf >= 2.59-9
-BuildRequires: automake >= 1.6
+BuildRequires: SDL >= 1.2.14
+BuildRequires: SDL_gfx-devel >= 1.2.14
+BuildRequires: gtk+2-devel
+BuildRequires: pkgconfig
+BuildRequires: scons
+BuildRequires: zenity
+Requires:      zenity
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -22,28 +30,28 @@ 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
+%setup -q -n fceux-%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
-%{__aclocal}
-%{__automake}
-%{__autoconf}
-%configure \
-       --with-opengl
-
-%{__make}
+CC="%{__cc}" \
+CXX="%{__cxx}" \
+CFLAGS="%{rpmcflags}" \
+LDFLAGS="%{rpmldflags}" \
+LIBS="-ldl" \
+%scons
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
 
-%{__make} install \
-        DESTDIR=$RPM_BUILD_ROOT
+cp -a bin/fceux $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog TODO
-%doc Documentation
-%attr(755,root,root) %{_bindir}/*
+%doc Authors README-SDL TODO-SDL changelog.txt documentation
+%attr(755,root,root) %{_bindir}/fceux
This page took 0.077324 seconds and 4 git commands to generate.