commit 5ca5c7acd243e2a8af770525deff05e9c20bb02909dd756f1fba7e15b32e7ec8 Author: Olaf Hering Date: Mon Mar 3 08:31:23 2025 +0000 - Update to version 1.8.0 See included Changes.md for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-cppo?expand=0&rev=64 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..e5f9f49 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + ocaml-cppo + a3e90caf8fe416000f8aff8e1b1e7ee3b309d589 + git + disable + https://github.com/ocaml-community/cppo.git + @PARENT_TAG@ + [v]?([^\+]+)(.*) + \1 + + + *.tar + xz + + + diff --git a/ocaml-cppo-1.6.9.tar.xz b/ocaml-cppo-1.6.9.tar.xz new file mode 100644 index 0000000..285cda9 --- /dev/null +++ b/ocaml-cppo-1.6.9.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a547d4da801ad40a0b3ae50962c8c33b0f2cd46e8036f4e58c24c3475476d3f +size 27192 diff --git a/ocaml-cppo-1.8.0.tar.xz b/ocaml-cppo-1.8.0.tar.xz new file mode 100644 index 0000000..9c79542 --- /dev/null +++ b/ocaml-cppo-1.8.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2cd97b1acb5b3baa2ef94e3f007d9ba542e72656536d8bbd1ee336043345335 +size 37284 diff --git a/ocaml-cppo.changes b/ocaml-cppo.changes new file mode 100644 index 0000000..d80cd5f --- /dev/null +++ b/ocaml-cppo.changes @@ -0,0 +1,133 @@ +------------------------------------------------------------------- +Mon Mar 3 03:03:03 UTC 2025 - ohering@suse.de + +- Update to version 1.8.0 + See included Changes.md for details + +------------------------------------------------------------------- +Mon Jun 13 13:13:13 UTC 2022 - ohering@suse.de + +- Update to version 1.6.9 + See included Changes for details + +------------------------------------------------------------------- +Sat Sep 11 12:34:56 UTC 2021 - ohering@suse.de + +- Update to version 1.6.8 + Allow empty patch version + +------------------------------------------------------------------- +Thu Jan 21 21:21:21 UTC 2021 - ohering@suse.de + +- Update to version 1.6.7 + See included Changes for details + +------------------------------------------------------------------- +Thu Feb 20 20:20:20 UTC 2020 - ohering@suse.de + +- Require current ocaml-rpm-macros +- Remove cppo_ocamlbuild in preparation of ocamlbuild removal + +------------------------------------------------------------------- +Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de + +- Require current dune macros + +------------------------------------------------------------------- +Mon Sep 30 12:34:56 UTC 2019 - ohering@suse.de + +- use dune macros from ocaml-rpm-macros + +------------------------------------------------------------------- +Mon Sep 23 16:35:39 UTC 2019 - ohering@suse.de + +- Update to 1.6.6 + Fix build + +------------------------------------------------------------------- +Tue Feb 19 03:21:22 UTC 2019 - andy@onthewings.net + +- Update install files for ocaml-dune 1.7.1. + +------------------------------------------------------------------- +Fri Feb 8 01:35:59 UTC 2019 - andy@onthewings.net + +- Remove ocaml-cppo-1.6.1-install-args.patch and directly call dune + in the install section. + +------------------------------------------------------------------- +Tue Feb 5 18:39:39 UTC 2019 - andy@onthewings.net + +- Update to 1.6.5: + * Fix tests. + * Fix 'asr' operator. +- Update build command for latest version of dune. +- Update upstream url (migrated to ocaml-community GitHub account). + +------------------------------------------------------------------- +Mon Jun 11 09:28:49 UTC 2018 - andy@onthewings.net + +- Package the .ml and .dune files produced by latest dune. + +------------------------------------------------------------------- +Wed Jan 31 21:45:59 UTC 2018 - antoine.belvire@opensuse.org + +- Update to 1.6.1: + * Emit line directives always containing the file name, as + mandated starting with ocaml 4.07. +- Update to 1.6.0: + * BREAKING: cppo and cppo_ocamlbuild are now two distinct opam + packages. +- Build with dune instead of oasis. + +------------------------------------------------------------------- +Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de + +- Use Group: Development/Languages/OCaml + +------------------------------------------------------------------- +Mon Jul 17 20:24:18 UTC 2017 - ohering@suse.de + +- Update Url + +------------------------------------------------------------------- +Mon Jul 17 12:48:58 UTC 2017 - ohering@suse.de + +- Wrap specfile conditionals to fix quilt setup + +------------------------------------------------------------------- +Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de + +- Remove autodeps for pre openSUSE 12.1 releases + +------------------------------------------------------------------- +Wed May 31 07:07:33 UTC 2017 - olaf@aepfle.de + +- Replace tabs with spaces in generated _oasis file + +------------------------------------------------------------------- +Wed May 17 14:40:14 UTC 2017 - ohering@suse.de + +- Update to version 1.5.0 + +------------------------------------------------------------------- +Mon May 30 06:39:17 UTC 2016 - ohering@suse.de + +- Update to version 1.3.2 (fate#320836) + +------------------------------------------------------------------- +Tue Nov 10 10:18:47 UTC 2015 - ohering@suse.de + +- Add hardcoded Provides for pre 12.1 repos + +------------------------------------------------------------------- +Mon Nov 9 09:29:20 UTC 2015 - hpj@urpla.net + +- don't use make -jN for build +- require ocaml explicitly for build + +------------------------------------------------------------------- +Sat Jan 3 18:52:35 UTC 2015 - hpj@urpla.net + +- initial build: version 1.0.0 + diff --git a/ocaml-cppo.spec b/ocaml-cppo.spec new file mode 100644 index 0000000..5cdca47 --- /dev/null +++ b/ocaml-cppo.spec @@ -0,0 +1,78 @@ +# +# spec file for package ocaml-cppo +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2015 LISA GmbH, Bingen, Germany. +# +# 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/ +# + + +Name: ocaml-cppo +Version: 1.8.0 +Release: 0 +%{?ocaml_preserve_bytecode} +Summary: The C preprocessor written in OCaml +License: BSD-3-Clause +Group: Development/Languages/OCaml +URL: https://opam.ocaml.org/packages/cppo +Source: %name-%version.tar.xz +BuildRequires: ocaml +BuildRequires: ocaml-dune +BuildRequires: ocaml-rpm-macros >= 20240909 +BuildRequires: ocamlfind(str) +BuildRequires: ocamlfind(unix) + +%description +Cppo is an equivalent of the C preprocessor targeted at the OCaml language and +its variants. + +The main purpose of cppo is to provide a lightweight tool for simple macro +substitution (#define) and file inclusion (#include) for the occasional case +when this is useful in OCaml. Processing specific sections of files by calling +external programs is also possible via #ext directives. + +The implementation of cppo relies on the standard library of OCaml and on the +standard parsing tools Ocamllex and Ocamlyacc, which contribute to the +robustness of cppo across OCaml versions. + +%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 +%autosetup -p1 + +%build +dune_release_pkgs='cppo' +%ocaml_dune_setup +%ocaml_dune_build + +%install +%ocaml_dune_install +%ocaml_create_file_list + +%check +%ocaml_dune_test + +%files -f %name.files +%doc README.md +%_bindir/cppo + +%files devel -f %name.files.devel + +%changelog