File nedit-ng.spec of Package nedit-ng

#
# spec file for package nedit-ng
#
# 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/
#


Name:           nedit-ng
Version:        2020.1
Release:        0
Summary:        Qt port of Nirvana Editor
License:        GPL-2.0-or-later AND MIT
URL:            https://github.com/eteran/nedit-ng
Source0:        https://github.com/eteran/nedit-ng/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        %{name}.changes
Source2:        %{name}.desktop
Patch0:         missing-includes.patch
BuildRequires:  bison
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libboost_system-devel
# SECTION docs
BuildRequires:  libqt5-qttools
BuildRequires:  python3-Jinja2
# /SECTION
BuildRequires:  pkgconfig
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  cmake(Qt5Network)
BuildRequires:  cmake(Qt5PrintSupport)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5X11Extras)
BuildRequires:  cmake(Qt5Xml)
ExcludeArch:    %ix86 %arm ppc

%description
nedit-ng is a Qt port of the Nirvana Editor (NEdit) version 5.6.
It is intended to be a drop in replacement for nedit in every
practical way, just as on many systems /usr/bin/vi is now a symlink
to /usr/bin/vim.

Because it is a true port of the original code, it (at least for
now) inherits some (but not all) of the limitations of the original.
On the other hand, some aspects have been improved simply by the
fact that it is now a Qt application.

%prep
%autosetup -p1

%build
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF
make %{?_smp_mflags}

%install
%cmake_install
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m0644 src/res/nedit-ng.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

%files
%license LICENSE.md
%doc README.md
%{_bindir}/nc-ng
%{_bindir}/nedit-import
%{_bindir}/nedit-ng
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by