From 202543df35953ce6740a878f58d2c8af80bfb5ee Mon Sep 17 00:00:00 2001 From: Dan Horák Date: Sep 07 2010 13:29:06 +0000 Subject: - conditionalize ocaml support --- diff --git a/hivex.spec b/hivex.spec index 6211737..83230b0 100644 --- a/hivex.spec +++ b/hivex.spec @@ -1,6 +1,13 @@ +# conditionalize Ocaml support +%ifarch sparc64 s390 s390x +%bcond_with ocaml +%else +%bcond_without ocaml +%endif + Name: hivex Version: 1.2.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Read and write Windows Registry binary hive files Group: Development/Libraries @@ -16,8 +23,10 @@ BuildRequires: perl-Test-Pod-Coverage BuildRequires: perl-ExtUtils-MakeMaker BuildRequires: perl-IO-stringy BuildRequires: perl-libintl +%if %{with ocaml} BuildRequires: ocaml BuildRequires: ocaml-findlib-devel +%endif BuildRequires: readline-devel BuildRequires: libxml2-devel @@ -65,6 +74,7 @@ Requires: pkgconfig for %{name}. +%if %{with ocaml} %package -n ocaml-%{name} Summary: OCaml bindings for %{name} Group: Development/Libraries @@ -87,6 +97,7 @@ Requires: ocaml-%{name} = %{version}-%{release} %description -n ocaml-%{name}-devel ocaml-%{name}-devel contains development libraries required to use the OCaml bindings for %{name}. +%endif %package -n perl-%{name} @@ -156,6 +167,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/hivex.pc +%if %{with ocaml} %files -n ocaml-%{name} %defattr(-,root,root,-) %doc README @@ -174,6 +186,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/ocaml/hivex/*.cmxa %{_libdir}/ocaml/hivex/*.cmx %{_libdir}/ocaml/hivex/*.mli +%endif %files -n perl-%{name} @@ -184,6 +197,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Sep 7 2010 Dan Horák - 1.2.2-3 +- conditionalize ocaml support + * Thu Apr 29 2010 Marcela Maslanova - 1.2.2-2 - Mass rebuild with perl-5.12.0