Sync from SUSE:SLFO:Main ocaml-cppo revision 649db2f6de8c22a734b6b8a728da3ecf

This commit is contained in:
Adrian Schröter 2024-05-03 17:18:17 +02:00
commit 7b62039e09
5 changed files with 248 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">ocaml-cppo</param>
<param name="revision">31c1365214d2381b12127c657156778e921357f8</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://github.com/ocaml-community/cppo.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">[v]?([^\+]+)(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

BIN
ocaml-cppo-1.6.9.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

127
ocaml-cppo.changes Normal file
View File

@ -0,0 +1,127 @@
-------------------------------------------------------------------
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

78
ocaml-cppo.spec Normal file
View File

@ -0,0 +1,78 @@
#
# spec file for package ocaml-cppo
#
# Copyright (c) 2022 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.6.9
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 >= 20220409
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