File FeatherNotes.spec of Package FeatherNotes

#
# spec file for package FeatherNotes
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#


%define oname feathernotes
%define __builder ninja

Name:           FeatherNotes
Version:        1.3.2
Release:        0
Summary:        Lightweight Qt5 Notes-Manager for Linux
License:        GPL-3.0-only
Group:          Productivity/Office/Other
URL:            https://github.com/tsujan/FeatherNotes
Source:         %{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  ninja
BuildRequires:  appstream-glib
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  pkgconfig
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6Svg)
BuildRequires:  cmake(Qt6Xml)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6PrintSupport)
BuildRequires:  pkgconfig(Qt5Designer)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(hunspell)

################################################################################################################################################################

%description
FeatherNotes (by Pedram Pourang, a.k.a. Tsu Jan tsujan2000@gmail.com) is a lightweight Qt5 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;
    macOS support (by Pavel Shlyak); 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 \
 -DENABLE_QT5=OFF
%cmake_build

################################################################################################################################################################

%install
%cmake_install
%find_lang %{oname} --with-qt
# scripts executable under /usr/share/doc
find ChangeLog -type f -perm /111 -exec chmod 644 {} \;
find COPYING -type f -perm /111 -exec chmod 644 {} \;
find NEWS -type f -perm /111 -exec chmod 644 {} \;
find README.md -type f -perm /111 -exec chmod 644 {} \;
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml

################################################################################################################################################################

%files
%license COPYING
%doc ChangeLog README.md NEWS
%{_bindir}/%{oname}
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/
%{_datadir}/icons/hicolor/scalable
%{_datadir}/icons/hicolor/scalable/*/
%{_datadir}/metainfo/*.metainfo.xml

################################################################################################################################################################

%files lang -f %{oname}.lang
%{_datadir}/feathernotes
%{_datadir}/feathernotes/translations

%changelog
openSUSE Build Service is sponsored by