File mingw64-qnotepad.spec of Package mingw64-qnotepad
#
# spec file for package mingw64-qnotepad
#
# Copyright (c) 2021, 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 realname qnotepad
Name: mingw64-%{realname}
Version: 1.1.1
Release: 0
Summary: A Qt-based notepad program
License: BSD-2-Clause
Group: Productivity/Text/Editors
#Git-Clone: https://github.com/Starman0620/QNotepad.git
URL: https://github.com/Starman0620/QNotepad
Source: https://github.com/Starman0620/QNotepad/archive/refs/tags/v%{version}.tar.gz
Patch1: qnotepad-use-system-libs.patch
BuildRequires: cmake
BuildRequires: mingw64-libqt5-qtbase-devel
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-spdlog-devel
BuildRequires: mingw64-fmt-devel
BuildArch: noarch
%{_mingw64_package_header_debug}
%{_mingw64_debug_package}
%description
A simple Windows-inspired notepad program written in C++ with Qt.
%prep
%setup -q -n QNotepad-%{version}
%patch1 -p1
%build
%_mingw64_cmake
%make_build
%install
install -Dm 0755 qnotepad.exe %{buildroot}/%{_mingw64_bindir}/qnotepad.exe
%files
%license LICENSE.md
%doc README.md
%{_mingw64_bindir}/qnotepad.exe
%changelog