File THE.spec of Package THE
#
# spec file for package THE
#
# 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: THE
Version: 3.3~RC7
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-only AND GPL-2.0-or-later AND SUSE-Freeware
URL: http://hessling-editor.sourceforge.net/
Source0: https://sourceforge.net/projects/hessling-editor/files/hessling-editor/3.3%%20Release%%20Candidate%%207/THE-3.3RC7.tar.gz
Source1: %{name}-rpmlintrc
BuildRequires: Regina-REXX-devel
BuildRequires: distribution-release
BuildRequires: flex
BuildRequires: lsb-release
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(xaw3d)
%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)
BuildArch: noarch
%description doc
This package contains the documentation for the THE (The Hessling Editor)
package.
%prep
%autosetup -n %{name}-3.3RC7
%build
%configure \
--with-curses=ncurses \
--with-xaw3d \
--with-rexx=regina
PATH=${PATH}:$(pwd)
# Parallel build will not correctly build documentation
%make_build --jobs=1
%install
%make_install
# Do not ship backup file
rm -rf doc/THE_Help_head.bak
%files
%license COPYING
%doc FAQ README TODO HISTORY
%{_bindir}/the
%{_bindir}/the-con
%{_datadir}/THE/
%{_mandir}/man1/the.1%{?ext_man}
%files doc
%defattr(644,root,root)
%doc app*.htm*
%doc appendix.*
%doc doc/*
%changelog