commit 49f84d19160894f14c82c45df58a8c772b4894e16990e3dddd3f142695f8bd17 Author: Aaron Puchert Date: Thu Jul 25 18:48:59 2024 +0000 - Update to version 4.2.0. * added SF2B' as a proof-free variant of SF2B * fixed installation of Pff2Flocq * ensured compatibility from Coq 8.12 to 8.20 OBS-URL: https://build.opensuse.org/package/show/science/flocq?expand=0&rev=17 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.1.4.tar.gz b/flocq-4.1.4.tar.gz new file mode 100644 index 0000000..7880783 --- /dev/null +++ b/flocq-4.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09a1f80c3b3748064a788e7aafb1ce5d05be216b81557100a4708ef41adf3219 +size 451421 diff --git a/flocq-4.2.0.tar.gz b/flocq-4.2.0.tar.gz new file mode 100644 index 0000000..bb91920 --- /dev/null +++ b/flocq-4.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d05919a1d29a5174ef28627d50f079c4118c625935503d5e3b78491bcce9b4b3 +size 451654 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..494de19 --- /dev/null +++ b/flocq.changes @@ -0,0 +1,103 @@ +------------------------------------------------------------------- +Thu Jul 25 07:00:59 UTC 2024 - Frantisek Simorda + +- Update to version 4.2.0. + * added SF2B' as a proof-free variant of SF2B + * fixed installation of Pff2Flocq + * ensured compatibility from Coq 8.12 to 8.20 + +------------------------------------------------------------------- +Sun Jan 28 22:40:44 UTC 2024 - Aaron Puchert + +- Update to version 4.1.4. + * Ensured compatibility from Coq 8.12 to 8.19. + +------------------------------------------------------------------- +Sun Sep 17 18:49:04 UTC 2023 - Aaron Puchert + +- Update to version 4.1.2. + * Ensured compatibility from Coq 8.12 to 8.18. +- Update to version 4.1.3. + * Avoided breaking users of `IEEE754.PrimFloat`. + +------------------------------------------------------------------- +Wed Mar 29 18:55:13 UTC 2023 - Aaron Puchert + +- Update to version 4.1.1. + * Ensured compatibility from Coq 8.12 to 8.17. + +------------------------------------------------------------------- +Thu Jan 26 22:02:12 UTC 2023 - Aaron Puchert + +- Build with ocaml-rpm-macros to get proper Requires and Provides + for flocq-devel. This should prevent incompatibilities with other + Ocaml libraries when building native objects against flocq-devel. + +------------------------------------------------------------------- +Thu Jun 30 12:56:30 UTC 2022 - Bernhard Wiedemann + +- Add Git-Clone URL + +------------------------------------------------------------------- +Thu Jun 2 21:40:52 UTC 2022 - Aaron Puchert + +- Update to version 4.1.0. + * Added `Bnearbyint` and `Btrunc` in `IEEE754`. + * Ensured compatibility from Coq 8.12 to 8.16. +- Fix patching of coqdoc invocation, make it more robust. +- Patch up coqdoc invocation also for older Coq versions since they + don't understand --coqlib_url. + +------------------------------------------------------------------- +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..ed8f282 --- /dev/null +++ b/flocq.spec @@ -0,0 +1,119 @@ +# +# spec file for package flocq +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2020 Peter Trommler +# Copyright (c) 2024 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 https://bugs.opensuse.org/ +# + + +Name: flocq +Version: 4.2.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/ +#Git-Clone: https://gitlab.inria.fr/flocq/flocq.git +Source0: https://flocq.gitlabpages.inria.fr/releases/%{name}-%{version}.tar.gz +Source100: %{name}-rpmlintrc +BuildRequires: coq-devel >= 8.12 +BuildRequires: gcc-c++ +BuildRequires: ocaml-rpm-macros +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. +grep "\-\-coqlib_url http://coq.inria.fr/distrib/current/stdlib" Remakefile.in && +%if %{pkg_vcmp coq >= 8.18} +sed -i "s|--coqlib_url http://coq.inria.fr/distrib/current/stdlib|--coqlib %{_libdir}/coq --coqlib_url %{_defaultdocdir}/coq/stdlib|" Remakefile.in +%else +%if %{pkg_vcmp coq >= 8.14} +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 +%endif +%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