Sync from SUSE:SLFO:Main ocaml-findlib revision be8e26eacf0c2024fb14166f284de8e9

This commit is contained in:
Adrian Schröter 2024-05-03 17:19:55 +02:00
commit b42279ceea
5 changed files with 418 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">ocaml-findlib</param>
<param name="revision">19b0334c467f97328d5005511c34ac9c36235efe</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://github.com/ocaml/ocamlfind.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">findlib-([^\+]+)(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

BIN
ocaml-findlib-1.9.5.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

285
ocaml-findlib.changes Normal file
View File

@ -0,0 +1,285 @@
-------------------------------------------------------------------
Mon Jun 13 13:13:13 UTC 2022 - ohering@suse.de
- Update to version 1.9.5
Fix an incomaptibility with ocaml-5.0
-------------------------------------------------------------------
Tue Apr 26 13:12:14 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 1.9.3
* Fixes another build problem regarding OCaml-5.00
-------------------------------------------------------------------
Mon Apr 4 04:04:04 UTC 2022 - ohering@suse.de
- Update to version 1.9.2
Fix an incomaptibility with ocaml-5.0
-------------------------------------------------------------------
Fri Apr 9 09:09:09 UTC 2021 - ohering@suse.de
- Require current ocaml-rpm-macros
- Update to upstream version 1.9.1
Fix an incomaptibility with ocaml-4.13
Switch from m4 to sed
- Remove ocaml_native_compiler conditional
build native target unconditionally
-------------------------------------------------------------------
Thu Feb 20 20:20:20 UTC 2020 - ohering@suse.de
- Require current ocaml-rpm-macros
- Remove unused dependency to ocamlbuild in preparation of ocamlbuild removal
-------------------------------------------------------------------
Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de
- Require current rpm macros
- Remove camlp4 subpackage
- Move META files for stdlib and camlp4 to their own package
to remove the build dependency to this package
-------------------------------------------------------------------
Wed Oct 2 17:59:21 UTC 2019 - ohering@suse.de
- Move to github, use _service file
-------------------------------------------------------------------
Mon Sep 23 16:35:39 UTC 2019 - ohering@suse.de
- Update to upstream version 1.8.1
Adapted to upcoming ocaml-4.09.
New API Findlib.list_packages' can specify a package prefix.
Fix reinstallation of "num" for OCaml-4.06.
Fix build with OCaml-4.07.
The installation of graphics/META is now optional.
Fix "ocamlfind query -d".
The environment variable OCAMLFIND_IGNORE_DUPS_IN is now interpreted as a list of directories.
Packages for "ocamlfind query" may now be separated by commas, too.
New "warning" property for packages.
Forgetting to pass -thread/-vmthread only prints a warning now, but doesn't stop the build.
For dealing with case-sensitive filesystems it is now only tried to match ASCII characters, but not encoding-dependent characters.
-------------------------------------------------------------------
Thu Aug 22 13:24:21 UTC 2019 - ohering@suse.de
- Remove /etc/ocamlfind.conf because it is not configuration
but built-in constants.
-------------------------------------------------------------------
Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de
- Use Group: Development/Languages/OCaml
-------------------------------------------------------------------
Mon Jul 17 20:24:18 UTC 2017 - ohering@suse.de
- Update to upstream version 1.7.3
Fix regarding num-top: this library is now also optional, as num.
Trying to protect against failures when several package installs are done in parallel.
New subpackage "findlib.top" for the toploop
The "num" library is now optional.
New command "ocamlfind printppx" that outputs how the ppx preprocessor would be called
Support for the raw_spacetime library that comes with OCaml 4.04
Require that ocamlc and ocamlc.opt are installed to the same directory
"ocamlfind printconf" respects the environment variable OCAMLFIND_CONF
Build with -opaque
Preliminary support for native toplevel
New options: ocamlfind query -qe -qo
- drop findlib-1.3.3.patch
-------------------------------------------------------------------
Mon Jul 17 12:48:58 UTC 2017 - ohering@suse.de
- Wrap specfile conditionals to fix quilt setup
-------------------------------------------------------------------
Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de
- Remove autodeps for pre openSUSE 12.1 releases
-------------------------------------------------------------------
Wed May 18 21:34:23 UTC 2016 - ohering@suse.de
- Update to upstream version 1.6.2 (fate#320836)
Adding an "ocamldoc" library, providing the cmi's for ocamldoc plugins
Support for OCaml-4.03: recognize that the new -color option has an argument
Adding support for dynamically loading packages
new "plugin" variable, new Fl_dynload module.
New command "ocamlfind lint" for checking META files
Allow to query the location of the META file of a package:
"ocamlfind query -format '%m'"
Get the install path for the META file of packages:
"ocamlfind printconf metapath"
The switch -only-show did not work as described.
-------------------------------------------------------------------
Tue Nov 10 10:18:47 UTC 2015 - ohering@suse.de
- Add hardcoded Provides for pre 12.1 repos
-------------------------------------------------------------------
Thu Oct 23 17:01:25 UTC 2014 - ohering@suse.de
- Update to upstream version 1.5.5
New ppxopt META variables.
Support for OCAMLFIND_TOOLCHAIN environment variable.
-------------------------------------------------------------------
Thu Oct 23 12:40:36 UTC 2014 - ohering@suse.de
- BuildRequire ocaml-rpm-macros
-------------------------------------------------------------------
Fri Oct 10 17:07:25 UTC 2014 - ohering@suse.de
- BuildRequire at least ocaml 4.02
-------------------------------------------------------------------
Wed Oct 8 14:18:37 CEST 2014 - ohering@suse.de
- Update to upstream version 1.5.3
The installation of "bytes" respects now $prefix and the
configured destination.
New option -pp for "ocamlfind query", to get preprocessor
packages. Updated the compatibility Bytes module to support
extend, init, mapi, blit_string.
- 1.5.2: support for the query formats "%+a" and "%+A".
Fix: the "ppx" property is now also path-expanded when
interpreted in a toploop.
Fix: implicit "ppx" is not path-expanded anymore.
Fix: Build bytes.cmxs only if natdynlink is enabled.
- 1.5.1: includes a file that was missing in 1.5
- 1.5: Including the "bytes" package that is either a compat
package for ocaml < 4.02 or a fake package for ocaml >= 4.02.
The package aims at helping to support the transition to the new
"bytes" type for mutable strings.
Also installing findlib.cmxs if OCaml supports it.
Allowing to disable camlp4 (in prep for OCaml-4.02).
The "ppx" package property can be specified for constructing
ppx-type preprocessor.
- 1.4.1:ocamldoc: The order of -ppopt arguments was changed by
ocamlfind, which is not correct.
- 1.4: Fixed performance bug when many arguments need to be processed.
Auto-configuring ocamldoc.opt if it is found.
New config switch -no-custom to prevent that "ocamlfind" is
linked in custom-runtime mode (bytecode only).
The library dbm is no longer part of OCaml, and now optional in
findlib
Support for ocamloptp.
New function Topfind.log for controlling the verbosity.
Rewritten Fl_metascanner without camlp4
-------------------------------------------------------------------
Mon Jun 3 09:23:34 CEST 2013 - ohering@suse.de
- Recompress with xz
-------------------------------------------------------------------
Fri Mar 8 14:17:16 CET 2013 - ohering@suse.de
- remove ExclusiveArch, its a generic package which depends on ocaml
-------------------------------------------------------------------
Thu Feb 21 14:27:14 CET 2013 - ohering@suse.de
- package compiler-libs/
-------------------------------------------------------------------
Wed Jan 16 16:03:19 CET 2013 - ohering@suse.de
- disable also /usr/lib/rpm/find-debuginfo.sh
-------------------------------------------------------------------
Mon Jan 14 15:58:16 CET 2013 - ohering@suse.de
- disable strip, it destroys bytecode binaries
-------------------------------------------------------------------
Mon Jan 14 10:07:21 CET 2013 - ohering@suse.de
- change Requires: version-release to just Requires: version
-------------------------------------------------------------------
Fri Nov 23 18:05:49 CET 2012 - ohering@suse.de
- restore BuildRequire ocaml-camlp4-devel because the solver
triggers only on package names
-------------------------------------------------------------------
Tue Nov 13 21:40:32 CET 2012 - ohering@suse.de
- add DESTDIR support
-------------------------------------------------------------------
Tue Sep 18 15:38:11 CEST 2012 - ohering@suse.de
- BuildRequire just camlp4 to allow build within sles11 [fate#312159]
-------------------------------------------------------------------
Sun Sep 16 20:05:17 CEST 2012 - ohering@suse.de
- Update to upstream version 1.3.3
- 1.3.3: OCaml-4: using the new #remove_directory directive if present.
Better compatibility with the OCaml version from Homebrew.
- 1.3.2: Handling of empty arguments (Wojciech Meyer).
Added entry for camlp4.fulllib.
New switch -add for "ocamlfind install" (Hans Ole Rafaelsen).
Further fixes for ocaml-4.00.
Fixing the recognition of double .cmi interface files.
Fixing -dontlink (it is now deeply interpreted).
- 1.3.1: Fixing a bug with ocamlmklib that slipped through in 1.3.0
- 1.3.0: Fixes for ocaml-4.00 (especially topfind).
Emitting an error if the configuration file does not exist.
Emitting a warning if the selected toolchain does not exist.
camlp4 is referenced by "+camlp4" in META.
Including the sources for the documentation in the tarball.
License change (simplification) for num_top_printers.mli.
Fix ocamlmklib wrapper: processing contracted args (like -L/dir) correctly.
Many wrappers get a new option -passrest instructing to pass all remaining
options on the command-line unchanged to the invoked tool.
Prettified -help output.
- 1.2.8: Adding support for ocamlmklib (B. Meurer's patches)
Fix for win32 in the configure script.
-------------------------------------------------------------------
Thu Sep 15 01:23:49 UTC 2011 - ampsaltis@gmail.com
- Remove some unneeded commands in the build section
-------------------------------------------------------------------
Fri Jul 22 16:18:43 UTC 2011 - ampsaltis@gmail.com
- Fix license (sort of, they're the same thing, really)
- Primary package provides ocamlfind
- Fixed some rpmlint warnings
-------------------------------------------------------------------
Fri Jun 17 13:43:16 UTC 2011 - ampsaltis@gmail.com
- Use ocaml-camlp4-devel in BuildRequires
Wed May 18 19:12:42 UTC 2011 - ampsaltis@gmail.com
-------------------------------------------------------------------
- Add this file.
- New upstream version 1.2.7
- Fix: if a META file defines several packages, and one of the packages
has a broken dependency, ocamlfind used to report all errors even if
the broken packages were not used. This is now changed - broken
subpackages are ignored when they are not needed, in the same way as
broken top-level packages are ignored when not needed. (Thanks to
Sylvain Le Gall for reporting the problem.)
- Added -thread and -vmthread switches to "ocamlfind ocamldoc".
These actually only add the right predicates. (Thanks to Vladimir
Ivanov for pointing this problem out.)
- Package warnings can be emitted by "ocamlfind ocamldoc".
-------------------------------------------------------------------
Wed Apr 20 00:00:00 UTC 2011 - ampsaltis@gmail.com
- Use internal dependency generator

90
ocaml-findlib.spec Normal file
View File

@ -0,0 +1,90 @@
#
# spec file for package ocaml-findlib
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2010-2011 Andrew Psaltis <ampsaltis at gmail dot com>
#
# 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: ocaml-findlib
Version: 1.9.5
Release: 0
%{?ocaml_preserve_bytecode}
Summary: Objective CAML package manager and build helper
License: MIT
Group: Development/Languages/OCaml
URL: https://github.com/ocaml/ocamlfind
Source0: %name-%version.tar.xz
#
Requires: ocaml-compiler-libs
Requires: ocaml-runtime
#
Provides: ocamlfind = %version
BuildRequires: ocaml
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-rpm-macros >= 20220409
#
BuildRoot: %_tmppath/%name-%version-build
%description
Findlib is a library manager for Objective Caml. It provides a
convention how to store libraries, and a file format ("META") to
describe the properties of libraries. There is also a tool (ocamlfind)
for interpreting the META files, so that it is very easy to use
libraries in programs and scripts.
%package devel
Summary: Development files for ocaml-findlib
Group: Development/Languages/OCaml
Requires: %name = %version
Provides: %name-camlp4 = %version-%release
Obsoletes: %name-camlp4 < %version-%release
%description devel
The ocaml-findlib-devel package contains libraries and signature files
for developing applications that use ocaml-findlib.
%prep
%setup -q
%build
rm -rfv site-lib-src
(cd tools/extract_args && make)
tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||:
./configure -config %ocaml_standard_library/ocamlfind.conf \
-bindir %_bindir \
-sitelib '%ocaml_standard_library' \
-mandir %_mandir \
-with-toolbox
make all
make opt
%install
%make_install
rm -rfv %buildroot%ocaml_standard_library/ocamlbuild
rm -rfv %buildroot%ocaml_standard_library/findlib/Makefile.packages
%ocaml_create_file_list
%files -f %name.files
%defattr(-,root,root,-)
%ocaml_standard_library/ocamlfind.conf
%ocaml_standard_library/topfind
%_bindir/*
#
%files devel -f %name.files.devel
%defattr(-,root,root,-)
%ocaml_standard_library/*/Makefile.config
%changelog