# # spec file for package gap-caratinterface # # Copyright (c) 2022 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 http://bugs.opensuse.org/ # Name: gap-caratinterface Version: 2.3.3 Release: 0 Summary: GAP: Interface to CARAT, a crystallographic groups package License: GPL-2.0+ AND GPL-3.0+ Group: Productivity/Scientific/Math URL: https://github.com/gap-packages/CaratInterface Source: https://github.com/gap-packages/CaratInterface/archive/refs/tags/v%version.tar.gz BuildArch: noarch BuildRequires: gap-rpm-devel BuildRequires: gmp-devel BuildRequires: xz Requires: carat Requires: gap-core >= 4.9 Suggests: gap-cryst >= 4.1.17 %description This package provides GAP interface routines to some of the stand-alone programs of CARAT, a package for the computation with crystallographic groups. CARAT is to a large extent complementary to the GAP package Cryst. In particular, it provides routines for the computation of normalizers and conjugators of finite unimodular groups in GL(n,Z), and routines for the computation of Bravais groups, which are all missing in Cryst. A catalog of Bravais groups up to dimension 6 is also provided. %prep %autosetup -n CaratInterface-%version %build # There is a C part, "carat". It is not part of the gap-carat repo # and needs separate downloading (extra tar archive...) # But the quality of that C part is so abysmal it's not worth building at # present. perl -pe 's{^#!/usr/local/bin/bash}{#!/bin/bash}g' \ carat/tables/lattices/maximal.sh \ carat/tables/lattices/check_trivilities.sh %install rm -rf configure scripts %gappkg_simple_install %files -f %name.files %changelog