File gnome-video-arcade.spec of Package gnome-video-arcade
#
# spec file for package gnome-video-arcade
#
# Copyright (c) 2012 Guido Berhoerster <gber@opensuse.org>
#
# 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: gnome-video-arcade
Version: 0.8.7
Release: 0
Summary: MAME Frontend for the GNOME Desktop
License: GPL-3.0+
Group: System/Emulators/Other
Url: https://live.gnome.org/GnomeVideoArcade
Source: http://download.gnome.org/sources/gnome-video-arcade/0.8/%{name}-%{version}.tar.xz
BuildRequires: gnome-doc-utils-devel
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: update-desktop-files
BuildRequires: xz
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gnome-icon-theme)
BuildRequires: pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libsoup-2.4)
%if 0%{?suse_version} >= 1210
BuildRequires: pkgconfig(libwnck-3.0)
%endif
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(x11)
%glib2_gsettings_schema_requires
Recommends: %{name}-lang = %{version}
Requires: mame
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GNOME Video Arcade is a simple MAME frontend for the GNOME desktop. Its chief
design goal is to help you quickly find a game to play and then get out of the
way. Its purpose is not to help you manage your ROM collection, nor to provide
a confusing graphical interface for MAME's plethora of configuration options.
It can utilize third-party data files like arcade history and game categories.
%lang_package
%prep
%setup -q
%build
export MAME=/usr/bin/mame
%configure \
--with-category-file=%{_datadir}/mame/Catver.ini \
--with-history-file=%{_datadir}/mame/history.dat \
--with-nplayers-file=%{_datadir}/mame/nplayers.ini \
%if 0%{?suse_version} < 1210
--with-wnck=no \
%endif
--disable-schemas-install \
--disable-scrollkeeper
make %{?_smp_mflags} V=1
%install
%make_install
rm -rf %{buildroot}%{_mandir}/man1/
rm -rf %{buildroot}%{_datadir}/gtk-doc/
install -d -m 755 %{buildroot}%{_mandir}/man6/
sed -e 's/^.TH GNOME-VIDEO-ARCADE "1"/.TH GNOME-VIDEO-ARCADE "6"/' \
docs/gnome-video-arcade.1 > %{buildroot}%{_mandir}/man6/gnome-video-arcade.6
%suse_update_desktop_file -r %{name} 'System;Emulator;'
%find_lang %{name} %{?no_lang_C}
%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-, root, root, -)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc %{_mandir}/man6/gnome-video-arcade.6*
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/gnome-video-arcade
%{_datadir}/GConf/gsettings/gnome-video-arcade.convert
%{_datadir}/glib-2.0/schemas/org.gnome.VideoArcade.gschema.xml
%{_datadir}/gnome-video-arcade/
%{_datadir}/applications/gnome-video-arcade.desktop
%{_datadir}/icons/hicolor/scalable/apps/gnome-video-arcade.svg
%files lang -f %{name}.lang
%changelog