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