File retrofe.spec of Package retrofe

#
# spec file for package retrofe
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# 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/
#


%define version_unconverted 0.5.366

Name:           retrofe
Version:        0.5.366
Release:        0
Summary:        A cross-platform frontend designed for MAME cabinets/game centers/etc
License:        GPL-3.0
Group:          System/Emulators/Other
Url:            http://www.retrofe.com/
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-app-1.0)
BuildRequires:  pkgconfig(zlib)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
RetroFE is a cross-platform frontend designed for MAME cabinets/game centers/etc.
with a focus on simplicity and customization.

%prep
%setup -q
sed -i 's/\r//' contributors.txt README.md

%build
cd RetroFE/Source
%cmake .. -DVERSION_MAJOR=0 -DVERSION_MINOR=0 -DVERSION_BUILD=0
make VERBOSE=1 %{?_smp_mflags}

%install
install -Dpm 755 RetroFE/Build/%{name} %{buildroot}/%{_bindir}/%{name}

%files
%defattr(-,root,root)
%doc contributors.txt LICENSE.txt README.md
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by