## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 8; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %ifnarch %{ocaml_native_compiler} %global debug_package %{nil} %endif Name: ocaml-camlp5-buildscripts Version: 0.03 Release: %autorelease Summary: Sysadmin scripts for camlp5 projects License: MIT URL: https://github.com/camlp5/camlp5-buildscripts Source0: %{url}/archive/%{version}/camlp5-buildscripts-%{version}.tar.gz # OCaml packages not built on i686 since OCaml 5 / Fedora 39. ExcludeArch: %{ix86} BuildRequires: asciidoc BuildRequires: make BuildRequires: not-ocamlfind >= 0.01 BuildRequires: ocaml >= 4.10.0 BuildRequires: ocaml-bos-devel >= 0.2.1 BuildRequires: ocaml-cppo BuildRequires: ocaml-fmt-devel BuildRequires: ocaml-mdx-devel >= 2.2.1 BuildRequires: ocaml-re-devel >= 1.10.4 %description Sysadmin scripts written in OCaml (and Perl precursors), for use with Camlp5 and Camlp5-based projects. These scripts allow removing a dependency on Perl for such projects. %prep %autosetup -n camlp5-buildscripts-%{version} # Build native executables when possible %ifarch %{ocaml_native_compiler} sed -i 's/ocamlc/ocamlopt/' src/Makefile %endif # Generate debuginfo sed -i 's/-linkpkg/-g &/' src/Makefile %build %make_build asciidoc README.asciidoc %install export OCAMLFIND_DESTDIR=%{buildroot}%{ocamldir} mkdir -p $OCAMLFIND_DESTDIR %make_install # The META file is empty. Let's put something interesting into it. cat > %{buildroot}%{ocamldir}/camlp5-buildscripts/META << EOF description = "Sysadmin scripts for camlp5 projects" version = "%{version}" requires = "" EOF %check make test %files %doc CHANGES README.html %license LICENSE %{ocamldir}/ %changelog ## START: Generated by rpmautospec * Thu Jan 25 2024 Fedora Release Engineering - 0.03-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.03-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 18 2023 Richard W.M. Jones - 0.03-6 - OCaml 5.1.1 + s390x code gen fix for Fedora 40 * Tue Dec 12 2023 Richard W.M. Jones - 0.03-5 - OCaml 5.1.1 rebuild for Fedora 40 * Thu Oct 05 2023 Richard W.M. Jones - 0.03-4 - OCaml 5.1 rebuild for Fedora 40 * Thu Oct 05 2023 Jerry James - 0.03-3 - Build documentation with asciidoc * Tue Aug 15 2023 Jerry James - 0.03-2 - Generate debuginfo * Tue Aug 15 2023 Jerry James - 0.03-1 - Initial RPM ## END: Generated by rpmautospec