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
|
|
|
|
2012-11-13 16:52:52 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-09-14 15:03:18 +00:00
|
|
|
|
|
|
|
|
2016-06-10 09:14:59 +00:00
|
|
|
Name: ocaml-findlib
|
2019-09-23 18:00:24 +00:00
|
|
|
Version: 1.8.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
|
2012-11-13 16:52:52 +00:00
|
|
|
|
2019-10-02 18:00:00 +00:00
|
|
|
Url: https://github.com/ocaml/ocamlfind
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2012-11-13 16:52:52 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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}
|
|
|
|
|
|
|
|
BuildRequires: gawk
|
2012-11-13 16:52:52 +00:00
|
|
|
BuildRequires: m4
|
|
|
|
BuildRequires: ncurses-devel
|
2019-10-01 06:42:41 +00:00
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-camlp4-devel
|
2016-05-18 23:50:23 +00:00
|
|
|
BuildRequires: ocaml-ocamlbuild
|
2012-11-13 16:52:52 +00:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
2019-10-01 06:42:41 +00:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 20190930
|
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}
|
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
|
|
|
|
2019-10-01 06:42:41 +00:00
|
|
|
%package camlp4
|
|
|
|
Summary: Development files for ocaml-findlib
|
|
|
|
Group: Development/Languages/OCaml
|
|
|
|
Requires: ocaml-camlp4-devel
|
|
|
|
|
|
|
|
%description camlp4
|
|
|
|
The ocaml-findlib-camlp4 contains signature files for developing applications that use camlp4
|
2016-05-30 06:14:48 +00:00
|
|
|
|
2011-09-14 15:03:18 +00:00
|
|
|
%prep
|
2019-10-02 18:00:00 +00:00
|
|
|
%autosetup -p1
|
2011-09-14 15:03:18 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
(cd tools/extract_args && make)
|
|
|
|
tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||:
|
2019-08-22 13:25:55 +00:00
|
|
|
./configure -config %{_libdir}/ocaml/ocamlfind.conf \
|
2011-09-14 15:03:18 +00:00
|
|
|
-bindir %{_bindir} \
|
|
|
|
-sitelib `ocamlc -where` \
|
|
|
|
-mandir %{_mandir} \
|
|
|
|
-with-toolbox
|
|
|
|
make all
|
2017-07-17 14:57:29 +00:00
|
|
|
%if 0%{?ocaml_native_compiler}
|
2011-09-14 15:03:18 +00:00
|
|
|
make opt
|
|
|
|
%endif
|
2019-10-03 18:47:21 +00:00
|
|
|
rm -fv doc/guide-html/TIMESTAMP
|
2011-09-14 15:03:18 +00:00
|
|
|
|
|
|
|
%install
|
2019-10-01 06:42:41 +00:00
|
|
|
make install prefix=%{buildroot}
|
|
|
|
rm -rfv %{buildroot}%{_libdir}/ocaml/ocamlbuild
|
|
|
|
%ocaml_create_file_list
|
|
|
|
|
|
|
|
# camlp4 support nee
|
|
|
|
sed -i~ '
|
|
|
|
/\/camlp4/ {
|
|
|
|
w %{name}.files.camlp4
|
2019-09-23 18:44:24 +00:00
|
|
|
d
|
2019-10-01 06:42:41 +00:00
|
|
|
}
|
|
|
|
/\/findlib/ {
|
|
|
|
b
|
|
|
|
}
|
|
|
|
/\/num-top/ {
|
|
|
|
b
|
|
|
|
}
|
|
|
|
w %{name}.files.x
|
|
|
|
d
|
|
|
|
' %{name}.files.devel
|
2019-09-23 18:44:24 +00:00
|
|
|
diff -u "$_"~ "$_" && exit 2
|
2019-10-01 06:42:41 +00:00
|
|
|
tee -a %{name}.files < %{name}.files.x
|
2019-09-23 18:44:24 +00:00
|
|
|
|
2019-10-01 06:42:41 +00:00
|
|
|
%files -f %{name}.files
|
2019-09-23 18:00:24 +00:00
|
|
|
%license LICENSE
|
2019-08-22 13:25:55 +00:00
|
|
|
%{_libdir}/ocaml/ocamlfind.conf
|
2019-10-01 06:42:41 +00:00
|
|
|
%{_libdir}/ocaml/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
|
2016-05-24 06:18:35 +00:00
|
|
|
%{_libdir}/ocaml/*/Makefile.config
|
2019-10-01 06:42:41 +00:00
|
|
|
|
|
|
|
%files camlp4 -f %{name}.files.camlp4
|
2011-09-14 15:03:18 +00:00
|
|
|
|
|
|
|
%changelog
|