OCaml 5.0.0 rebuild
Other changes: - Convert License tag to SPDX - Use new OCaml macros
This commit is contained in:
parent
71e8ea0fe2
commit
2ecf9d003c
@ -1,14 +1,11 @@
|
|||||||
%undefine _package_note_flags
|
|
||||||
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
||||||
|
|
||||||
Name: ocaml-augeas
|
Name: ocaml-augeas
|
||||||
Version: 0.6
|
Version: 0.6
|
||||||
Release: 23%{?dist}
|
Release: 24%{?dist}
|
||||||
Summary: OCaml bindings for Augeas configuration API
|
Summary: OCaml bindings for Augeas configuration API
|
||||||
License: LGPLv2+ with exceptions
|
License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
|
||||||
|
|
||||||
URL: http://people.redhat.com/~rjones/augeas/files/
|
URL: https://people.redhat.com/~rjones/augeas/files/
|
||||||
Source0: http://people.redhat.com/~rjones/augeas/files/%{name}-%{version}.tar.gz
|
Source0: https://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
|
||||||
@ -17,10 +14,10 @@ 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-devel
|
BuildRequires: ocaml-findlib
|
||||||
BuildRequires: ocaml-ocamldoc
|
BuildRequires: ocaml-ocamldoc
|
||||||
BuildRequires: augeas-devel >= 0.1.0
|
BuildRequires: augeas-devel >= 0.1.0
|
||||||
BuildRequires: chrpath
|
BuildRequires: python3
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -30,7 +27,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} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -41,10 +38,13 @@ 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
|
||||||
%if %opt
|
%ifarch %{ocaml_native_compiler}
|
||||||
make
|
make
|
||||||
%else
|
%else
|
||||||
make mlaugeas.cma test_augeas
|
make mlaugeas.cma test_augeas
|
||||||
@ -64,39 +64,29 @@ 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
|
||||||
%if %opt
|
%ifarch %{ocaml_native_compiler}
|
||||||
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
|
||||||
|
|
||||||
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
%ocaml_files
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files -f .ofiles
|
||||||
%doc COPYING.LIB
|
%license 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
|
%files devel -f .ofiles-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
|
||||||
|
* 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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user