File residualvm.spec of Package residualvm

#
# spec file for package residualvm
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           residualvm
Version:        0.2.1
Release:        0
Summary:        3D adventure game interpreter
License:        GPL-2.0+
Group:          Amusements/Games/3D/Other
Url:            http://www.residualvm.org
Source:         http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}-sources.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  desktop-file-utils
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(sdl) >= 1.2.2
BuildRequires:  pkgconfig(zlib)

%description
A cross-platform 3D game interpreter which allows you to play LucasArts' Lua-based
3D adventures: Grim Fandango and Escape from Monkey Island, provided you already
have their data files. ResidualVM just replaces the executables shipped with the
games, allowing you to play them on systems for which they were never designed!
Also included is Myst III: Exile support.

This version comes without MP3 and MPEG support for patent reasons. This affects
at least Myst III:Exile.

%prep
%setup -q

%build
# This is not a true autotools configure and inherited from scummVM. Most dependencies are unused, but linked against.
./configure --prefix=%{_prefix} \
            --disable-faad \
            --disable-flac \
            --disable-fluidsynth \
            --disable-mad \
            --disable-translation \
            --disable-vorbis \
            --disable-sparkle \
            --disable-tremor \
            --disable-libunity \
            --backend=sdl \
            --enable-release \
            --enable-zlib \
            --enable-opengl-shaders \
            --enable-safedisc \
            --enable-all-engines
            
make %{?jobs:-j %jobs}

%install
install -m755 -D residualvm %{buildroot}%{_bindir}/residualvm
install -m644 -D dists/residualvm.6 %{buildroot}%{_mandir}/man6/residualvm.6
install -m644 -D icons/residualvm.xpm %{buildroot}%{_datadir}/pixmaps/residualvm.xpm
install -m644 -D icons/residualvm.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/residualvm.svg
install -m644 -D dists/redhat/residualvm48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/residualvm.png
install -m644 -D gui/themes/modern.zip %{buildroot}%{_datadir}/residualvm/modern.zip
install -m644 -D dists/engine-data/residualvm-grim-patch.lab %{buildroot}%{_datadir}/residualvm/residualvm-grim-patch.lab
desktop-file-install --dir=%{buildroot}/%{_datadir}/applications dists/residualvm.desktop

%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
        %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
        %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%files
%defattr(0644,root,root,0755)
%doc AUTHORS README.md KNOWN_BUGS NEWS COPYING COPYING.LGPL COPYING.BSD COPYING.FREEFONT COPYRIGHT
%attr(0755,root,root)%{_bindir}/residualvm
%{_datadir}/applications/*
%{_datadir}/pixmaps/residualvm.xpm
%{_datadir}/icons/hicolor/48x48/apps/residualvm.png
%{_datadir}/icons/hicolor/scalable/apps/residualvm.svg
%dir %{_datadir}/residualvm
%{_datadir}/residualvm/modern.zip
%{_datadir}/residualvm/residualvm-grim-patch.lab
%{_mandir}/man6/residualvm.6*

%changelog
openSUSE Build Service is sponsored by