2022-05-01 21:52:45 +02:00
|
|
|
#
|
|
|
|
# spec file for package flocq
|
|
|
|
#
|
2023-01-27 00:09:12 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-05-01 21:52:45 +02:00
|
|
|
# Copyright (c) 2020 Peter Trommler <ptrommler@icloud.com>
|
2023-01-27 00:09:12 +01:00
|
|
|
# Copyright (c) 2023 Aaron Puchert <aaronpuchert@alice-dsl.net>
|
2022-05-01 21:52:45 +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.
|
|
|
|
|
2022-06-02 23:57:28 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2022-05-01 21:52:45 +02:00
|
|
|
#
|
|
|
|
|
2022-06-02 23:57:28 +02:00
|
|
|
|
2022-05-01 21:52:45 +02:00
|
|
|
Name: flocq
|
2022-06-02 23:57:28 +02:00
|
|
|
Version: 4.1.0
|
2022-05-01 21:52:45 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Formalization of floating point numbers for Coq
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
License: LGPL-3.0-or-later
|
|
|
|
URL: https://flocq.gitlabpages.inria.fr/
|
2022-07-01 21:41:32 +02:00
|
|
|
#Git-Clone: https://gitlab.inria.fr/flocq/flocq.git
|
2022-05-01 21:52:45 +02:00
|
|
|
Source0: https://flocq.gitlabpages.inria.fr/releases/%{name}-%{version}.tar.gz
|
|
|
|
Source100: %{name}-rpmlintrc
|
|
|
|
BuildRequires: coq-devel >= 8.12
|
|
|
|
BuildRequires: gcc-c++
|
2023-01-27 00:09:12 +01:00
|
|
|
BuildRequires: ocaml-rpm-macros
|
2022-05-01 21:52:45 +02:00
|
|
|
BuildRequires: ocamlfind(findlib)
|
|
|
|
# The binary format works only with the Coq version it was built with.
|
|
|
|
Requires: coq = %{pkg_version coq}
|
|
|
|
Suggests: %{name}-doc = %{version}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Flocq (Floats for Coq) is a floating-point formalization for the Coq
|
|
|
|
system. It provides a comprehensive library of theorems on a
|
|
|
|
multi-radix multi-precision arithmetic. It also supports efficient
|
|
|
|
numerical computations inside Coq.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for Flocq
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: coq-devel = %{pkg_version coq}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains development files for Flocq.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for Flocq
|
|
|
|
Group: Documentation/HTML
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: coq-doc = %{pkg_version coq}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the HTML documentation for flocq.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
# Make the documentation point to coq-doc if possible.
|
2022-06-03 00:19:12 +02:00
|
|
|
grep "\-\-coqlib_url http://coq.inria.fr/distrib/current/stdlib" Remakefile.in &&
|
2022-05-01 21:52:45 +02:00
|
|
|
%if %{pkg_vcmp coq >= 8.14}
|
2022-06-03 00:19:12 +02:00
|
|
|
sed -i "s|--coqlib_url http://coq.inria.fr/distrib/current/stdlib|--coqlib %{_libdir}/coq-core --coqlib_url %{_defaultdocdir}/coq/stdlib|" Remakefile.in
|
|
|
|
%else
|
|
|
|
sed -i "s|--coqlib_url http://coq.inria.fr/distrib/current/stdlib|--coqlib %{_libdir}/coq-core|" Remakefile.in
|
2022-05-01 21:52:45 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
|
|
|
# This is not autotools-compatible, so we don't use the macro.
|
|
|
|
./configure
|
|
|
|
./remake %{?_smp_mflags} all doc
|
|
|
|
|
|
|
|
%install
|
|
|
|
DESTDIR=%{buildroot} ./remake install
|
|
|
|
|
|
|
|
# Build lists of runtime and devel files by ending.
|
|
|
|
# Compiled theories and shared objects are needed at runtime.
|
|
|
|
find %{buildroot}%{_libdir}/coq/user-contrib/Flocq -type d | sed "s|%{buildroot}|%%dir |g" >dir.list
|
|
|
|
find %{buildroot}%{_libdir}/coq/user-contrib/Flocq -name '*.cmxs' \
|
|
|
|
-or -name '*.so' \
|
|
|
|
-or -name '*.vo' | sed "s|%{buildroot}||g" >runtime.list
|
|
|
|
|
|
|
|
# Object files, static libraries and import definitions are only needed for development.
|
|
|
|
# For now, we also put the standard library Coq sources here, since the runtime
|
|
|
|
# package contains the HTML documentation for the standard library.
|
|
|
|
find %{buildroot}%{_libdir}/coq/user-contrib/Flocq -name '*.a' \
|
|
|
|
-or -name '*.cma' \
|
|
|
|
-or -name '*.cmi' \
|
|
|
|
-or -name '*.cmt' \
|
|
|
|
-or -name '*.cmti' \
|
|
|
|
-or -name '*.cmx' \
|
|
|
|
-or -name '*.cmxa' \
|
|
|
|
-or -name '*.glob' \
|
|
|
|
-or -name '*.ml' \
|
|
|
|
-or -name '*.mli' \
|
|
|
|
-or -name '*.o' \
|
|
|
|
-or -name '*.v' | sed "s|%{buildroot}||g" >devel.list
|
|
|
|
|
|
|
|
%files -f dir.list -f runtime.list
|
|
|
|
%doc README.md NEWS.md
|
|
|
|
%license AUTHORS COPYING
|
|
|
|
|
|
|
|
%files devel -f dir.list -f devel.list
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc html
|
|
|
|
|
|
|
|
%changelog
|