File THE.spec of Package THE

#
# spec file for package THE
#
# Copyright (c) 2018 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 http://bugs.opensuse.org/
#


Name:           THE
Version:        3.3~RC4
Release:        0
Summary:        The Hessling Editor (z/VM-CMS xedit clone)
# getch.c and getch.h state that
# Permission is hereby granted to copy, distribute or otherwise
# use any part of this package as long as you do not try to make
# money from it or pretend that you wrote it.
# see boo#982229
License:        GFDL-1.1 AND GPL-2.0+ AND SUSE-Freeware
Group:          Productivity/Text/Editors
URL:            http://hessling-editor.sourceforge.net/
Source0:        https://sourceforge.net/projects/hessling-editor/files/hessling-editor/3.3%%20Release%%20Candidate%%204/THE-3.3RC4.tar.gz
Source1:        %{name}-rpmlintrc
BuildRequires:  Regina-REXX-devel
BuildRequires:  libacl-devel
BuildRequires:  flex
BuildRequires:  libXaw3d-devel
BuildRequires:  lsb-release
BuildRequires:  distribution-release
BuildRequires:  ncurses-devel

%description
THE is a text editor that uses both command line commands and key bindings
to operate. It is intended to be similar to the z/VM-CMS system editor,
XEDIT, and to Mansfield Software's, KEDIT

%package doc
Summary:        The Hessling Editor (z/VM-CMS xedit clone)
Group:          Documentation/Other
BuildArch:      noarch

%description doc
This package contains the documentation for the THE (The Hessling Editor)
package.

%prep
%setup -q -n %{name}-3.3RC4

%build
export ncurses5_config=%{_bindir}/ncurses6-config
%configure \
  --with-ncurses \
  --with-xaw3d \
  --with-rexx=regina
PATH=${PATH}:$(pwd)
# parallel build randomly fails
make --jobs=1 CFLAGS="%{optflags}" all

%install
%make_install
ln -s %{_mandir}/man1/the.1.gz %{buildroot}%{_mandir}/man1/nthe.1.gz
# Do not ship backup file
rm -rf doc/THE_Help_head.bak

%files
%doc FAQ README TODO COPYING HISTORY
%{_bindir}/the
%{_bindir}/nthe
%{_datadir}/THE/
%{_mandir}/man1/nthe.1%{ext_man}
%{_mandir}/man1/the.1%{ext_man}

%files doc
%defattr(644,root,root)
%doc app*.htm*
%doc appendix.*
%doc doc/*

%changelog
openSUSE Build Service is sponsored by