2012-11-13 17:52:52 +01:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-findlib
|
|
|
|
#
|
2022-04-04 17:29:22 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-11-13 17:52:52 +01:00
|
|
|
# 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.
|
2011-09-14 17:03:18 +02:00
|
|
|
|
2019-11-01 23:42:04 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-11-13 17:52:52 +01:00
|
|
|
#
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
|
2016-06-10 11:14:59 +02:00
|
|
|
Name: ocaml-findlib
|
2022-06-14 11:58:56 +02:00
|
|
|
Version: 1.9.5
|
2014-10-23 19:02:42 +02:00
|
|
|
Release: 0
|
2017-07-25 10:40:50 +02:00
|
|
|
%{?ocaml_preserve_bytecode}
|
2011-09-14 17:03:18 +02:00
|
|
|
Summary: Objective CAML package manager and build helper
|
|
|
|
License: MIT
|
2017-07-25 15:22:18 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2022-05-19 10:17:42 +02:00
|
|
|
URL: https://github.com/ocaml/ocamlfind
|
2022-06-14 11:58:56 +02:00
|
|
|
Source0: %name-%version.tar.xz
|
2016-05-30 09:46:50 +02:00
|
|
|
#
|
|
|
|
Requires: ocaml-compiler-libs
|
|
|
|
Requires: ocaml-runtime
|
|
|
|
#
|
2022-04-04 17:26:17 +02:00
|
|
|
Provides: ocamlfind = %version
|
2019-10-01 08:42:41 +02:00
|
|
|
BuildRequires: ocaml
|
2012-11-13 17:52:52 +01:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
2022-06-14 11:58:56 +02:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 20220409
|
2022-05-19 10:17:42 +02:00
|
|
|
#
|
2022-06-14 11:54:03 +02:00
|
|
|
BuildRoot: %_tmppath/%name-%version-build
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
%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
|
2013-01-15 19:22:45 +01:00
|
|
|
Summary: Development files for ocaml-findlib
|
2017-07-25 15:22:18 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2022-04-04 17:26:17 +02:00
|
|
|
Requires: %name = %version
|
|
|
|
Provides: %name-camlp4 = %version-%release
|
|
|
|
Obsoletes: %name-camlp4 < %version-%release
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
%description devel
|
2013-01-15 19:22:45 +01:00
|
|
|
The ocaml-findlib-devel package contains libraries and signature files
|
|
|
|
for developing applications that use ocaml-findlib.
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
%prep
|
2022-06-14 11:58:56 +02:00
|
|
|
%setup -q
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
%build
|
2019-11-01 23:42:04 +01:00
|
|
|
rm -rfv site-lib-src
|
2011-09-14 17:03:18 +02:00
|
|
|
(cd tools/extract_args && make)
|
|
|
|
tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||:
|
2022-04-04 17:26:17 +02:00
|
|
|
./configure -config %ocaml_standard_library/ocamlfind.conf \
|
|
|
|
-bindir %_bindir \
|
|
|
|
-sitelib '%ocaml_standard_library' \
|
|
|
|
-mandir %_mandir \
|
2011-09-14 17:03:18 +02:00
|
|
|
-with-toolbox
|
|
|
|
make all
|
|
|
|
make opt
|
|
|
|
|
|
|
|
%install
|
2022-06-14 11:58:56 +02:00
|
|
|
%make_install
|
2022-04-04 17:26:17 +02:00
|
|
|
rm -rfv %buildroot%ocaml_standard_library/ocamlbuild
|
|
|
|
rm -rfv %buildroot%ocaml_standard_library/findlib/Makefile.packages
|
2019-10-01 08:42:41 +02:00
|
|
|
%ocaml_create_file_list
|
|
|
|
|
2022-04-04 17:26:17 +02:00
|
|
|
%files -f %name.files
|
2021-04-13 15:37:21 +02:00
|
|
|
%defattr(-,root,root,-)
|
2022-04-04 17:26:17 +02:00
|
|
|
%ocaml_standard_library/ocamlfind.conf
|
|
|
|
%ocaml_standard_library/topfind
|
|
|
|
%_bindir/*
|
2016-05-24 08:18:35 +02:00
|
|
|
#
|
2011-09-14 17:03:18 +02:00
|
|
|
|
2022-04-04 17:26:17 +02:00
|
|
|
%files devel -f %name.files.devel
|
2021-04-13 15:37:21 +02:00
|
|
|
%defattr(-,root,root,-)
|
2022-04-04 17:26:17 +02:00
|
|
|
%ocaml_standard_library/*/Makefile.config
|
2019-10-01 08:42:41 +02:00
|
|
|
|
2011-09-14 17:03:18 +02:00
|
|
|
%changelog
|