rpms/snes9x/F-9 snes9x-1.43-wmclass.patch, NONE, 1.1 snes9x.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Thorsten Leemhuis thl at rpmfusion.org
Sat Oct 18 19:02:38 CEST 2008


Author: thl

Update of /cvs/nonfree/rpms/snes9x/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv14462

Modified Files:
	.cvsignore sources 
Added Files:
	snes9x-1.43-wmclass.patch snes9x.spec 
Log Message:
sync with devel (after importing from freshrpms there)

snes9x-1.43-wmclass.patch:

--- NEW FILE snes9x-1.43-wmclass.patch ---
--- snes9x-1.43-src/snes9x/unix/x11.cpp_old	2005-12-31 20:02:44.000000000 -0500
+++ snes9x-1.43-src/snes9x/unix/x11.cpp	2006-01-01 19:14:01.487158707 -0500
@@ -524,8 +524,13 @@ supporting PseudoColor, TrueColor or Gra
     GUI.cross_hair_cursor = XCreateFontCursor (GUI.display, XC_crosshair);
     GUI.gc = DefaultGCOfScreen (GUI.screen);
     {
+        XClassHint classhint;
         XSizeHints Hints;
-	XWMHints WMHints;
+        XWMHints WMHints;
+
+	classhint.res_name = "snes9x";
+	classhint.res_class = "Snes9x";
+	XSetClassHint(GUI.display, GUI.window, &classhint);
 
 	memset ((void *) &Hints, 0, sizeof (XSizeHints));
 	memset ((void *) &WMHints, 0, sizeof (XWMHints));


--- NEW FILE snes9x.spec ---
#define prever -WIP1
%define real_version 1.51

Summary: Portable, freeware Super Nintendo Entertainment System (TM) emulator
Name: snes9x
Version: 1.51
Release: 2%{?dist}
License: Other
Group: Applications/Emulators
URL: http://www.snes9x.com/
Source: http://files.ipherswipsite.com/snes9x/snes9x-%{real_version}%{?prever}-src.tar.bz2
Patch0: snes9x-1.43-wmclass.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-c++, zlib-devel, libpng-devel
BuildRequires: libGL-devel, libGLU-devel
BuildRequires: libXt-devel, libXext-devel, libXxf86dga-devel, libXxf86vm-devel
BuildRequires: nasm

%description
Snes9x is a portable, freeware Super Nintendo Entertainment System (SNES)
emulator. It basically allows you to play most games designed for the SNES
and Super Famicom Nintendo game systems on your computer.


%prep
%setup -n %{name}-%{real_version}%{?prever:-dev}-src
%patch0 -p2 -b .wmclass


%build
# First, build the OpenGL version
%configure --with-netplay --with-opengl
# Replace OPTIMISE here, it's the best I've found...
%{__perl} -pi.orig -e 's|^OPTIMISE.*|OPTIMISE = %{optflags}|g' Makefile
%{__make} %{?_smp_mflags}

%{__make} clean

# Second, build the normal X11 version
%configure --with-netplay
# Replace OPTIMISE here, it's the best I've found...
%{__perl} -pi.orig -e 's|^OPTIMISE.*|OPTIMISE = %{optflags}|g' Makefile
%{__make} %{?_smp_mflags}


%install
%{__rm} -rf %{buildroot}
%{__install} -D -m 0755 osnes9x %{buildroot}%{_bindir}/osnes9x
%{__install} -D -m 0755 snes9x %{buildroot}%{_bindir}/snes9x


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc doc/* unix/docs/readme_unix.txt
%{_bindir}/osnes9x
%{_bindir}/snes9x


%changelog
* Sat Oct 18 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 1.51-2
- rebuild for RPM Fusion
- always build for xorg

* Sat Aug 11 2007 Matthias Saou <http://freshrpms.net/> 1.51-1
- Update to 1.51.
- Bundle a second binary, osnes9x, the OpenGL version.
- Include useful readme_unix.txt.
- Remove no longer needed externc patch.

* Tue Oct 17 2006 Matthias Saou <http://freshrpms.net/> 1.50-1
- Update to 1.5... well, luckily it's also called 1.50 in some places, ugh.
- Update source URL.
- Include patch to fix C++ and C extern declarations.
- Remove no longer needed gcc4 patch.
- Remove no longer needed autoreconf and its build requirements.
- Remove no longer needed usagemsg patch, all now fits fine in 80 columns.
- Remove --without-assembler since build works again on i386 with it.
- Note : --with opengl doesn't work... some error in unix/opengl.cpp.

* Wed Mar 22 2006 Matthias Saou <http://freshrpms.net/> 1.43-7
- Add missing modular X build requirement.
- Add autoreconf call to fix configure's X detection.

* Fri Mar 17 2006 Matthias Saou <http://freshrpms.net/> 1.43-6
- Release bump to drop the disttag number in FC5 build.

* Tue Jan 24 2006 Matthias Saou <http://freshrpms.net/> 1.43-5
- Add wmclass patch from Bryan Moffit.

* Fri Jan 13 2006 Matthias Saou <http://freshrpms.net/> 1.43-4
- Add modular xorg build conditional.

* Thu Nov 10 2005 Matthias Saou <http://freshrpms.net/> 1.43-3
- Merge things from Ville's package : Usage message patch, optional OpenGL
  support using --with opengl.

* Thu May  5 2005 Matthias Saou <http://freshrpms.net/> 1.43-2
- Include gcc4 patch from Debian.
- Pass --without-assembler since build fails on i386/getset.S otherwise.

* Sun Apr 17 2005 Matthias Saou <http://freshrpms.net/> 1.43-1
- Update to 1.43 final (was WIP1).

* Sat Dec 18 2004 Matthias Saou <http://freshrpms.net/> 1.43-0
- Initial RPM release.



Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/snes9x/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	18 Oct 2008 13:43:01 -0000	1.1
+++ .cvsignore	18 Oct 2008 17:02:37 -0000	1.2
@@ -0,0 +1 @@
+snes9x-1.51-src.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/snes9x/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	18 Oct 2008 13:43:01 -0000	1.1
+++ sources	18 Oct 2008 17:02:37 -0000	1.2
@@ -0,0 +1 @@
+a1038cc761f400318cdced960972f8a7  snes9x-1.51-src.tar.bz2



More information about the rpmfusion-commits mailing list