File ocaml-camlp5.spec of Package ocaml-camlp5
#
# spec file for package ocaml-camlp5
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#
%global __suseocaml_requires_opts \
-c \
-i Dynlink_cmo_format \
%nil
%global __ocaml_requires_opts \
-c \
-i Dynlink_cmo_format \
%nil
Name: ocaml-camlp5
Version: 8.03.05
Release: 0
%{?ocaml_preserve_bytecode}
Summary: Preprocessor-Pretty-Printer for Objective Caml
License: BSD-3-Clause
Group: Development/Languages/OCaml
BuildRoot: %_tmppath/%name-%version-build
URL: https://opam.ocaml.org/packages/camlp5
Source0: %name-%version.tar.xz
Patch0: ocaml-camlp5.patch
BuildRequires: ocaml(ocaml_base_version) >= 4.10
BuildRequires: ocaml-rpm-macros >= 20250517
BuildRequires: ocamlfind(bos)
BuildRequires: ocamlfind(camlp-streams)
BuildRequires: ocamlfind(compiler-libs)
BuildRequires: ocamlfind(findlib)
BuildRequires: ocamlfind(fmt)
BuildRequires: ocamlfind(pcre2)
BuildRequires: ocamlfind(re)
BuildRequires: ocamlfind(rresult)
%description
Camlp5 is a preprocessor-pretty-printer of OCaml, parsing a source file and printing some result on standard output.
%package devel
Summary: Development files for ocaml-camlp5
Group: Development/Languages/OCaml
Requires: %name = %version
%description devel
Camlp5 is a preprocessor-pretty-printer of OCaml, parsing a source file and printing some result on standard output.
This package contains the development files.
%prep
%autosetup -p1
%build
%ifarch ppc64
ulimit -s $((1024 * 64))
%endif
./configure \
--mandir %_mandir
%make_build out
%make_build world
%make_build world.opt
%install
%make_install
%ocaml_create_file_list
%files -f %name.files
%defattr(-,root,root,-)
%_bindir/*
%_mandir/*/*
%files devel -f %name.files.devel
%defattr(-,root,root,-)
%changelog