2016-06-19 15:35:49 +02:00
|
|
|
#
|
|
|
|
# spec file for package gap-digraphs
|
|
|
|
#
|
2018-11-22 13:11:09 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-06-19 15:35:49 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-22 13:11:09 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-06-19 15:35:49 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gap-digraphs
|
2018-11-22 13:11:09 +01:00
|
|
|
Version: 0.13.0
|
2016-06-19 15:35:49 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: GAP: Digraphs and multigraphs
|
2018-11-22 13:11:09 +01:00
|
|
|
License: GPL-3.0-or-later
|
2016-06-19 15:35:49 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Url: http://www-groups.mcs.st-andrews.ac.uk/~jamesm/digraphs.php
|
|
|
|
|
2017-09-17 21:33:36 +02:00
|
|
|
Source: https://www.gap-system.org/pub/gap/gap4/tar.bz2/packages/digraphs-%version.tar.bz2
|
2018-11-22 13:11:09 +01:00
|
|
|
Patch1: digraphs-no-native.diff
|
|
|
|
Patch2: 0001-Drop-bad-include-of-x86intrin.h.patch
|
|
|
|
BuildRequires: automake
|
2016-06-19 15:35:49 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gap-devel
|
|
|
|
BuildRequires: gap-rpm-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gmp-devel
|
2018-11-22 13:11:09 +01:00
|
|
|
BuildRequires: libtool
|
2016-06-19 15:35:49 +02:00
|
|
|
BuildRequires: xz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2018-11-22 13:11:09 +01:00
|
|
|
Requires: gap-core >= 4.9.0
|
|
|
|
Requires: gap-io >= 4.5.1
|
2016-06-19 15:35:49 +02:00
|
|
|
Requires: gap-orb >= 4.7.5
|
|
|
|
Suggests: gap-gapdoc >= 1.5.1
|
|
|
|
Suggests: gap-grape >= 4.5
|
2018-11-22 13:11:09 +01:00
|
|
|
Suggests: gap-nautytracesinterface >= 0.2
|
|
|
|
# Source contains a modified copy of bliss-0.73, so we cannot reuse bliss-devel
|
|
|
|
Provides: bundled(bliss) = 0.73
|
2016-06-19 15:35:49 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Digraphs package is a GAP package containing methods for digraphs
|
|
|
|
and multidigraphs.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn digraphs-%version
|
2018-11-22 13:11:09 +01:00
|
|
|
%patch -P 1 -P 2 -p1
|
2016-06-19 15:35:49 +02:00
|
|
|
|
|
|
|
%build
|
2018-11-22 13:11:09 +01:00
|
|
|
autoreconf -fi
|
2016-06-19 15:35:49 +02:00
|
|
|
%configure --with-gaproot="%gapdir"
|
|
|
|
make %{?_smp_mflags}
|
2018-11-22 13:11:09 +01:00
|
|
|
find . -type f -name "*~" -delete
|
2016-06-19 15:35:49 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
find . -type f -name .dirstamp -print -delete
|
2018-11-22 13:11:09 +01:00
|
|
|
# delete tests and assets
|
|
|
|
rm -Rf tst data/symmetric-closure.ds6.gz data/test-1.d6
|
|
|
|
# delete sources and build artifacts, user is not expected to rebuild in distribution tree
|
|
|
|
rm -Rf autom4te.cache src cnf config* m4 autogen.sh aclocal.m4 *.la Makefile*
|
|
|
|
|
2016-06-19 15:35:49 +02:00
|
|
|
%gappkg_simple_install
|
|
|
|
%fdupes %buildroot/%_prefix
|
|
|
|
find %buildroot
|
|
|
|
|
|
|
|
%files -f %name.files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|