|
|
009cf2 |
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
009cf2 |
%if !%{opt}
|
|
|
009cf2 |
%global debug_package %{nil}
|
|
|
009cf2 |
%endif
|
|
|
009cf2 |
|
|
|
009cf2 |
Name: ocaml-cppo
|
|
|
009cf2 |
Version: 1.6.4
|
|
|
009cf2 |
Release: 4%{?dist}
|
|
|
009cf2 |
Summary: Equivalent of the C preprocessor for OCaml programs
|
|
|
009cf2 |
|
|
|
009cf2 |
License: BSD
|
|
|
009cf2 |
URL: http://mjambon.com/cppo.html
|
|
|
009cf2 |
Source0: https://github.com/mjambon/cppo/archive/v%{version}.tar.gz
|
|
|
009cf2 |
|
|
|
009cf2 |
BuildRequires: ocaml >= 3.10.0
|
|
|
009cf2 |
BuildRequires: ocaml-findlib
|
|
|
009cf2 |
%if !%{opt}
|
|
|
009cf2 |
Requires: ocaml >= 3.10.0
|
|
|
009cf2 |
%endif
|
|
|
009cf2 |
BuildRequires: ocaml-ocamlbuild-devel
|
|
|
009cf2 |
#BuildRequires: jbuilder
|
|
|
009cf2 |
|
|
|
009cf2 |
%define libname %(sed -e 's/^ocaml-//' <<< %{name})
|
|
|
009cf2 |
|
|
|
009cf2 |
%description
|
|
|
009cf2 |
Cppo is an equivalent of the C preprocessor targeted at the OCaml
|
|
|
009cf2 |
language and its variants.
|
|
|
009cf2 |
|
|
|
009cf2 |
The main purpose of cppo is to provide a lightweight tool for simple
|
|
|
009cf2 |
macro substitution (#define) and file inclusion (#include) for the
|
|
|
009cf2 |
occasional case when this is useful in OCaml. Processing specific
|
|
|
009cf2 |
sections of files by calling external programs is also possible via
|
|
|
009cf2 |
#ext directives.
|
|
|
009cf2 |
|
|
|
009cf2 |
The implementation of cppo relies on the standard library of OCaml and
|
|
|
009cf2 |
on the standard parsing tools Ocamllex and Ocamlyacc, which contribute
|
|
|
009cf2 |
to the robustness of cppo across OCaml versions.
|
|
|
009cf2 |
|
|
|
009cf2 |
|
|
|
009cf2 |
%prep
|
|
|
009cf2 |
%setup -q -n %{libname}-%{version}
|
|
|
009cf2 |
|
|
|
009cf2 |
|
|
|
009cf2 |
%build
|
|
|
009cf2 |
# As we don't have jbuild on RHEL, just build the sources by hand.
|
|
|
009cf2 |
pushd src
|
|
|
009cf2 |
ocamllex cppo_lexer.mll
|
|
|
009cf2 |
ocamlyacc cppo_parser.mly
|
|
|
009cf2 |
echo 'let cppo_version = "v%{version}"' > cppo_version.ml
|
|
|
009cf2 |
ocamlfind opt -g -package str,unix cppo_version.mli cppo_version.ml cppo_types.mli cppo_types.ml cppo_parser.mli cppo_parser.ml cppo_lexer.ml cppo_command.mli cppo_command.ml cppo_eval.mli cppo_eval.ml cppo_main.ml -linkpkg -o cppo
|
|
|
009cf2 |
popd
|
|
|
009cf2 |
|
|
|
009cf2 |
%install
|
|
|
009cf2 |
%{__install} -d $RPM_BUILD_ROOT%{_bindir}
|
|
|
009cf2 |
%{__install} -p src/cppo $RPM_BUILD_ROOT%{_bindir}/
|
|
|
009cf2 |
|
|
|
009cf2 |
|
|
|
009cf2 |
#%check
|
|
|
009cf2 |
#%ifnarch %{arm} %{power64}
|
|
|
009cf2 |
## Fails on armv7hl and ppc64le with:
|
|
|
009cf2 |
## Error: math error
|
|
|
009cf2 |
#make test
|
|
|
009cf2 |
#%endif
|
|
|
009cf2 |
|
|
|
009cf2 |
|
|
|
009cf2 |
%files
|
|
|
009cf2 |
%license LICENSE.md
|
|
|
009cf2 |
%doc Changes README.md
|
|
|
009cf2 |
%{_bindir}/cppo
|
|
|
009cf2 |
|
|
|
009cf2 |
|
|
|
009cf2 |
%changelog
|
|
|
009cf2 |
* Mon Jul 16 2018 Richard W.M. Jones <rjones@redhat.com> - 1.6.4-4
|
|
|
009cf2 |
- RHEL 8: Remove jbuilder dependency.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-3
|
|
|
009cf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
009cf2 |
|
|
|
009cf2 |
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 1.6.4-2
|
|
|
009cf2 |
- OCaml 4.07.0 (final) rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 1.6.4-1
|
|
|
009cf2 |
- New upstream version 1.6.4.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Tue Jun 19 2018 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-8
|
|
|
009cf2 |
- OCaml 4.07.0-rc1 rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-7
|
|
|
009cf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
009cf2 |
|
|
|
009cf2 |
* Tue Nov 07 2017 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-6
|
|
|
009cf2 |
- OCaml 4.06.0 rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-5
|
|
|
009cf2 |
- OCaml 4.05.0 rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
|
|
|
009cf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
009cf2 |
|
|
|
009cf2 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
|
|
|
009cf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
009cf2 |
|
|
|
009cf2 |
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-2
|
|
|
009cf2 |
- OCaml 4.04.2 rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Thu May 11 2017 Richard W.M. Jones <rjones@redhat.com> - 1.5.0-1
|
|
|
009cf2 |
- New upstream version 1.5.0 (for OCaml 4.04.1).
|
|
|
009cf2 |
|
|
|
009cf2 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
|
|
|
009cf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
009cf2 |
|
|
|
009cf2 |
* Sat Nov 05 2016 Richard W.M. Jones <rjones@redhat.com> - 1.4.0-1
|
|
|
009cf2 |
- New upstream version 1.4.0.
|
|
|
009cf2 |
- Fix download source URL.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-3
|
|
|
009cf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
009cf2 |
|
|
|
009cf2 |
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 1.1.2-2
|
|
|
009cf2 |
- OCaml 4.02.3 rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Fri Jul 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.1.2-1
|
|
|
009cf2 |
- New upstream release 1.1.2.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-4
|
|
|
009cf2 |
- ocaml-4.02.2 final rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-3
|
|
|
009cf2 |
- ocaml-4.02.2 rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-2
|
|
|
009cf2 |
- ocaml-4.02.1 rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Mon Nov 3 2014 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.0.1-1
|
|
|
009cf2 |
- Update to 1.0.1
|
|
|
009cf2 |
|
|
|
009cf2 |
* Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 0.9.3-9
|
|
|
009cf2 |
- ocaml-4.02.0 final rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 0.9.3-8
|
|
|
009cf2 |
- ocaml-4.02.0+rc1 rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-7
|
|
|
009cf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
009cf2 |
|
|
|
009cf2 |
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 0.9.3-6
|
|
|
009cf2 |
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Mon Jul 28 2014 Richard W.M. Jones <rjones@redhat.com> - 0.9.3-5
|
|
|
009cf2 |
- Rebuild for OCaml 4.02.0 beta.
|
|
|
009cf2 |
|
|
|
009cf2 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-4
|
|
|
009cf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
009cf2 |
|
|
|
009cf2 |
* Thu Apr 24 2014 Jaromir Capik <jcapik@redhat.com> - 0.9.3-3
|
|
|
009cf2 |
- Removing ExclusiveArch
|
|
|
009cf2 |
|
|
|
009cf2 |
* Mon Jan 27 2014 Michel Salim <salimma@fedoraproject.org> - 0.9.3-2
|
|
|
009cf2 |
- Incorporate review feedback
|
|
|
009cf2 |
|
|
|
009cf2 |
* Mon Jan 20 2014 Michel Salim <salimma@fedoraproject.org> - 0.9.3-1
|
|
|
009cf2 |
- Initial package
|