File featherpad.spec of Package featherpad

# spec file for package featherpad
# Copyright (c) 2020 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

Name:           featherpad
Version:        0.15.0
Release:        0
Summary:        Qt5-based plaintext editor
License:        GPL-3.0-only
Group:          Productivity/Text/Editors
BuildRequires:  cmake
BuildRequires:  hicolor-icon-theme
BuildRequires:  hunspell-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(x11)
%if 0%{?suse_version} == 1315
BuildRequires:  gcc7-c++
BuildRequires:  gcc-c++

FeatherPad is a Qt5-based plain-text editor. It is independent of any desktop environment and has:
* Drag-and-drop support, including tab detachment and attachment;
* X11 virtual desktop awareness (using tabs on current desktop but opening a new window on another);
* An optional permanent search bar with a different search entry for each tab;
* Instant highlighting of found matches when searching;
* A docked window for text replacement;
* Support for showing line numbers and jumping to a specific line;
* Automatic detection of text encoding as far as possible and optional saving with encoding;
* Syntax highlighting for common programming languages;
* Printing;
* Text zooming;
* Non-interrupting prompts;


%setup -q -n FeatherPad-%{version}

%qmake5 \
%if 0%{?suse_version} == 1315



%find_lang %{name} --with-qt

%license COPYING
%doc ChangeLog NEWS
%dir %{_datadir}/%{name}

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