Fix the Source0 URL
- chrpath is no longer needed - Use the %license macro - Build the test binaries so the tests will run
This commit is contained in:
parent
37422916a0
commit
3eca5f5ac7
47
ocaml.spec
47
ocaml.spec
@ -40,9 +40,9 @@ Summary: OCaml compiler and programming environment
|
|||||||
|
|
||||||
License: QPL and (LGPLv2+ with exceptions)
|
License: QPL and (LGPLv2+ with exceptions)
|
||||||
|
|
||||||
URL: http://www.ocaml.org
|
URL: https://www.ocaml.org
|
||||||
|
|
||||||
Source0: https://github.com/ocaml/ocaml/archive/%%{version}.tar.gz
|
Source0: https://github.com/ocaml/ocaml/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
# IMPORTANT NOTE:
|
# IMPORTANT NOTE:
|
||||||
#
|
#
|
||||||
@ -75,7 +75,6 @@ BuildRequires: gawk
|
|||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: util-linux
|
BuildRequires: util-linux
|
||||||
BuildRequires: /usr/bin/annocheck
|
BuildRequires: /usr/bin/annocheck
|
||||||
BuildRequires: chrpath
|
|
||||||
|
|
||||||
# ocamlopt runs gcc to link binaries. Because Fedora includes
|
# ocamlopt runs gcc to link binaries. Because Fedora includes
|
||||||
# hardening flags automatically, redhat-rpm-config is also required.
|
# hardening flags automatically, redhat-rpm-config is also required.
|
||||||
@ -85,9 +84,9 @@ Requires: redhat-rpm-config
|
|||||||
# Because we pass -c flag to ocaml-find-requires (to avoid circular
|
# Because we pass -c flag to ocaml-find-requires (to avoid circular
|
||||||
# dependencies) we also have to explicitly depend on the right version
|
# dependencies) we also have to explicitly depend on the right version
|
||||||
# of ocaml-runtime.
|
# of ocaml-runtime.
|
||||||
Requires: ocaml-runtime = %{version}-%{release}
|
Requires: ocaml-runtime%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
# Bundles an MD5 implementation in byterun/md5.{c,h}
|
# Bundles an MD5 implementation in runtime/caml/md5.h and runtime/md5.c
|
||||||
Provides: bundled(md5-plumb)
|
Provides: bundled(md5-plumb)
|
||||||
|
|
||||||
Provides: ocaml(compiler) = %{version}
|
Provides: ocaml(compiler) = %{version}
|
||||||
@ -121,7 +120,7 @@ bytecode.
|
|||||||
|
|
||||||
%package source
|
%package source
|
||||||
Summary: Source code for OCaml libraries
|
Summary: Source code for OCaml libraries
|
||||||
Requires: ocaml = %{version}-%{release}
|
Requires: ocaml%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description source
|
%description source
|
||||||
Source code for OCaml libraries.
|
Source code for OCaml libraries.
|
||||||
@ -129,8 +128,8 @@ Source code for OCaml libraries.
|
|||||||
|
|
||||||
%package ocamldoc
|
%package ocamldoc
|
||||||
Summary: Documentation generator for OCaml
|
Summary: Documentation generator for OCaml
|
||||||
Requires: ocaml = %{version}-%{release}
|
Requires: ocaml%{?_isa} = %{version}-%{release}
|
||||||
Provides: ocamldoc
|
Provides: ocamldoc = %{version}
|
||||||
|
|
||||||
%description ocamldoc
|
%description ocamldoc
|
||||||
Documentation generator for OCaml.
|
Documentation generator for OCaml.
|
||||||
@ -150,7 +149,7 @@ This package contains man pages.
|
|||||||
|
|
||||||
%package compiler-libs
|
%package compiler-libs
|
||||||
Summary: Compiler libraries for OCaml
|
Summary: Compiler libraries for OCaml
|
||||||
Requires: ocaml = %{version}-%{release}
|
Requires: ocaml%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
%description compiler-libs
|
%description compiler-libs
|
||||||
@ -211,12 +210,14 @@ annocheck -v hello ||:
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch %{test_arches}
|
%ifarch %{test_arches}
|
||||||
cd testsuite
|
make ocamltest
|
||||||
|
%ifarch %{ocaml_native_compiler}
|
||||||
|
make ocamltest.opt
|
||||||
|
%endif
|
||||||
%ifarch %{test_arches_required}
|
%ifarch %{test_arches_required}
|
||||||
make -j1 all
|
make -j1 tests
|
||||||
%else
|
%else
|
||||||
make -j1 all ||:
|
make -j1 tests ||:
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -227,9 +228,6 @@ perl -pi -e "s|^$RPM_BUILD_ROOT||" $RPM_BUILD_ROOT%{_libdir}/ocaml/ld.conf
|
|||||||
|
|
||||||
echo %{version} > $RPM_BUILD_ROOT%{_libdir}/ocaml/fedora-ocaml-release
|
echo %{version} > $RPM_BUILD_ROOT%{_libdir}/ocaml/fedora-ocaml-release
|
||||||
|
|
||||||
# Remove rpaths from stublibs .so files.
|
|
||||||
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.so
|
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT -name .ignore -delete
|
find $RPM_BUILD_ROOT -name .ignore -delete
|
||||||
|
|
||||||
# Remove this file. It's only created in certain situations and it's
|
# Remove this file. It's only created in certain situations and it's
|
||||||
@ -238,7 +236,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
|
|||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/ocaml
|
%{_bindir}/ocaml
|
||||||
|
|
||||||
%{_bindir}/ocamlcmt
|
%{_bindir}/ocamlcmt
|
||||||
@ -319,7 +317,8 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
|
|||||||
|
|
||||||
|
|
||||||
%files runtime
|
%files runtime
|
||||||
%doc README.adoc LICENSE Changes
|
%doc README.adoc Changes
|
||||||
|
%license LICENSE
|
||||||
%{_bindir}/ocamlrun
|
%{_bindir}/ocamlrun
|
||||||
%{_bindir}/ocamlrund
|
%{_bindir}/ocamlrund
|
||||||
%{_bindir}/ocamlruni
|
%{_bindir}/ocamlruni
|
||||||
@ -338,14 +337,14 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
|
|||||||
|
|
||||||
|
|
||||||
%files source
|
%files source
|
||||||
%doc LICENSE
|
%license LICENSE
|
||||||
%{_libdir}/ocaml/*.ml
|
%{_libdir}/ocaml/*.ml
|
||||||
%{_libdir}/ocaml/*.cmt*
|
%{_libdir}/ocaml/*.cmt*
|
||||||
%{_libdir}/ocaml/*/*.cmt*
|
%{_libdir}/ocaml/*/*.cmt*
|
||||||
|
|
||||||
|
|
||||||
%files ocamldoc
|
%files ocamldoc
|
||||||
%doc LICENSE
|
%license LICENSE
|
||||||
%doc ocamldoc/Changes.txt
|
%doc ocamldoc/Changes.txt
|
||||||
%{_bindir}/ocamldoc*
|
%{_bindir}/ocamldoc*
|
||||||
%{_libdir}/ocaml/ocamldoc
|
%{_libdir}/ocaml/ocamldoc
|
||||||
@ -357,7 +356,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
|
|||||||
|
|
||||||
|
|
||||||
%files compiler-libs
|
%files compiler-libs
|
||||||
%doc LICENSE
|
%license LICENSE
|
||||||
%dir %{_libdir}/ocaml/compiler-libs
|
%dir %{_libdir}/ocaml/compiler-libs
|
||||||
%{_libdir}/ocaml/compiler-libs/*.mli
|
%{_libdir}/ocaml/compiler-libs/*.mli
|
||||||
%{_libdir}/ocaml/compiler-libs/*.cmi
|
%{_libdir}/ocaml/compiler-libs/*.cmi
|
||||||
@ -372,6 +371,12 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 9 2022 Jerry James <loganjerry@gmail.com> - 4.13.1-4
|
||||||
|
- Fix the Source0 URL
|
||||||
|
- chrpath is no longer needed
|
||||||
|
- Use the %%license macro
|
||||||
|
- Build the test binaries so the tests will run
|
||||||
|
|
||||||
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 4.13.1-4
|
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 4.13.1-4
|
||||||
- Rebuild 4.13.1 to remove package notes
|
- Rebuild 4.13.1 to remove package notes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user