From 425eb25efe1844e5de77bbba17150ede59088436 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 3 Dec 2020 13:59:35 +0000 Subject: [PATCH] Disable static subpackage on RHEL. --- hivex.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hivex.spec b/hivex.spec index 7f9893e..fbfb214 100644 --- a/hivex.spec +++ b/hivex.spec @@ -10,7 +10,7 @@ Name: hivex Version: 1.3.19 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Read and write Windows Registry binary hive files License: LGPLv2 @@ -109,6 +109,7 @@ Requires: pkgconfig for %{name}. +%if !0%{?rhel} %package static Summary: Statically linked library for %{name} Requires: %{name} = %{version}-%{release} @@ -117,6 +118,7 @@ Requires: %{name} = %{version}-%{release} %description static %{name}-static contains the statically linked library for %{name}. +%endif %if %{with ocaml} @@ -186,6 +188,9 @@ ruby-%{name} contains Ruby bindings for %{name}. PYTHON=%{__python3} \ %if !%{with ocaml} --disable-ocaml \ +%endif +%if 0%{?rhel} + --disable-static \ %endif %{nil} make V=1 INSTALLDIRS=vendor %{?_smp_mflags} @@ -248,9 +253,11 @@ fi %{_libdir}/pkgconfig/hivex.pc +%if !0%{?rhel} %files static %doc LICENSE %{_libdir}/libhivex.a +%endif %if %{with ocaml} @@ -293,6 +300,9 @@ fi %changelog +* Thu Dec 03 2020 Richard W.M. Jones - 1.3.19-5 +- Disable static subpackage on RHEL. + * Tue Sep 01 2020 Richard W.M. Jones - 1.3.19-4 - OCaml 4.11.1 rebuild