|
|
@ -1,26 +1,26 @@
|
|
|
|
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
|
|
|
|
%undefine _package_note_flags
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
|
|
|
|
|
|
|
|
Name: ocaml-augeas
|
|
|
|
Name: ocaml-augeas
|
|
|
|
Version: 0.6
|
|
|
|
Version: 0.6
|
|
|
|
Release: 37%{?dist}
|
|
|
|
Release: 23%{?dist}
|
|
|
|
Summary: OCaml bindings for Augeas configuration API
|
|
|
|
Summary: OCaml bindings for Augeas configuration API
|
|
|
|
License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
|
|
|
|
License: LGPLv2+ with exceptions
|
|
|
|
|
|
|
|
|
|
|
|
URL: https://people.redhat.com/~rjones/augeas/files/
|
|
|
|
URL: http://people.redhat.com/~rjones/augeas/files/
|
|
|
|
Source0: https://people.redhat.com/~rjones/augeas/files/%{name}-%{version}.tar.gz
|
|
|
|
Source0: http://people.redhat.com/~rjones/augeas/files/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream patch to enable debuginfo.
|
|
|
|
# Upstream patch to enable debuginfo.
|
|
|
|
Patch1: 0001-Use-ocamlopt-g-option.patch
|
|
|
|
Patch1: 0001-Use-ocamlopt-g-option.patch
|
|
|
|
# Const-correctness fix for OCaml 4.09+
|
|
|
|
# Const-correctness fix for OCaml 4.09+
|
|
|
|
Patch2: 0002-caml_named_value-returns-const-value-pointer-in-OCam.patch
|
|
|
|
Patch2: 0002-caml_named_value-returns-const-value-pointer-in-OCam.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: ocaml >= 3.09.0
|
|
|
|
BuildRequires: ocaml >= 3.09.0
|
|
|
|
BuildRequires: ocaml-findlib
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRequires: ocaml-rpm-macros
|
|
|
|
|
|
|
|
BuildRequires: augeas-devel >= 0.1.0
|
|
|
|
BuildRequires: augeas-devel >= 0.1.0
|
|
|
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@ -30,7 +30,7 @@ files. This provides complete OCaml bindings for Augeas.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
@ -41,13 +41,10 @@ developing applications that use %{name}.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
# Pass -g to ocamlmklib
|
|
|
|
|
|
|
|
sed -i 's/ocamlmklib/& -g/' Makefile.in
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
%configure
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%if %opt
|
|
|
|
make
|
|
|
|
make
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
make mlaugeas.cma test_augeas
|
|
|
|
make mlaugeas.cma test_augeas
|
|
|
@ -67,66 +64,39 @@ mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|
|
|
# The upstream 'make install' rule is missing '*.so' and distributes
|
|
|
|
# The upstream 'make install' rule is missing '*.so' and distributes
|
|
|
|
# '*.cmi' instead of just the augeas.cmi file. Temporary fix:
|
|
|
|
# '*.cmi' instead of just the augeas.cmi file. Temporary fix:
|
|
|
|
#make install
|
|
|
|
#make install
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
%if %opt
|
|
|
|
ocamlfind install augeas META *.mli *.cmx *.cma *.cmxa *.a augeas.cmi *.so
|
|
|
|
ocamlfind install augeas META *.mli *.cmx *.cma *.cmxa *.a augeas.cmi *.so
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
ocamlfind install augeas META *.mli *.cma *.a augeas.cmi *.so
|
|
|
|
ocamlfind install augeas META *.mli *.cma *.a augeas.cmi *.so
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%ocaml_files
|
|
|
|
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f .ofiles
|
|
|
|
%files
|
|
|
|
%license COPYING.LIB
|
|
|
|
%doc COPYING.LIB
|
|
|
|
|
|
|
|
%{_libdir}/ocaml/augeas
|
|
|
|
|
|
|
|
%if %opt
|
|
|
|
|
|
|
|
%exclude %{_libdir}/ocaml/augeas/*.a
|
|
|
|
|
|
|
|
%exclude %{_libdir}/ocaml/augeas/*.cmxa
|
|
|
|
|
|
|
|
%exclude %{_libdir}/ocaml/augeas/*.cmx
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%exclude %{_libdir}/ocaml/augeas/*.mli
|
|
|
|
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so
|
|
|
|
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so.owner
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel -f .ofiles-devel
|
|
|
|
%files devel
|
|
|
|
%doc html
|
|
|
|
%doc html
|
|
|
|
|
|
|
|
%if %opt
|
|
|
|
|
|
|
|
%{_libdir}/ocaml/augeas/*.a
|
|
|
|
|
|
|
|
%{_libdir}/ocaml/augeas/*.cmxa
|
|
|
|
|
|
|
|
%{_libdir}/ocaml/augeas/*.cmx
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{_libdir}/ocaml/augeas/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Oct 30 2024 Troy Dawson <tdawson@redhat.com> - 0.6-37
|
|
|
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 25 2024 Troy Dawson <tdawson@redhat.com> - 0.6-36
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 19 2024 Richard W.M. Jones <rjones@redhat.com> - 0.6-35
|
|
|
|
|
|
|
|
- OCaml 5.2.0 ppc64le fix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 29 2024 Richard W.M. Jones <rjones@redhat.com> - 0.6-34
|
|
|
|
|
|
|
|
- OCaml 5.2.0 for Fedora 41
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Apr 08 2024 Richard W.M. Jones <rjones@redhat.com> - 0.6-33
|
|
|
|
|
|
|
|
- No change, just bump release.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-31
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-30
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6-29
|
|
|
|
|
|
|
|
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6-28
|
|
|
|
|
|
|
|
- OCaml 5.1.1 rebuild for Fedora 40
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6-27
|
|
|
|
|
|
|
|
- OCaml 5.1 rebuild for Fedora 40
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-26
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6-25
|
|
|
|
|
|
|
|
- OCaml 5.0 rebuild for Fedora 39
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 0.6-24
|
|
|
|
|
|
|
|
- OCaml 5.0.0 rebuild
|
|
|
|
|
|
|
|
- Convert License tag to SPDX
|
|
|
|
|
|
|
|
- Use new OCaml macros
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6-23
|
|
|
|
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 0.6-23
|
|
|
|
- Rebuild OCaml packages for F38
|
|
|
|
- Rebuild OCaml packages for F38
|
|
|
|
|
|
|
|
|
|
|
|