File WordTsar.spec of Package WordTsar
#
# spec file for package WordTsar
#
# Copyright (c) 2021-2023, 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 https://bugs.opensuse.org/
#
Name: WordTsar
Version: 0.3.719
Release: 0
Summary: A Wordstar 7.0D clone
License: AGPL-3.0-only
URL: http://wordtsar.ca/
Source: https://sourceforge.net/projects/wordtsar/files/Releases/WordTsar-%{version}/WordTsar-%{version}-src.zip
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: unzip
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Widgets)
%description
Wordstar for the 21st Century. WordTsar is a Wordstar 7.0D document
mode clone. It loads Wordstar 4, Wordstar 7, and RTF (partial) files,
and saves in Wordstar 7 and RTF format.
%prep
%setup -q -n %{name}-%{version}-src
%build
mkdir build
cd build
%qmake5 ..
%make_build
%install
install -D -m 0755 build/WordTsar %{buildroot}/%{_bindir}/WordTsar
# install icons
for i in 16 32 64 128 ; do
install -Dm 0644 src/gui/images/icon${i}x${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done
# create desktop file
%suse_update_desktop_file -c %{name} %{name} "A Wordstar 7.0D clone" %{name} %{name} "Office;WordProcessor"
%files
%license LICENSE.md
%{_bindir}/WordTsar
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
%changelog