File desmume-x432r-git.spec of Package desmume-x432r-git
#
# spec file for package desmume (Version 0.9.8)
#
# Copyright (c) 2013 Stefan Elser <stefan@fam-elser.de>
# Copyright (c) 2015 Sergey Kondakov <virtuousfox@gmail.com>
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
%define realname desmume
%define srcext tar.xz
Name: %{realname}-x432r-git
Version: 20150118T045802
Release: 1
License: GPL-2.0
Summary: The Last Nintendo DS Emulator, x432r fork
Url: http://github.com/libretro/desmume-x432r/
Group: System/Emulators/Other
Source0: %{realname}-x432r-%{version}.%{srcext}
Source1: %{realname}.sh
Conflicts: %{realname} %{realname}-svn %{realname}-git
BuildRequires: xz
BuildRequires: gtk2-devel
#BuildRequires: libglade2-devel
BuildRequires: libSDL-devel
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: intltool
BuildRequires: tinyxml-devel
BuildRequires: gtkglext-devel
#BuildRequires: agg-devel
BuildRequires: Mesa-devel
#BuildRequires: libOSMesa-devel
BuildRequires: openal-devel
BuildRequires: soundtouch-devel
BuildRequires: lua51-devel
BuildRequires: dos2unix
BuildRequires: update-desktop-files
BuildRequires: fdupes
BuildRequires: autoconf
BuildRequires: automake
BuildRoot: %{_tmppath}/%{realname}-%{version}-build
%description
DeSmuME is a Nintendo DS emulator under GNU GPL.
With it DS games are perfectly playable.
This is a fork that has an option of rendering in x4 resolution for better 3D gaming experience.
#{lang_package}
%prep
%setup -q -n %{realname}-x432r-%{version}
cd %{realname}
dos2unix COPYING
dos2unix AUTHORS
chmod -x COPYING AUTHORS
%build
cd %{realname}
./autogen.sh
export CFLAGS="-march=native -O3"
export CXXFLAGS="${CFLAGS}"
# glade version is underdeveloped and rendering with osmesa is no better than usual rasterization
%configure --prefix=%{_prefix} \
--with-x \
--disable-osmesa \
--enable-glx \
--enable-openal \
--enable-wifi \
--disable-glade
make %{?_smp_mflags}
%install
cd %{realname}
%make_install
# forcing settings for maximum performance
mv -v %{buildroot}%{_bindir}/%{realname} %{buildroot}%{_bindir}/%{realname}-gtk
install -D -m 755 %{SOURCE1} %{buildroot}%{_bindir}/%{realname}
# crutch for mishandled naming for mo-files
for i in %{buildroot}%{_datadir}/locale/*; do
mv -v ${i}/LC_MESSAGES/.mo ${i}/LC_MESSAGES/%{realname}.mo
done
%suse_update_desktop_file -r -G %{realname} %{realname} System Emulator
%fdupes -s %{buildroot}
#find_lang %{realname}
%clean
rm -rf '%{buildroot}'
#files lang -f %{realname}.lang
%files
%defattr(-,root,root)
%doc %{realname}/{AUTHORS,COPYING}
%{_bindir}/%{realname}*
%{_datadir}/locale/*/LC_MESSAGES/*%{realname}*
%{_datadir}/applications/%{realname}*
%{_datadir}/pixmaps/DeSmuME.xpm
%{_mandir}/man1/*%{realname}*
%changelog