File xnedit.spec of Package xnedit

#
# spec file for package xnedit
#
# Copyright (c) 2024 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:           xnedit
Version:        1.6.3
Release:        0
Summary:        Text editor, based on NEdit, with full unicode support
License:        GPL-2.0-only
Group:          Productivity/Text/Editors
URL:            https://www.unixwork.de/xnedit/
Source0:        %{name}-%{version}.tar.xz
#BuildRequires:  libXpm-devel
BuildRequires:  openmotif-devel
BuildRequires:  update-desktop-files
Requires(post): update-desktop-files
Requires(postun): update-desktop-files

%description
A fast and classic X11 text editor, based on NEdit, with full unicode support and antialiased text rendering

%package nedit
Summary:        Replace nedit by xnedit
Requires:       %{name}
Obsoletes:      nedit
Provides:       nedit
BuildArch:      noarch

%description nedit
This packages symlinks nedit and nc to xnedit and xnc

%prep
%setup -q

%build
%make_build linux
%make_build man -C doc

%install
%make_install
ln -s -f xnedit %{buildroot}%{_bindir}/nedit
ln -s -f xnc %{buildroot}%{_bindir}/nedit-client
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 doc/xnedit.man %{buildroot}%{_mandir}/man1/xnedit.1x
install -m 644 doc/xnc.man %{buildroot}%{_mandir}/man1/xnc.1x
%suse_update_desktop_file %{name} TextEditor

%files
%license LICENSE
%doc README.md ReleaseNotes CHANGELOG
%{_bindir}/xnedit
%{_bindir}/xnc
%{_mandir}/man1/xnedit.1x%{ext_man}
%{_mandir}/man1/xnc.1x%{ext_man}
%{_datadir}/applications/xnedit.desktop
%{_datadir}/icons/xnedit.png

%files nedit
%{_bindir}/nedit
%{_bindir}/nedit-client

%changelog
openSUSE Build Service is sponsored by