Репозиторий Sisyphus
Последнее обновление: 17 июля 2019 | Пакетов: 17686 | Посещений: 14336803
en ru br
Репозитории ALT

Группа :: Эмуляторы
Пакет: desmume

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: desmume
Version: 0.9.11
Release: alt3
Summary: A Nintendo DS emulator
Group: Emulators
License: GPLv2+
Url: http://desmume.org/
# http://downloads.sourceforge.net/%%name/%%name-%%version.tar.gz
Source: %name-%version.tar
# Do not look into builddir
Patch: %name-0.9-dontlookinbuilddir.patch
Patch1: %name-0.9.11-alt-c++-compat.patch
Patch2: %name-0.9.11-alt-gcc-8.patch

BuildRequires: libgtkglext-devel
BuildRequires: libglade-devel
BuildRequires: libopenal-devel
BuildRequires: liblua5-devel
BuildRequires: zziplib-devel
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: gcc-c++
BuildRequires: desktop-file-utils
Requires: icon-theme-hicolor
BuildPreReq: chrpath


%package glade
Summary: A Nintendo DS emulator (Glade GUI version)
Group: Emulators

%package cli
Summary: A Nintendo DS emulator (CLI version)
Group: Emulators

%description
DeSmuME is a Nintendo DS emulator running homebrew demos and commercial games.

%description glade
DeSmuME is a Nintendo DS emulator running homebrew demos and commercial games.

This is the GTK/Glade version.

%description cli
DeSmuME is a Nintendo DS emulator running homebrew demos and commercial games.

This is the CLI version.

%prep
%setup
%patch -p1
%patch1 -p2
%patch2 -p2

# Fix end-of-line encoding

sed -i 's/\r//' AUTHORS

# Fix file encoding

for txtfile in ChangeLog AUTHORS
do
   iconv --from=ISO-8859-1 --to=UTF-8 $txtfile > tmp
   touch -r $txtfile tmp
   mv tmp $txtfile
done

# Fix premissions

find src -name '*.cpp' -exec chmod -v 644 '{}' \;
find src -name '*.h' -exec chmod -v 644 '{}' \;

# Fix glade path

sed -i 's|gladedir = $(datadir)/desmume/glade|gladedir = $(datadir)/desmume-glade/|g' src/gtk-glade/Makefile.{am,in}

# We need a different icon for desmume-glade

sed -i 's|Icon=DeSmuME|Icon=DeSmuME-glade|g' src/gtk-glade/desmume-glade.desktop

# Fix gettext package name

sed -i 's|GETTEXT_PACKAGE=desmume|GETTEXT_PACKAGE=desmume-glade|g' configure{,.ac}

%build
%add_optflags -fpermissive
#autoreconf
%configure --enable-openal --enable-glade
%make_build

%install
%makeinstall_std

# Remove installed icon

rm -f %buildroot%_datadir/pixmaps/DeSmuME.xpm

# Install icons

mkdir -p %buildroot%_datadir/icons/hicolor/32x32/apps
install -m 644 src/gtk/DeSmuME.xpm %buildroot%_datadir/icons/hicolor/32x32/apps/
install -m 644 src/gtk/DeSmuME.xpm %buildroot%_datadir/icons/hicolor/32x32/apps/DeSmuME-glade.xpm

# Rename desktop files and fix categories

mkdir -p %buildroot%_datadir/applications
desktop-file-install \
 --delete-original \
 --vendor altlinux \
 --remove-key Version \
 --remove-category GNOME \
 --remove-category GTK \
 --dir %buildroot%_datadir/applications \
 %buildroot%_datadir/applications/%name.desktop

desktop-file-install \
 --delete-original \
 --vendor altlinux \
 --remove-key Version \
 --remove-category GNOME \
 --remove-category GTK \
 --dir %buildroot%_datadir/applications \
 %buildroot%_datadir/applications/%name-glade.desktop


for i in %buildroot%_libdir/*.so %buildroot%_libdir/desmume/*.so \
       %buildroot%_bindir/*
do
       chrpath -d $i ||:
done




%find_lang %name-glade


%files
%_bindir/%name
%_datadir/icons/hicolor/32x32/apps/DeSmuME.xpm
%_datadir/applications/altlinux-%name.desktop
%_mandir/man1/%name.1*
%doc AUTHORS ChangeLog COPYING README README.LIN

%files glade -f %name-glade.lang
%_bindir/%name-glade
%_datadir/%name-glade
%_datadir/icons/hicolor/32x32/apps/DeSmuME-glade.xpm
%_datadir/applications/altlinux-%name-glade.desktop
%_mandir/man1/%name-glade.1*
%doc AUTHORS ChangeLog COPYING README README.LIN

%files cli
%_bindir/%name-cli
%_mandir/man1/%name-cli.1*
%doc AUTHORS ChangeLog COPYING README README.LIN

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin