File gap-browse.spec of Package gap-browse

#
# spec file for package gap-browse
#
# Copyright (c) 2013 SUSE LINUX Products 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:           gap-browse
Summary:        GAP: ncurses interface and browsing applications
Version:        1.8.7
Release:        0
License:        GPL-3.0+
Group:          Productivity/Scientific/Math
Url:            http://www.math.rwth-aachen.de/~Browse/

Source:         https://www.gap-system.org/pub/gap/gap4/tar.bz2/packages/Browse-%version.tar.bz2
BuildRequires:  gap-devel >= 4.8.2
BuildRequires:  gap-rpm-devel >= 4.5
BuildRequires:  gmp-devel
BuildRequires:  ncurses5-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       gap-core >= 4.8.2
Requires:       gap-gapdoc >= 1.6
Suggests:       gap-atlasrep >= 1.5
Suggests:       gap-io >= 2.2

%description
NOTE: This package has autoload activated; it has been observed
to crash GAP in the past, too.

The Browse package provides three levels of functionality

- A GAP interface to the ncurses library.

- A generic function for interactive browsing through two-dimensional
  arrays of data.

- Several applications of the first two, e.g., a method for browsing
  character tables, browsing through the content of some data
  collections, or some games.

%prep
%setup -qn Browse

%build
./configure "%gapdir"
# Browse must be compiled with ncurses-5 or -w5. Crashes with ncurses-6.
make %{?_smp_mflags} \
	CFLAGS="%optflags -DWIDECHARS $(ncursesw5-config --cflags)" \
	LOPTS="$(ncursesw5-config --libs) -lpanelw"

%install
%gappkg_simple_install
rm -Rf "%buildroot/$moddir/src"

%files -f %name.files
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by