## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 #Since OCaml 5, Ocaml packages don't build on this architecture ExcludeArch: %{ix86} %global debug_package %{nil} %global _smp_ncpus_max 1 Name: ocaml-camlpdf Version: 2.8.1 Release: %autorelease Summary: OCaml library for reading, writing and modifying PDFs License: LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception URL: https://github.com/johnwhitington/camlpdf Source: https://github.com/johnwhitington/camlpdf/archive/refs/tags/v%{version}.tar.gz BuildRequires: ocaml BuildRequires: ocaml-findlib BuildRequires: gcc BuildRequires: make BuildRequires: ocaml-ocamldoc %description OCaml library for reading, writing and modifying PDFs. The basis of the Cpdf command line tools. %package devel Summary: Development files to %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %autosetup -n camlpdf-%{version} %build %make_build %install export OCAMLFIND_DESTDIR=%{buildroot}%{ocamldir} mkdir -p $OCAMLFIND_DESTDIR/stublibs %make_install %files %doc README.md %license LICENSE %{ocamldir}/camlpdf %ifarch %{ocaml_native_compiler} %exclude %{ocamldir}/camlpdf/*.a %exclude %{ocamldir}/camlpdf/*.cmxa %exclude %{ocamldir}/camlpdf/*.cmx %endif %exclude %{ocamldir}/camlpdf/*.mli %{ocamldir}/stublibs/*.so %{ocamldir}/stublibs/*.so.owner %files devel %ifarch %{ocaml_native_compiler} %{ocamldir}/camlpdf/*.a %{ocamldir}/camlpdf/*.cmxa %{ocamldir}/camlpdf/*.cmx %endif %{ocamldir}/camlpdf/*.mli %changelog ## START: Generated by rpmautospec * Wed Apr 30 2025 John Doe - 2.8.1-1 - Uncommitted changes ## END: Generated by rpmautospec