File feathernotes.spec of Package feathernotes

#
# spec file for package feathernotes
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#


%define  _name  org.feathernotes.Application
Name:           feathernotes
Version:        @SERVICE@
Release:        0
Summary:        Lightweight Qt Notes-Manager for Linux
License:        GPL-3.0-only
Group:          Productivity/Text/Editors
URL:            https://github.com/tsujan/FeatherNotes
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake >= 3.1.0
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Qt6Core) >= 6.3.0
BuildRequires:  cmake(Qt6DBus)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6PrintSupport)
BuildRequires:  cmake(Qt6Svg)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Xml)
BuildRequires:  pkgconfig(hunspell) >= 1.6
BuildRequires:  pkgconfig(x11)

%description
FeatherNotes (by Pedram Pourang, a.k.a. Tsu Jan tsujan2000@gmail.com) is a
lightweight Qt hierarchical notes-manager for Linux. It is independent of
any desktop environment and has:
* Support for rich text formatting, image embedding and inserting editable
  tables;
* Drag-and-drop capability for moving nodes and also for embedding images;
* A tray icon for quick access on any desktop;
* Correct position/size saving and restoring with most window managers;
* Compact but complete search and replacement widgets;
* The ability to include searchable tags (hidden info on each node);
* Support for optional node icons;
* Support for local and remote hyperlinks (bookmarks);
* Text zooming;
* Printing and exporting to HTML and PDF;
* Password protection;
* Auto-saving;
* Optional spell checking with Hunspell (if enabled at compilation time);
* macOS support (by Pavel Shliak); and
* Other features that can be found in its settings, on its menus or when it
  is actually used.

%lang_package

%prep
%autosetup

%build
%cmake_qt6 \
    -DENABLE_QT5=OFF \
    -DWITH_HUNSPELL=ON
%qt6_build

%install
%qt6_install
%suse_update_desktop_file -G "Lightweight notes manager" %{name}

%find_lang %{name} --with-qt

%files
%doc ChangeLog NEWS README.md
%{_bindir}/%{name}
%{_datadir}/metainfo/%{name}.metainfo.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_datadir}/icons/hicolor/*/mimetypes/text-%{name}-fnx.??g
%{_datadir}/mime/packages/%{name}.xml
%license COPYING

%files lang -f %{name}.lang
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/translations

%changelog
openSUSE Build Service is sponsored by