diff --git a/ocaml-cppo.spec b/ocaml-cppo.spec index bac471c..c051646 100644 --- a/ocaml-cppo.spec +++ b/ocaml-cppo.spec @@ -1,23 +1,16 @@ -%undefine _package_note_flags -%ifnarch %{ocaml_native_compiler} -%global debug_package %{nil} -%endif - -%define libname cppo - Name: ocaml-cppo -Version: 1.6.8 -Release: 7%{?dist} +Version: 1.6.9 +Release: 1%{?dist} Summary: Equivalent of the C preprocessor for OCaml programs -License: BSD +License: BSD-3-Clause URL: https://ocaml-community.github.io/cppo/ -Source0: https://github.com/ocaml-community/cppo/archive/v%{version}/%{libname}-%{version}.tar.gz +Source0: https://github.com/ocaml-community/cppo/archive/v%{version}/cppo-%{version}.tar.gz BuildRequires: ocaml >= 4.02.3 BuildRequires: ocaml-dune BuildRequires: ocaml-findlib -BuildRequires: ocaml-ocamlbuild-devel +BuildRequires: ocaml-ocamlbuild %description Cppo is an equivalent of the C preprocessor targeted at the OCaml @@ -48,30 +41,24 @@ at build time. To use it, call ocamlbuild with the argument %prep -%autosetup -n %{libname}-%{version} +%autosetup -n cppo-%{version} %build -dune build %{?_smp_mflags} --verbose --profile release +%dune_build %install -dune install --destdir=%{buildroot} - -# We do not want the ml files -find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete - -# We install the documentation with the doc macro -rm -fr %{buildroot}%{_prefix}/doc +%dune_install %check -dune runtest --profile release +%dune_check %files %license LICENSE.md -%doc Changes README.md +%doc Changes.md README.md %{_bindir}/cppo %{_libdir}/ocaml/cppo @@ -81,6 +68,11 @@ dune runtest --profile release %changelog +* Mon Jul 10 2023 Jerry James - 1.6.9-1 +- Version 1.6.9 +- Convert License tag to SPDX +- Use new dune macros + * Tue Jan 24 2023 Richard W.M. Jones - 1.6.8-7 - Rebuild OCaml packages for F38 diff --git a/sources b/sources index 6e98a3e..6a84546 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cppo-1.6.8.tar.gz) = 069bbe0ef09c03b0dc4b5795f909c3ef872fe99c6f1e6704a0fa97594b1570b3579226ec67fe11d696ccc349a4585055bbaf07c65eff423aa45af28abf38c858 +SHA512 (cppo-1.6.9.tar.gz) = 26ff5a7b7f38c460661974b23ca190f0feae3a99f1974e0fd12ccf08745bd7d91b7bc168c70a5385b837bfff9530e0e4e41cf269f23dd8cf16ca658008244b44