File finalhe.spec of Package finalhe
#
# spec file for package finalhe
#
# Copyright (c) 2018 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: finalhe
Version: 0
Release: 0
Summary: Vita exploiting toolset
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: GPL-3.0
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Hardware/Other
Url: https://github.com/soarqin/finalhe
Source: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: zlib-devel
BuildRequires: libxml2-devel
BuildRequires: libQt5Widgets-devel
BuildRequires: libQt5Network-devel
BuildRequires: libqt5-linguist-devel
BuildRequires: libusb-compat-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This all-in-one program sets up h-encore for your PS Vita or PS TV
%prep
%setup -q
%build
mkdir build && cd build
cmake .. \
-DUSER_CMAKE_C_FLAGS='%{optflags}' \
-DUSER_CMAKE_CXX_FLAGS='%{optflags}' \
-DCMAKE_INSTALL_PREFIX='%{_prefix}' \
-DCMAKE_BUILD_TYPE='Release'
make %{?_smp_mflags}
cd -
%install
install -D -m0755 build/src/FinalHE %{buildroot}/%{_bindir}/FinalHE
%files
%defattr(-,root,root)
%doc CHANGES README.md COPYING COPYING.Qcma COPYING.Qt COPYING.Qt.LGPLv21 CREDITS.md
%{_bindir}/FinalHE
%changelog