Version 0.14.2

Other changes:
- Convert License tag to SPDX
- Change license for the doc subpackage to CC0
- Make the doc subpackage noarch
- Fold the devel subpackage into the main package
- Ship the manual as HTML instead of asciidoc source
- Use new OCaml macros
This commit is contained in:
Jerry James 2023-07-10 14:17:55 -06:00
parent c6be3c1c19
commit 636edcf283
3 changed files with 39 additions and 50 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/ocaml-ocamlbuild-0.11.0.tar.gz /ocaml-ocamlbuild-0.11.0.tar.gz
/ocaml-ocamlbuild-0.12.0.tar.gz /ocaml-ocamlbuild-0.12.0.tar.gz
/ocaml-ocamlbuild-0.14.0.tar.gz /ocaml-ocamlbuild-0.14.0.tar.gz
/ocamlbuild-0.14.2.tar.gz

View File

@ -1,39 +1,43 @@
%undefine _package_note_flags # NOTE: there is no devel subpackage because the main package *IS* a devel
# package.
%ifnarch %{ocaml_native_compiler} %ifnarch %{ocaml_native_compiler}
%global debug_package %{nil} %global debug_package %{nil}
%endif %endif
Name: ocaml-ocamlbuild Name: ocaml-ocamlbuild
Version: 0.14.0 Version: 0.14.2
Release: 36%{?dist} Release: 1%{?dist}
Summary: Build tool for OCaml libraries and programs Summary: Build tool for OCaml libraries and programs
License: LGPLv2 with exceptions License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
URL: https://github.com/ocaml/ocamlbuild URL: https://github.com/ocaml/ocamlbuild
Source0: https://github.com/ocaml/ocamlbuild/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: %{url}/archive/%{version}/ocamlbuild-%{version}.tar.gz
BuildRequires: make BuildRequires: make
BuildRequires: ocaml >= 4.04.0 BuildRequires: ocaml >= 4.04.0
BuildRequires: ncurses
BuildRequires: asciidoc
BuildRequires: python3-pygments
# Ocamlbuild can invoke tput; see src/display.ml
Requires: ncurses
# This can be removed when F42 reaches EOL
Obsoletes: %{name}-devel < 0.14.0-37
Provides: %{name}-devel = %{version}-%{release}
%description %description
OCamlbuild is a build tool for building OCaml libraries and programs. OCamlbuild is a build tool for building OCaml libraries and programs.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains development files for %{name}.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} License: CC0
BuildArch: noarch
%description doc %description doc
@ -41,7 +45,7 @@ This package contains the manual for %{name}.
%prep %prep
%setup -q -n ocamlbuild-%{version} %autosetup -n ocamlbuild-%{version}
%build %build
@ -68,11 +72,12 @@ make \
OCAMLOPT="ocamlopt -g" OCAMLOPT="ocamlopt -g"
%endif %endif
# Build the manual
asciidoc manual/manual.adoc
%install %install
make install \ %make_install CHECK_IF_PREINSTALLED=false
DESTDIR=$RPM_BUILD_ROOT \
CHECK_IF_PREINSTALLED=false
# The install copies ocamlbuild & ocamlbuild.{byte or native}. # The install copies ocamlbuild & ocamlbuild.{byte or native}.
# Symlink them instead. # Symlink them instead.
@ -84,46 +89,29 @@ ln -sf ocamlbuild.byte ocamlbuild
%endif %endif
popd popd
# Remove the META file. It will be replaced by ocaml-ocamlfind (findlib). %ocaml_files -n
rm $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlbuild/META
%files %files -f .ofiles
%doc Changes Readme.md VERSION %doc Changes Readme.md VERSION
%license LICENSE %license LICENSE
%{_bindir}/ocamlbuild
%{_bindir}/ocamlbuild.byte
%ifarch %{ocaml_native_compiler}
%{_bindir}/ocamlbuild.native
%endif
%{_mandir}/man1/ocamlbuild.1*
%{_libdir}/ocaml/ocamlbuild
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/ocamlbuild/*.a
%exclude %{_libdir}/ocaml/ocamlbuild/*.o
%exclude %{_libdir}/ocaml/ocamlbuild/*.cmx
%exclude %{_libdir}/ocaml/ocamlbuild/*.cmxa
%endif
%exclude %{_libdir}/ocaml/ocamlbuild/*.mli
%files devel
%license LICENSE
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/ocamlbuild/*.a
%{_libdir}/ocaml/ocamlbuild/*.o
%{_libdir}/ocaml/ocamlbuild/*.cmx
%{_libdir}/ocaml/ocamlbuild/*.cmxa
%endif
%{_libdir}/ocaml/ocamlbuild/*.mli
%files doc %files doc
%license LICENSE %license manual/LICENSE
%doc manual/* %doc manual/manual.html
%changelog %changelog
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 0.14.2-1
- Version 0.14.2
- Convert License tag to SPDX
- Change license for the doc subpackage to CC0
- Make the doc subpackage noarch
- Fold the devel subpackage into the main package
- Ship the manual as HTML instead of asciidoc source
- Use new OCaml macros
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-36 * Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 0.14.0-36
- Rebuild OCaml packages for F38 - Rebuild OCaml packages for F38

View File

@ -1 +1 @@
SHA512 (ocaml-ocamlbuild-0.14.0.tar.gz) = ae60247396399dfd35644c8c1986ef7679e5a9964df82e3388bfc6dd4c5b88a13d6869a698d14a9ac70dc48e4ce1c003f543c85426d8c862ca31dea37a554b07 SHA512 (ocamlbuild-0.14.2.tar.gz) = f568bf10431a1f701e8bd7554dc662400a0d978411038bbad93d44dceab02874490a8a5886a9b44e017347e7949997f13f5c3752f74e1eb5e273d2beb19a75fd