94 lines
2.7 KiB
Plaintext
94 lines
2.7 KiB
Plaintext
# vim: syntax=spec
|
|
|
|
Support: build-compare
|
|
# only a few (5) number of *.changes entries are worth to have in a binary rpm
|
|
%global _binarychangelogtrim 0,1234567890,5
|
|
|
|
%if "%_project" == "devel:languages:ocaml"
|
|
Release: dlo.<CI_CNT>.<B_CNT>
|
|
%if 0%{?suse_version} > 0
|
|
Release: dlo.%{suse_version}.<CI_CNT>.<B_CNT>
|
|
%endif
|
|
#
|
|
%if 0%{?sle_version} > 0
|
|
Release: dlo.%{sle_version}.<CI_CNT>.<B_CNT>
|
|
%endif
|
|
Support: xz
|
|
%endif
|
|
|
|
%if "%_repository" == "15.6"
|
|
%else
|
|
# not in Factory, but in this devel repo
|
|
Macros:
|
|
%_with_ocaml_alcotest 1
|
|
%_with_ocaml_lwt 1
|
|
:Macros
|
|
# ocaml itself
|
|
Macros:
|
|
%_without_ocaml_testsuite 1
|
|
:Macros
|
|
# only testsuite macros
|
|
Macros:
|
|
%_with_coccinelle_testsuite 1
|
|
%_with_ocaml_0install_solver_testsuite 1
|
|
%_without_ocaml_bisect_ppx_testsuite 1
|
|
%_with_ocaml_calendar_testsuite 1
|
|
%_without_ocaml_cinaps_testsuite 1
|
|
%_with_ocaml_core_kernel_testsuite 1
|
|
%_with_ocaml_csexp_testsuite 1
|
|
%_with_ocaml_ctypes_testsuite 1
|
|
%_with_ocaml_cudf_testsuite 1
|
|
%_without_ocaml_dose_testsuite 1
|
|
%_with_ocaml_gen_testsuite 1
|
|
%_without_ocaml_gettext_testsuite 1
|
|
%_without_ocaml_luv_testsuite 1
|
|
%_with_ocaml_migrate_parsetree_testsuite 1
|
|
%_with_ocaml_ocamlformat_testsuite 1
|
|
%_without_ocaml_odoc_testsuite 1
|
|
%_with_ocaml_opam_0install_cudf_testsuite 1
|
|
%_with_ocaml_pcre2_testsuite 1
|
|
%_with_ocaml_pcre_testsuite 1
|
|
%_with_ocaml_pp_testsuite 1
|
|
%_with_ocaml_ppx_bin_prot_testsuite 1
|
|
%_with_ocaml_ppx_compare_testsuite 1
|
|
%_without_ocaml_ppxlib_testsuite 1
|
|
%_with_ocaml_pyml_testsuite 1
|
|
%_with_ocaml_qcheck_testsuite 1
|
|
%_with_ocaml_re_testsuite 1
|
|
%_with_ocaml_sedlex_testsuite 1
|
|
%_with_ocaml_spdx_licenses_testsuite 1
|
|
%_with_opam_file_format_testsuite 1
|
|
:Macros
|
|
%endif
|
|
|
|
%if 0%{?suse_version} == 1500
|
|
# bug#1178976
|
|
%endif
|
|
|
|
%if 0%{?suse_version} == 1315
|
|
# have choice for python(abi) > 3.0: python3-base python36-base
|
|
Prefer: -python36-base
|
|
# have choice for distribution-release: sled-release sles-release, have choice for distribution-release needed by kernel-default: sled-release sles-release
|
|
Prefer: -sled-release
|
|
# have choice for pkgconfig(openssl) >= 1.1.1: libopenssl-1_1-devel libopenssl-1_1-devel-32bit
|
|
Prefer: -libopenssl-1_1-devel-32bit
|
|
|
|
Substitute: pkgconfig(freeglut) freeglut-devel=
|
|
Substitute: pkgconfig(ncursesw) ncurses-devel=
|
|
Macros:
|
|
%_without_suse_ocaml_use_rpm_license_macro 1
|
|
# /usr/lib/rpm/macros
|
|
%_rpmmacrodir /etc/rpm
|
|
%_make_output_sync %(! %{__make} --version -O >/dev/null 2>&1 || echo -O)
|
|
%make_build %{__make} %{_make_output_sync} %{?_smp_mflags}
|
|
:Macros
|
|
%endif
|
|
|
|
Substitute: clamav bash
|
|
Substitute: clamav-database bash
|
|
Substitute: post-build-checks-malwarescan bash
|
|
Substitute: rpmlint-Factory bash
|
|
Substitute: rpmlint-Factory-strict bash
|
|
Substitute: rpmlint-backports bash
|
|
Substitute: rpmlint-backports-data bash
|
|
Substitute: rpmlint-mini bash |