From 8450154be259aea01e485ff935c5f0fa5d81a2e63774b1ce921b182c7ebd393f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 17:22:26 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main ocaml-pp revision 1af261d6e152eabb646e0263526e57d2 --- .gitattributes | 23 +++++++++++ _multibuild | 3 ++ _service | 17 ++++++++ ocaml-pp-1.2.0.tar.xz | 3 ++ ocaml-pp.changes | 26 ++++++++++++ ocaml-pp.spec | 96 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 168 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 _service create mode 100644 ocaml-pp-1.2.0.tar.xz create mode 100644 ocaml-pp.changes create mode 100644 ocaml-pp.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..964176c --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + testsuite + diff --git a/_service b/_service new file mode 100644 index 0000000..35c869f --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + ocaml-pp + 83b68c740f21acdcfe54436355ab328372871357 + git + disable + https://github.com/ocaml-dune/pp.git + @PARENT_TAG@ + [v]?([^+]+)(.*) + \1 + + + *.tar + xz + + + diff --git a/ocaml-pp-1.2.0.tar.xz b/ocaml-pp-1.2.0.tar.xz new file mode 100644 index 0000000..0931e6c --- /dev/null +++ b/ocaml-pp-1.2.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d21fa52f19e7bff105c1a46b10718c3b6ca81cec488f37950a60792f31eeb5b +size 10520 diff --git a/ocaml-pp.changes b/ocaml-pp.changes new file mode 100644 index 0000000..b77bc18 --- /dev/null +++ b/ocaml-pp.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Sat Sep 9 09:09:09 UTC 2023 - ohering@suse.de + +- Update to version 1.2.0 + See included CHANGES.md for details + +------------------------------------------------------------------- +Fri May 5 05:05:05 UTC 2023 - ohering@suse.de + +- JaneStreet libraries are 64bit, this pkg depends on them + +------------------------------------------------------------------- +Sat Apr 9 12:34:56 UTC 2022 - ohering@suse.de + +- Remove usage of ocaml-dune-bootstrap, following changes in ocaml-dune + +------------------------------------------------------------------- +Mon Apr 4 04:04:04 UTC 2022 - ohering@suse.de + +- Build with ocaml-dune-bootstrap + +------------------------------------------------------------------- +Sun Mar 13 13:13:13 UTC 2022 - ohering@suse.de + +- Initial version 1.1.2 + diff --git a/ocaml-pp.spec b/ocaml-pp.spec new file mode 100644 index 0000000..bc19256 --- /dev/null +++ b/ocaml-pp.spec @@ -0,0 +1,96 @@ +# +# spec file for package ocaml-pp +# +# Copyright (c) 2023 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/ +# + + +%bcond_with ocaml_pp_testsuite +%define build_flavor @BUILD_FLAVOR@%nil +%if "%build_flavor" == "testsuite" +%if %{without ocaml_pp_testsuite} +ExclusiveArch: do-not-build +%else +ExclusiveArch: aarch64 ppc64 ppc64le riscv64 s390x x86_64 +%endif +%define nsuffix -testsuite +%else +%define nsuffix %nil +%endif + +%define pkg ocaml-pp +Name: %pkg%nsuffix +Version: 1.2.0 +Release: 0 +%{?ocaml_preserve_bytecode} +Summary: Pretty-printing library +License: MIT +Group: Development/Languages/OCaml +BuildRoot: %_tmppath/%name-%version-build +URL: https://opam.ocaml.org/packages/pp +Source0: %pkg-%version.tar.xz +BuildRequires: ocaml-dune >= 2.8 +BuildRequires: ocaml-rpm-macros >= 20230101 +BuildRequires: ocaml(ocaml_base_version) >= 4.08 + +%if "%build_flavor" == "testsuite" +BuildRequires: ocamlfind(pp) +BuildRequires: ocamlfind(ppx_expect) +%endif + +%description +This library provides a lean alternative to the Format 1 module of the OCaml standard library. + +Pp uses the same concepts of boxes and break hints, and the final rendering is done to formatter from the Format module. + +%package devel +Summary: Development files for %name +Group: Development/Languages/OCaml +Requires: %name = %version + +%description devel +The %name-devel package contains libraries and signature files for +developing applications that use %name. + +%prep +%setup -q -n %pkg-%version + +%build +dune_release_pkgs='pp' +%ocaml_dune_setup +%if "%build_flavor" == "" +%ocaml_dune_build +%endif + +%install +%if "%build_flavor" == "" +%ocaml_dune_install +%ocaml_create_file_list +%endif + +%if "%build_flavor" == "testsuite" +%check +%ocaml_dune_test +%endif + +%if "%build_flavor" == "" +%files -f %name.files +%defattr(-,root,root,-) + +%files devel -f %name.files.devel +%defattr(-,root,root,-) + +%endif + +%changelog