## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; 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 %undefine _package_note_flags %ifnarch %{ocaml_native_compiler} %global debug_package %{nil} %endif Name: ocaml-base64 Version: 3.5.0 Release: %autorelease Summary: Base64 library for OCaml License: ISC URL: https://github.com/mirage/ocaml-base64 Source0: https://github.com/mirage/ocaml-base64/releases/download/v%{version}/base64-v%{version}.tbz BuildRequires: ocaml BuildRequires: ocaml-dune-devel BuildRequires: ocaml-odoc %description Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. It is specified in RFC 4648. %package devel Summary: Development files for %{name}. Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for %{name}. %prep %autosetup -n base64-v%{version} %build # Only build the source directory since the other directories # require packages that we don't have or need. rm -r bench fuzz test dune build %{?_smp_mflags} dune build %{?_smp_mflags} @doc %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 %files %doc README.md %{_libdir}/ocaml/base64 %ifarch %{ocaml_native_compiler} %exclude %{_libdir}/ocaml/base64/*.a %exclude %{_libdir}/ocaml/base64/*.cmx %exclude %{_libdir}/ocaml/base64/*.cmxa %exclude %{_libdir}/ocaml/base64/*.cmxs %endif %exclude %{_libdir}/ocaml/base64/*.mli %files devel %doc CHANGES.md _build/default/_doc/* %ifarch %{ocaml_native_compiler} %{_libdir}/ocaml/base64/*.a %{_libdir}/ocaml/base64/*.cmx %{_libdir}/ocaml/base64/*.cmxa %{_libdir}/ocaml/base64/*.cmxs %endif %{_libdir}/ocaml/base64/*.mli %changelog * Fri Jul 22 2022 Fedora Release Engineering 3.5.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Feb 04 2022 Richard W.M. Jones 3.5.0-6 - local build * Thu Jan 20 2022 Fedora Release Engineering 3.5.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jan 20 2022 Jerry James 3.5.0-4 - Fix rpmautospec breakage * Tue Oct 05 2021 Richard W.M. Jones 3.5.0-3 - OCaml 4.13.1 build * Fri Aug 27 2021 Jerry James - 3.5.0-1 - Version 3.5.0 - Documentation needs odoc instead of ocamldoc * Thu Jul 22 2021 Fedora Release Engineering - 3.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Mar 1 16:57:53 GMT 2021 Richard W.M. Jones - 3.4.0-4 - OCaml 4.12.0 build * Tue Jan 26 2021 Fedora Release Engineering - 3.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 22 2021 Jerry James -3.4.0-2 - Produce usable debuginfo * Thu Jan 21 2021 Richard W.M. Jones - 3.4.0-1 - New upstream version 3.4.0. - Use dune to build. * Tue Sep 01 2020 Richard W.M. Jones - 2.1.2-31 - OCaml 4.11.1 rebuild * Fri Aug 21 2020 Richard W.M. Jones - 2.1.2-30 - OCaml 4.11.0 rebuild * Tue Jul 28 2020 Fedora Release Engineering - 2.1.2-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 04 2020 Richard W.M. Jones - 2.1.2-28 - OCaml 4.11.0+dev2-2020-04-22 rebuild * Tue Apr 21 2020 Richard W.M. Jones - 2.1.2-27 - OCaml 4.11.0 pre-release attempt 2 * Fri Apr 17 2020 Richard W.M. Jones - 2.1.2-26 - OCaml 4.11.0 pre-release * Thu Apr 02 2020 Richard W.M. Jones - 2.1.2-25 - Update all OCaml dependencies for RPM 4.16. * Wed Feb 26 2020 Richard W.M. Jones - 2.1.2-24 - OCaml 4.10.0 final. * Wed Jan 29 2020 Fedora Release Engineering - 2.1.2-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Jan 19 2020 Richard W.M. Jones - 2.1.2-22 - OCaml 4.10.0+beta1 rebuild. * Thu Jan 09 2020 Richard W.M. Jones - 2.1.2-21 - OCaml 4.09.0 for riscv64 * Fri Dec 06 2019 Richard W.M. Jones - 2.1.2-20 - OCaml 4.09.0 (final) rebuild. * Fri Aug 16 2019 Richard W.M. Jones - 2.1.2-19 - OCaml 4.08.1 (final) rebuild. * Wed Jul 31 2019 Richard W.M. Jones - 2.1.2-18 - OCaml 4.08.1 (rc2) rebuild. * Thu Jul 25 2019 Fedora Release Engineering - 2.1.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jun 27 2019 Richard W.M. Jones - 2.1.2-16 - OCaml 4.08.0 (final) rebuild. * Mon Apr 29 2019 Richard W.M. Jones - 2.1.2-15 - OCaml 4.08.0 (beta 3) rebuild. * Fri Feb 01 2019 Fedora Release Engineering - 2.1.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2.1.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jul 11 2018 Richard W.M. Jones - 2.1.2-12 - OCaml 4.07.0 (final) rebuild. * Wed Jun 20 2018 Richard W.M. Jones - 2.1.2-11 - OCaml 4.07.0-rc1 rebuild. * Thu Feb 08 2018 Fedora Release Engineering - 2.1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Nov 17 2017 Richard W.M. Jones - 2.1.2-9 - OCaml 4.06.0 rebuild. * Tue Aug 08 2017 Richard W.M. Jones - 2.1.2-8 - OCaml 4.05.0 rebuild. * Thu Aug 03 2017 Fedora Release Engineering - 2.1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Jun 27 2017 Richard W.M. Jones - 2.1.2-5 - OCaml 4.04.2 rebuild. * Sat May 13 2017 Richard W.M. Jones - 2.1.2-4 - OCaml 4.04.1 rebuild. * Sat Feb 11 2017 Fedora Release Engineering - 2.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Nov 09 2016 Dan Horák - 2.1.2-2 - rebuild for s390x codegen bug * Mon Nov 07 2016 Richard W.M. Jones - 2.1.2-1 - New upstream version 2.1.2. * Wed Oct 19 2016 Dan Horák - 2.0.0-5 - disable debuginfo subpackage on interpreted builds * Thu Feb 04 2016 Fedora Release Engineering - 2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jul 28 2015 Richard W.M. Jones - 2.0.0-3 - OCaml 4.02.3 rebuild. * Sat Jul 25 2015 Richard W.M. Jones - 2.0.0-2 - Make -devel package depend on fully versioned base package. - Remove duplicate META file. * Fri Jul 24 2015 Richard W.M. Jones - 2.0.0-1 - New package required by js-of-ocaml.