Compare commits

...
Sign in to create a new pull request.

34 commits

Author SHA1 Message Date
Jerry James
c909731789 Fix a changelog entry 2026-01-13 16:11:11 -07:00
Richard W.M. Jones
728a83caef OCaml 5.4.0 rebuild 2025-10-13 18:38:51 +01:00
Fedora Release Engineering
b1f6529a84 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 23:09:16 +00:00
Jerry James
b6a3a6433a Rebuild to fix OCaml dependencies 2025-07-11 11:35:54 -06:00
Fedora Release Engineering
8456c22d01 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 20:46:07 +00:00
Jerry James
dfa67c4858 OCaml 5.3.0 rebuild for Fedora 42 2025-01-09 10:40:23 -07:00
Jerry James
052784cfa5 Version 1.8.0 2024-12-26 20:15:16 -07:00
Fedora Release Engineering
dcb13125a9 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 20:04:00 +00:00
Jerry James
06d9581d0e Fix the VCS field 2024-07-17 13:51:59 -06:00
Richard W.M. Jones
7f6d521715 OCaml 5.2.0 ppc64le fix 2024-06-19 13:41:07 +01:00
Richard W.M. Jones
d99999b529 Add RHEL gating test 2024-06-19 09:14:59 +01:00
Richard W.M. Jones
5cf63a1d3c OCaml 5.2.0 for Fedora 41 2024-05-29 18:11:21 +01:00
Jerry James
3c2ee7058b Add VCS field 2024-05-23 09:35:16 -06:00
Fedora Release Engineering
a4898bb1fd Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 09:54:40 +00:00
Fedora Release Engineering
91eb42c5f0 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 10:13:35 +00:00
Richard W.M. Jones
de72b1435f OCaml 5.1.1 + s390x code gen fix for Fedora 40 2023-12-18 13:42:29 +00:00
Richard W.M. Jones
85bfcf9763 OCaml 5.1.1 rebuild for Fedora 40 2023-12-12 09:27:16 +00:00
Richard W.M. Jones
c7794e5f0c OCaml 5.1 rebuild for Fedora 40 2023-10-05 14:02:42 +01:00
Fedora Release Engineering
8d10201ede Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 17:14:40 +00:00
Richard W.M. Jones
308eb61d47 OCaml 5.0 rebuild for Fedora 39 2023-07-11 23:04:47 +01:00
Richard W.M. Jones
f6e3d6553f ExcludeArch i686 (https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/SPML7CUBSZNI36NLXGVHEG7DNHU3EWOJ/) 2023-07-11 11:36:23 +01:00
Jerry James
6aa55cb487 Version 1.6.9
Other changes:
- Convert License tag to SPDX
- Use new dune macros
2023-07-10 14:45:23 -06:00
Richard W.M. Jones
e7ec2966a5 Rebuild OCaml packages for F38 2023-01-24 10:15:33 +00:00
Fedora Release Engineering
f0ee8f97c3 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 22:05:34 +00:00
Fedora Release Engineering
aafa5de0c9 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 01:10:31 +00:00
Richard W.M. Jones
bed9c73afd OCaml 4.14.0 rebuild 2022-06-18 14:40:51 +01:00
Richard W.M. Jones
f5ed7a0358 OCaml 4.13.1 rebuild to remove package notes 2022-02-04 14:22:03 +00:00
Fedora Release Engineering
23bb844396 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 21:41:36 +00:00
Jerry James
8952f7cdae Version 1.6.8
- New URLs
- Add ocamlbuild subpackage for the plugin
- Build, install, and test with dune
2021-12-15 10:49:29 -07:00
Richard W.M. Jones
ca973a41cc OCaml 4.13.1 build 2021-10-04 22:11:11 +01:00
Fedora Release Engineering
bd8e049950 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 16:35:18 +00:00
Richard W.M. Jones
07f2fc5509 OCaml 4.12.0 build 2021-03-01 11:02:43 +00:00
Fedora Release Engineering
9ff33bb9de - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 21:55:21 +00:00
Tom Stellard
4164816e13 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-09 03:23:20 +00:00
6 changed files with 150 additions and 31 deletions

2
.gitignore vendored
View file

@ -5,3 +5,5 @@
/v1.6.4.tar.gz
/v1.6.5.tar.gz
/v1.6.6.tar.gz
/cppo-1.6.8.tar.gz
/cppo-1.8.0.tar.gz

6
gating.yaml Executable file
View file

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View file

@ -1,26 +1,22 @@
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%if !%{opt}
%global debug_package %{nil}
%endif
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
ExcludeArch: %{ix86}
%global giturl https://github.com/ocaml-community/cppo
Name: ocaml-cppo
Version: 1.6.6
Release: 10%{?dist}
Version: 1.8.0
Release: 5%{?dist}
Summary: Equivalent of the C preprocessor for OCaml programs
License: BSD
URL: http://mjambon.com/cppo.html
Source0: https://github.com/ocaml-community/cppo/archive/v%{version}.tar.gz
License: BSD-3-Clause
URL: https://ocaml-community.github.io/cppo/
VCS: git:%{giturl}.git
Source0: %{giturl}/archive/v%{version}/cppo-%{version}.tar.gz
BuildRequires: ocaml >= 3.10.0
BuildRequires: ocaml-findlib
%if !%{opt}
Requires: ocaml >= 3.10.0
%endif
BuildRequires: ocaml-ocamlbuild-devel
BuildRequires: ocaml >= 4.02.3
BuildRequires: ocaml-dune
%define libname %(sed -e 's/^ocaml-//' <<< %{name})
BuildRequires: ocaml-findlib
BuildRequires: ocaml-ocamlbuild
%description
Cppo is an equivalent of the C preprocessor targeted at the OCaml
@ -37,37 +33,134 @@ on the standard parsing tools Ocamllex and Ocamlyacc, which contribute
to the robustness of cppo across OCaml versions.
%package ocamlbuild
Summary: Preprocessing plugin for ocamlbuild
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: ocaml-ocamlbuild%{?_isa}
# There is no devel subpackage because this package IS for development purposes
%description ocamlbuild
This package contains a plugin for ocamlbuild that enables calling cppo
at build time. To use it, call ocamlbuild with the argument
`-plugin-tag package(cppo_ocamlbuild)`.
%prep
%setup -q -n %{libname}-%{version}
sed -i.add-debuginfo \
's/ocamlopt/ocamlopt -g/;s/ocamlc \(-[co]\)/ocamlc -g \1/' \
Makefile
%autosetup -n cppo-%{version}
%build
make %{?_smp_mflags} all
%dune_build
%install
%{__install} -d $RPM_BUILD_ROOT%{_bindir}
%{__install} -p _build/install/default/bin/cppo $RPM_BUILD_ROOT%{_bindir}/
%dune_install
%check
%ifnarch %{arm} %{power64}
# Fails on armv7hl and ppc64le with:
# Error: math error
make test
%endif
%dune_check
%files
%license LICENSE.md
%doc Changes README.md
%doc Changes.md README.md
%{_bindir}/cppo
%{_libdir}/ocaml/cppo
%files ocamlbuild
%{_libdir}/ocaml/cppo_ocamlbuild/
%changelog
* Mon Oct 13 2025 Richard W.M. Jones <rjones@redhat.com> - 1.8.0-5
- OCaml 5.4.0 rebuild
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri Jul 11 2025 Jerry James <loganjerry@gmail.com> - 1.8.0-3
- Rebuild to fix OCaml dependencies
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jan 9 2025 Jerry James <loganjerry@gmail.com> - 1.8.0-1
- OCaml 5.3.0 rebuild for Fedora 42
- Version 1.8.0
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.9-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jun 19 2024 Richard W.M. Jones <rjones@redhat.com> - 1.6.9-10
- OCaml 5.2.0 ppc64le fix
* Wed May 29 2024 Richard W.M. Jones <rjones@redhat.com> - 1.6.9-9
- OCaml 5.2.0 for Fedora 41
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.9-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.9-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 1.6.9-6
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 1.6.9-5
- OCaml 5.1.1 rebuild for Fedora 40
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 1.6.9-4
- OCaml 5.1 rebuild for Fedora 40
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 11 2023 Richard W.M. Jones <rjones@redhat.com> - 1.6.9-2
- OCaml 5.0 rebuild for Fedora 39
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 1.6.9-1
- Version 1.6.9
- Convert License tag to SPDX
- Use new dune macros
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 1.6.8-7
- Rebuild OCaml packages for F38
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jun 18 2022 Richard W.M. Jones <rjones@redhat.com> - 1.6.8-4
- OCaml 4.14.0 rebuild
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 1.6.8-3
- OCaml 4.13.1 rebuild to remove package notes
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Dec 14 2021 Jerry James <loganjerry@gmail.com> - 1.6.8-1
- Version 1.6.8
- New URLs
- Add ocamlbuild subpackage for the plugin
- Build, install, and test with dune
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-14
- OCaml 4.13.1 build
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Mar 1 11:02:42 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-12
- OCaml 4.12.0 build
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-10
- OCaml 4.11.1 rebuild

View file

@ -1 +1 @@
SHA512 (v1.6.6.tar.gz) = 80b0d7a5f0f5b7d9d62ddfb204ebf5e3216c2926ba7f667b9ef10981de6a51cd6d670b7062769bf6fbdd163c1c8fb5426a74c31234ddc03ec94a75645bf469da
SHA512 (cppo-1.8.0.tar.gz) = 3840725b767a0300bdc48f11d26d798bdcae0a764ed6798df3a08dfc8cc76fe124b14a19d47c9b5ea8e229d68b0311510afce77c0e4d9131fbda5116dc2689a2

6
tests/basic-test.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash -
set -e
set -x
# XXX How to test?
# At the moment this is just an installation test.

12
tests/tests.yml Executable file
View file

@ -0,0 +1,12 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- ocaml
- ocaml-cppo
tests:
- simple:
dir: .
run: ./basic-test.sh