File attractmode.spec of Package attractmode
#
# spec file for package attractmode
#
# Copyright (c) 2016 SUSE LINUX 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: attractmode
Version: 2.1.0
Release: 0
Summary: A graphical frontend for emulators
License: GPL-3.0
Group: System/Emulators/Other
Url: https://attractmode.org
Source: https://github.com/mickelson/attract/archive/v%{version}.tar.gz
Source100: attractmode-rpmlintrc
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: libjpeg8-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sfml-audio)
BuildRequires: pkgconfig(sfml-graphics)
BuildRequires: pkgconfig(sfml-system)
BuildRequires: pkgconfig(xcb-xinerama)
BuildRequires: update-desktop-files
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%description
Attract-Mode is a graphical frontend for command line emulators such as MAME,
MESS and Nestopia. It hides the underlying operating system and is intended to
be controlled with a joystick, gamepad or spinner, making it ideal for use
in arcade cabinets.
%prep
%setup -q -n attract-%{version}
%build
make %{?_smp_mflags}
%install
install -D -p -m 644 util/icon.png %{buildroot}%{_datadir}/pixmaps/attractmode.png
%suse_update_desktop_file -c attractmode 'AttractMode' 'AttractMode emulator frontend' attract attractmode Game Emulator
mkdir -p %{buildroot}%{_bindir} # Required for building on Leap 42.1
%make_install prefix=%{_prefix} # Defaults to /usr/local without this
%post
%desktop_database_post
%postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc License.txt Readme.md
%{_bindir}/attract
%dir %{_datadir}/attract
%{_datadir}/attract/*
%{_datadir}/pixmaps/attractmode.png
%{_datadir}/applications/attractmode.desktop
%changelog