commit 201214b7cf78cf7e2e3a9ecd513ceef4d1b285b2cc6f6528063da6bfd0d1c583 Author: Atri Bhattacharya Date: Sun May 1 19:52:45 2022 +0000 Accepting request 974183 from home:aaronpuchert - Initial submit based on version 4.0.0. OBS-URL: https://build.opensuse.org/request/show/974183 OBS-URL: https://build.opensuse.org/package/show/science/flocq?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/flocq-4.0.0.tar.gz b/flocq-4.0.0.tar.gz new file mode 100644 index 0000000..1e3fa9b --- /dev/null +++ b/flocq-4.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13cb06a541936272276256997449800310838643fdff8ff629eeea4b63106c73 +size 437894 diff --git a/flocq-rpmlintrc b/flocq-rpmlintrc new file mode 100644 index 0000000..bb02473 --- /dev/null +++ b/flocq-rpmlintrc @@ -0,0 +1,4 @@ +# Unfortunate choice, but we can't easily change that. +addFilter("hidden-file-or-dir .*/.coq-native") +# These are loaded manually by the OCaml runtime and need no dependency information. +addFilter("shared-library-without-dependency-information .*\.cmxs") diff --git a/flocq.changes b/flocq.changes new file mode 100644 index 0000000..3cb0392 --- /dev/null +++ b/flocq.changes @@ -0,0 +1,53 @@ +------------------------------------------------------------------- +Fri Apr 15 16:41:08 UTC 2022 - Aaron Puchert + +- Update to version 4.0.0. + * Made Coq 8.12 the minimal version and removed the + `IEEE754.SpecFloatCompat` layer + * Removed automatic export of `ZArith` and `Reals` from + `Core.Raux` and `Core.Core` + * Proved a close/far-path adder in `Calc.Plus`. + * Made `IEEE754.Binary` a wrapper around + `IEEE754.BinarySingleNaN`. +- Put development files into separate package. +- Let documentation point to coq-doc. + +------------------------------------------------------------------- +Wed Feb 5 15:45:36 UTC 2020 - Peter Trommler + +- update to 3.2.0 + *compatibility with coq 8.10 + +------------------------------------------------------------------- +Thu Oct 11 10:45:40 UTC 2018 - ptrommler@icloud.com + +- update to 3.0.0 + * compatibility with coq 8.8 + +------------------------------------------------------------------- +Thu Nov 2 16:06:54 UTC 2017 - ptrommler@icloud.com + +- update to 2.6.0 + * fix compile with coq 8.7.0 + +------------------------------------------------------------------- +Thu Apr 13 11:03:22 UTC 2017 - peter.trommler@ohm-hochschule.de + +- update to 2.5.2 from upstream + +------------------------------------------------------------------- +Tue Nov 5 13:38:55 UTC 2013 - peter.trommler@ohm-hochschule.de + +- update to 2.2.0 from upstream + +------------------------------------------------------------------- +Wed Dec 26 19:35:24 UTC 2012 - peter.trommler@ohm-hochschule.de + +- remove coq version constraint + +------------------------------------------------------------------- +Thu Nov 29 15:52:00 UTC 2012 - peter.trommler@ohm-hochschule.de + +- imported from Fedora +- adapted to openSUSE packaging guidelines + diff --git a/flocq.spec b/flocq.spec new file mode 100644 index 0000000..7eef459 --- /dev/null +++ b/flocq.spec @@ -0,0 +1,108 @@ +# +# spec file for package flocq +# +# Copyright (c) 2020 Peter Trommler +# Copyright (c) 2022 Aaron Puchert +# +# 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: flocq +Version: 4.0.0 +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/ +Source0: https://flocq.gitlabpages.inria.fr/releases/%{name}-%{version}.tar.gz +Source100: %{name}-rpmlintrc +BuildRequires: coq-devel >= 8.12 +BuildRequires: gcc-c++ +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. +%if %{pkg_vcmp coq >= 8.14} +sed -i "s|--coqlib http://coq.inria.fr/distrib/current/stdlib|--coqlib %{_libdir}/coq-core --coqlib_url %{_defaultdocdir}/coq/stdlib|" Remakefile.in +%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