gap-digraphs/gap-digraphs.spec

77 lines
2.4 KiB
RPMSpec

#
# spec file for package gap-digraphs
#
# 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 https://bugs.opensuse.org/
#
Name: gap-digraphs
Version: 0.13.0
Release: 0
Summary: GAP: Digraphs and multigraphs
License: GPL-3.0-or-later
Group: Productivity/Scientific/Math
Url: http://www-groups.mcs.st-andrews.ac.uk/~jamesm/digraphs.php
Source: https://www.gap-system.org/pub/gap/gap4/tar.bz2/packages/digraphs-%version.tar.bz2
Patch1: digraphs-no-native.diff
Patch2: 0001-Drop-bad-include-of-x86intrin.h.patch
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gap-devel
BuildRequires: gap-rpm-devel
BuildRequires: gcc-c++
BuildRequires: gmp-devel
BuildRequires: libtool
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: gap-core >= 4.9.0
Requires: gap-io >= 4.5.1
Requires: gap-orb >= 4.7.5
Suggests: gap-gapdoc >= 1.5.1
Suggests: gap-grape >= 4.5
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
%description
The Digraphs package is a GAP package containing methods for digraphs
and multidigraphs.
%prep
%setup -qn digraphs-%version
%patch -P 1 -P 2 -p1
%build
autoreconf -fi
%configure --with-gaproot="%gapdir"
make %{?_smp_mflags}
find . -type f -name "*~" -delete
%install
find . -type f -name .dirstamp -print -delete
# 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*
%gappkg_simple_install
%fdupes %buildroot/%_prefix
find %buildroot
%files -f %name.files
%defattr(-,root,root)
%changelog