File textosaurus.spec of Package textosaurus
#
# spec file for package textosaurus
#
# 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 https://bugs.opensuse.org/
#
%define _name io.github.martinrotter.textosaurus
Name: textosaurus
Version: @SERVICE@
Release: 0
Summary: Cross-platform text editor based on Qt and Scintilla
License: GPL-3.0-or-later
Group: Productivity/Text/Editors
URL: https://github.com/martinrotter/textosaurus
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libqscintilla_qt5-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: update-desktop-files
%description
Textosaurus is simple cross-platform UTF-8 text editor based on Qt and
Scintilla. Textosaurus aims to provide similar workflow as Notepad++ does.
%lang_package
%prep
%autosetup
%build
%qmake5 \
PREFIX=%{_prefix}
%make_build
%install
%qmake5_install
rm -rf %{buildroot}%{_includedir}
#rm -rf %%{buildroot}%%{_libexecdir}
%suse_update_desktop_file -r %{_name} Utility TextEditor
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc %attr(644,root,root) CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
%{_bindir}/%{name}
%{_libexecdir}/lib%{name}.so
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_datadir}/metainfo/%{_name}.appdata.xml
%license %attr(644,root,root) LICENSE.md
%changelog