From 74ea65ab9ffe29dd8c8efd2c43155749fe7d5210e8325cdc292f2d8c78217dd0 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Fri, 1 Nov 2019 22:42:04 +0000 Subject: [PATCH] - Require current dune macros - Remove camlp4 subpackage - Move META files for stdlib and camlp4 to their own package to remove the build dependency to this package OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-findlib?expand=0&rev=85 --- ocaml-findlib.changes | 8 ++++++++ ocaml-findlib.spec | 39 +++++---------------------------------- 2 files changed, 13 insertions(+), 34 deletions(-) diff --git a/ocaml-findlib.changes b/ocaml-findlib.changes index 4f81be2..4c18f1f 100644 --- a/ocaml-findlib.changes +++ b/ocaml-findlib.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de + +- Require current dune macros +- Remove camlp4 subpackage +- Move META files for stdlib and camlp4 to their own package + to remove the build dependency to this package + ------------------------------------------------------------------- Wed Oct 2 17:59:21 UTC 2019 - ohering@suse.de diff --git a/ocaml-findlib.spec b/ocaml-findlib.spec index e14b4da..dcc60f0 100644 --- a/ocaml-findlib.spec +++ b/ocaml-findlib.spec @@ -13,7 +13,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -27,7 +27,6 @@ Group: Development/Languages/OCaml Url: https://github.com/ocaml/ocamlfind Source0: findlib-%{version}.tar.xz -BuildRoot: %{_tmppath}/%{name}-%{version}-build # Requires: ocaml-compiler-libs Requires: ocaml-runtime @@ -37,10 +36,9 @@ Provides: ocamlfind = %{version} BuildRequires: m4 BuildRequires: ncurses-devel BuildRequires: ocaml -BuildRequires: ocaml-camlp4-devel BuildRequires: ocaml-ocamlbuild BuildRequires: ocaml-ocamldoc -BuildRequires: ocaml-rpm-macros >= 20190930 +BuildRequires: ocaml-rpm-macros >= 20191101 %description Findlib is a library manager for Objective Caml. It provides a @@ -49,28 +47,22 @@ 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/Languages/OCaml Requires: %{name} = %{version} +Provides: %{name}-camlp4 = %{version}-%{release} +Obsoletes: %{name}-camlp4 < %{version}-%{release} %description devel The ocaml-findlib-devel package contains libraries and signature files for developing applications that use ocaml-findlib. -%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 - %prep %autosetup -p1 -n findlib-%{version} %build +rm -rfv site-lib-src (cd tools/extract_args && make) tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||: ./configure -config %{_libdir}/ocaml/ocamlfind.conf \ @@ -89,26 +81,7 @@ make install prefix=%{buildroot} rm -rfv %{buildroot}%{_libdir}/ocaml/ocamlbuild %ocaml_create_file_list -# camlp4 support nee -sed -i~ ' -/\/camlp4/ { -w %{name}.files.camlp4 -d -} -/\/findlib/ { -b -} -/\/num-top/ { -b -} -w %{name}.files.x -d -' %{name}.files.devel -diff -u "$_"~ "$_" && exit 2 -tee -a %{name}.files < %{name}.files.x - %files -f %{name}.files -%license LICENSE %{_libdir}/ocaml/ocamlfind.conf %{_libdir}/ocaml/topfind %{_bindir}/* @@ -118,6 +91,4 @@ tee -a %{name}.files < %{name}.files.x %files devel -f %{name}.files.devel %{_libdir}/ocaml/*/Makefile.config -%files camlp4 -f %{name}.files.camlp4 - %changelog