ocaml-findlib/ocaml-findlib.spec

122 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package ocaml-findlib
#
- 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-findlib?expand=0&rev=26
2014-10-08 14:23:03 +02:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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 http://bugs.opensuse.org/
#
%{ocaml_preserve_bytecode}
Name: ocaml-findlib
- 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-findlib?expand=0&rev=26
2014-10-08 14:23:03 +02:00
Version: 1.5.3
Release: 0
Summary: Objective CAML package manager and build helper
License: MIT
Group: Development/Libraries/Other
Url: http://projects.camlcity.org/projects/findlib.html
Source0: findlib-%{version}.tar.xz
Patch0: findlib-1.3.3.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: ocamlfind = %{version}
BuildRequires: gawk
BuildRequires: m4
BuildRequires: ncurses-devel
BuildRequires: ocaml >= 4.02.0
BuildRequires: ocaml-camlp4-devel >= 4.02.0
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-rpm-macros >= 4.02.1
%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/Libraries/Other
Requires: %{name} = %{version}
%description devel
The ocaml-findlib-devel package contains libraries and signature files
for developing applications that use ocaml-findlib.
%prep
%setup -q -n findlib-%{version}
%patch0 -p1
%build
(cd tools/extract_args && make)
tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||:
#cat src/findlib/ocaml_args.ml
./configure -config %{_sysconfdir}/ocamlfind.conf \
-bindir %{_bindir} \
-sitelib `ocamlc -where` \
-mandir %{_mandir} \
-with-toolbox
make all
%if %{ocaml_native_compiler}
make opt
%endif
rm doc/guide-html/TIMESTAMP
%install
make install DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE doc/README
%config(noreplace) %{_sysconfdir}/ocamlfind.conf
%{_bindir}/*
%{_mandir}/man?/*
%{_libdir}/ocaml/bigarray
%{_libdir}/ocaml/camlp4
%{_libdir}/ocaml/compiler-libs
%{_libdir}/ocaml/dynlink
%{_libdir}/ocaml/findlib
%{_libdir}/ocaml/graphics
%{_libdir}/ocaml/num
%{_libdir}/ocaml/ocamlbuild
%{_libdir}/ocaml/stdlib
%{_libdir}/ocaml/str
%{_libdir}/ocaml/threads
%{_libdir}/ocaml/topfind
%{_libdir}/ocaml/unix
%if %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/findlib/*.a
%exclude %{_libdir}/ocaml/findlib/*.cmxa
%endif
%exclude %{_libdir}/ocaml/findlib/*.mli
%exclude %{_libdir}/ocaml/findlib/Makefile.config
%{_libdir}/ocaml/num-top
%files devel
%defattr(-,root,root,-)
%doc LICENSE doc/README doc/guide-html
%if %{ocaml_native_compiler}
%{_libdir}/ocaml/findlib/*.a
%{_libdir}/ocaml/findlib/*.cmxa
%endif
%{_libdir}/ocaml/findlib/*.mli
%{_libdir}/ocaml/findlib/Makefile.config
%{_libdir}/ocaml/bytes
%changelog