2021-12-15 17:49:29 +00:00
|
|
|
|
%ifnarch %{ocaml_native_compiler}
|
2014-01-28 16:29:17 +00:00
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
|
2021-12-15 17:49:29 +00:00
|
|
|
|
%define libname cppo
|
|
|
|
|
|
2014-01-28 16:29:17 +00:00
|
|
|
|
Name: ocaml-cppo
|
2021-12-15 17:49:29 +00:00
|
|
|
|
Version: 1.6.8
|
2022-01-20 21:41:36 +00:00
|
|
|
|
Release: 2%{?dist}
|
2014-01-28 16:29:17 +00:00
|
|
|
|
Summary: Equivalent of the C preprocessor for OCaml programs
|
|
|
|
|
|
|
|
|
|
License: BSD
|
2021-12-15 17:49:29 +00:00
|
|
|
|
URL: https://ocaml-community.github.io/cppo/
|
|
|
|
|
Source0: https://github.com/ocaml-community/cppo/archive/v%{version}/%{libname}-%{version}.tar.gz
|
2019-04-29 17:26:39 +00:00
|
|
|
|
|
2021-12-15 17:49:29 +00:00
|
|
|
|
BuildRequires: ocaml >= 4.02.3
|
|
|
|
|
BuildRequires: ocaml-dune
|
2014-01-28 16:29:17 +00:00
|
|
|
|
BuildRequires: ocaml-findlib
|
2018-06-20 13:49:13 +00:00
|
|
|
|
BuildRequires: ocaml-ocamlbuild-devel
|
2014-01-28 16:29:17 +00:00
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
2021-12-15 17:49:29 +00:00
|
|
|
|
%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)`.
|
|
|
|
|
|
|
|
|
|
|
2014-01-28 16:29:17 +00:00
|
|
|
|
%prep
|
2021-12-15 17:49:29 +00:00
|
|
|
|
%autosetup -n %{libname}-%{version}
|
2014-01-28 16:29:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2021-12-15 17:49:29 +00:00
|
|
|
|
dune build %{?_smp_mflags} --verbose --profile release
|
2014-01-28 16:29:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2021-12-15 17:49:29 +00:00
|
|
|
|
dune install --destdir=%{buildroot}
|
|
|
|
|
|
|
|
|
|
# We do not want the ml files
|
|
|
|
|
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete
|
|
|
|
|
|
|
|
|
|
# We install the documentation with the doc macro
|
|
|
|
|
rm -fr %{buildroot}%{_prefix}/doc
|
2014-01-28 16:29:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2021-12-15 17:49:29 +00:00
|
|
|
|
dune runtest --profile release
|
2014-01-28 16:29:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2018-06-20 13:38:38 +00:00
|
|
|
|
%license LICENSE.md
|
|
|
|
|
%doc Changes README.md
|
2014-01-28 16:29:17 +00:00
|
|
|
|
%{_bindir}/cppo
|
2021-12-15 17:49:29 +00:00
|
|
|
|
%{_libdir}/ocaml/cppo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files ocamlbuild
|
|
|
|
|
%{_libdir}/ocaml/cppo_ocamlbuild/
|
2014-01-28 16:29:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-01-20 21:41:36 +00:00
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
2021-12-15 17:49:29 +00:00
|
|
|
|
* 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
|
|
|
|
|
|
2021-10-04 21:11:11 +00:00
|
|
|
|
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-14
|
|
|
|
|
- OCaml 4.13.1 build
|
|
|
|
|
|
2021-07-22 16:35:18 +00:00
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
2021-03-01 11:02:43 +00:00
|
|
|
|
* Mon Mar 1 11:02:42 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-12
|
|
|
|
|
- OCaml 4.12.0 build
|
|
|
|
|
|
2021-01-26 21:55:21 +00:00
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
2020-09-01 19:33:11 +00:00
|
|
|
|
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-10
|
|
|
|
|
- OCaml 4.11.1 rebuild
|
|
|
|
|
|
2020-08-21 11:23:23 +00:00
|
|
|
|
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-9
|
|
|
|
|
- OCaml 4.11.0 rebuild
|
|
|
|
|
|
2020-08-01 06:36:49 +00:00
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-8
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
2020-07-28 12:07:44 +00:00
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
2020-05-04 23:00:56 +00:00
|
|
|
|
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-6
|
|
|
|
|
- OCaml 4.11.0+dev2-2020-04-22 rebuild
|
|
|
|
|
|
2020-04-21 18:33:37 +00:00
|
|
|
|
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-5
|
|
|
|
|
- OCaml 4.11.0 pre-release attempt 2
|
|
|
|
|
|
2020-04-03 12:38:13 +00:00
|
|
|
|
* Fri Apr 03 2020 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-4
|
|
|
|
|
- Update all OCaml dependencies for RPM 4.16.
|
|
|
|
|
|
2020-02-26 14:17:13 +00:00
|
|
|
|
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-3
|
|
|
|
|
- OCaml 4.10.0 final.
|
|
|
|
|
|
2020-01-29 19:32:30 +00:00
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.6-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
2020-01-19 14:54:23 +00:00
|
|
|
|
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 1.6.6-1
|
|
|
|
|
- New upstream version 1.6.6.
|
|
|
|
|
- Change build system from jbuilder to dune.
|
|
|
|
|
- Remove patch for fix which is now upstream.
|
2020-01-19 14:47:50 +00:00
|
|
|
|
- OCaml 4.10.0+beta1 rebuild.
|
|
|
|
|
|
2019-12-06 12:04:28 +00:00
|
|
|
|
* Fri Dec 06 2019 Richard W.M. Jones <rjones@redhat.com> - 1.6.5-6
|
|
|
|
|
- OCaml 4.09.0 (final) rebuild.
|
|
|
|
|
|
2019-08-16 10:36:54 +00:00
|
|
|
|
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 1.6.5-5
|
|
|
|
|
- OCaml 4.08.1 (final) rebuild.
|
|
|
|
|
|
2019-07-31 16:36:04 +00:00
|
|
|
|
* Wed Jul 31 2019 Richard W.M. Jones <rjones@redhat.com> - 1.6.5-4
|
|
|
|
|
- OCaml 4.08.1 (rc2) rebuild.
|
|
|
|
|
|
2019-07-25 22:50:20 +00:00
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
2019-06-27 18:38:09 +00:00
|
|
|
|
* Thu Jun 27 2019 Richard W.M. Jones <rjones@redhat.com> - 1.6.5-2
|
|
|
|
|
- OCaml 4.08.0 (final) rebuild.
|
|
|
|
|
|
2019-04-29 17:26:39 +00:00
|
|
|
|
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 1.6.5-1
|
|
|
|
|
- New upstream version 1.6.5.
|
2019-04-29 17:10:40 +00:00
|
|
|
|
- OCaml 4.08.0 (beta 3) rebuild.
|
|
|
|
|
|
2019-02-01 16:47:55 +00:00
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
2018-07-13 14:41:59 +00:00
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
2018-07-11 12:44:48 +00:00
|
|
|
|
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 1.6.4-2
|
|
|
|
|
- OCaml 4.07.0 (final) rebuild.
|
|
|
|
|
|
2018-06-20 13:38:38 +00:00
|
|
|
|
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 1.6.4-1
|
|
|
|
|
- New upstream version 1.6.4.
|
|
|
|
|
|
2018-06-19 20:36:20 +00:00
|
|
|
|
* Tue Jun 19 2018 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-8
|
|
|
|
|
- OCaml 4.07.0-rc1 rebuild.
|
|
|
|
|
|
2018-02-08 08:47:49 +00:00
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
2017-11-07 22:41:29 +00:00
|
|
|
|
* Tue Nov 07 2017 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-6
|
|
|
|
|
- OCaml 4.06.0 rebuild.
|
|
|
|
|
|
2017-08-07 17:22:31 +00:00
|
|
|
|
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-5
|
|
|
|
|
- OCaml 4.05.0 rebuild.
|
|
|
|
|
|
2017-08-03 04:14:28 +00:00
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
2017-07-27 01:26:59 +00:00
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
2017-06-26 16:15:34 +00:00
|
|
|
|
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-2
|
|
|
|
|
- OCaml 4.04.2 rebuild.
|
|
|
|
|
|
2017-05-11 07:45:16 +00:00
|
|
|
|
* Thu May 11 2017 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-1
|
|
|
|
|
- New upstream version 1.5.0 (for OCaml 4.04.1).
|
|
|
|
|
|
2017-02-11 00:30:23 +00:00
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
2016-11-05 14:23:46 +00:00
|
|
|
|
* Sat Nov 05 2016 Richard W.M. Jones <rjones@redhat.com> - 1.4.0-1
|
|
|
|
|
- New upstream version 1.4.0.
|
|
|
|
|
- Fix download source URL.
|
|
|
|
|
|
2016-02-04 11:05:47 +00:00
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
2015-07-28 15:59:55 +00:00
|
|
|
|
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 1.1.2-2
|
|
|
|
|
- OCaml 4.02.3 rebuild.
|
|
|
|
|
|
2015-07-24 14:52:41 +00:00
|
|
|
|
* Fri Jul 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.1.2-1
|
|
|
|
|
- New upstream release 1.1.2.
|
|
|
|
|
|
2015-06-24 19:13:04 +00:00
|
|
|
|
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-4
|
|
|
|
|
- ocaml-4.02.2 final rebuild.
|
|
|
|
|
|
2015-06-17 19:05:58 +00:00
|
|
|
|
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-3
|
|
|
|
|
- ocaml-4.02.2 rebuild.
|
|
|
|
|
|
2015-02-17 09:35:10 +00:00
|
|
|
|
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-2
|
|
|
|
|
- ocaml-4.02.1 rebuild.
|
|
|
|
|
|
2014-11-03 06:49:40 +00:00
|
|
|
|
* Mon Nov 3 2014 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.0.1-1
|
2014-11-03 06:34:33 +00:00
|
|
|
|
- Update to 1.0.1
|
|
|
|
|
|
2014-08-30 20:01:01 +00:00
|
|
|
|
* Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 0.9.3-9
|
|
|
|
|
- ocaml-4.02.0 final rebuild.
|
|
|
|
|
|
2014-08-23 17:47:34 +00:00
|
|
|
|
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 0.9.3-8
|
|
|
|
|
- ocaml-4.02.0+rc1 rebuild.
|
|
|
|
|
|
2014-08-17 12:47:54 +00:00
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
2014-08-02 08:06:29 +00:00
|
|
|
|
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 0.9.3-6
|
|
|
|
|
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
|
|
|
|
|
|
2014-07-28 10:07:22 +00:00
|
|
|
|
* Mon Jul 28 2014 Richard W.M. Jones <rjones@redhat.com> - 0.9.3-5
|
|
|
|
|
- Rebuild for OCaml 4.02.0 beta.
|
|
|
|
|
|
2014-06-07 15:33:51 +00:00
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
2014-04-24 14:08:56 +00:00
|
|
|
|
* Thu Apr 24 2014 Jaromir Capik <jcapik@redhat.com> - 0.9.3-3
|
|
|
|
|
- Removing ExclusiveArch
|
|
|
|
|
|
2014-01-28 16:29:17 +00:00
|
|
|
|
* Mon Jan 27 2014 Michel Salim <salimma@fedoraproject.org> - 0.9.3-2
|
|
|
|
|
- Incorporate review feedback
|
|
|
|
|
|
|
|
|
|
* Mon Jan 20 2014 Michel Salim <salimma@fedoraproject.org> - 0.9.3-1
|
|
|
|
|
- Initial package
|