Disable static subpackage on RHEL.

This commit is contained in:
Richard W.M. Jones 2020-12-03 13:59:35 +00:00
parent 6b8b0fbe95
commit 425eb25efe

View File

@ -10,7 +10,7 @@
Name: hivex Name: hivex
Version: 1.3.19 Version: 1.3.19
Release: 4%{?dist} Release: 5%{?dist}
Summary: Read and write Windows Registry binary hive files Summary: Read and write Windows Registry binary hive files
License: LGPLv2 License: LGPLv2
@ -109,6 +109,7 @@ Requires: pkgconfig
for %{name}. for %{name}.
%if !0%{?rhel}
%package static %package static
Summary: Statically linked library for %{name} Summary: Statically linked library for %{name}
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
@ -117,6 +118,7 @@ Requires: %{name} = %{version}-%{release}
%description static %description static
%{name}-static contains the statically linked library %{name}-static contains the statically linked library
for %{name}. for %{name}.
%endif
%if %{with ocaml} %if %{with ocaml}
@ -186,6 +188,9 @@ ruby-%{name} contains Ruby bindings for %{name}.
PYTHON=%{__python3} \ PYTHON=%{__python3} \
%if !%{with ocaml} %if !%{with ocaml}
--disable-ocaml \ --disable-ocaml \
%endif
%if 0%{?rhel}
--disable-static \
%endif %endif
%{nil} %{nil}
make V=1 INSTALLDIRS=vendor %{?_smp_mflags} make V=1 INSTALLDIRS=vendor %{?_smp_mflags}
@ -248,9 +253,11 @@ fi
%{_libdir}/pkgconfig/hivex.pc %{_libdir}/pkgconfig/hivex.pc
%if !0%{?rhel}
%files static %files static
%doc LICENSE %doc LICENSE
%{_libdir}/libhivex.a %{_libdir}/libhivex.a
%endif
%if %{with ocaml} %if %{with ocaml}
@ -293,6 +300,9 @@ fi
%changelog %changelog
* Thu Dec 03 2020 Richard W.M. Jones <rjones@redhat.com> - 1.3.19-5
- Disable static subpackage on RHEL.
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.3.19-4 * Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 1.3.19-4
- OCaml 4.11.1 rebuild - OCaml 4.11.1 rebuild