[hivex/f14/master] - conditionalize ocaml support
Dan Horák
sharkcz at fedoraproject.org
Tue Sep 7 13:29:03 UTC 2010
commit 202543df35953ce6740a878f58d2c8af80bfb5ee
Author: Dan Horák <dan at danny.cz>
Date: Tue Sep 7 15:29:06 2010 +0200
- conditionalize ocaml support
hivex.spec | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
---
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 <dan[at]danny.cz> - 1.2.2-3
+- conditionalize ocaml support
+
* Thu Apr 29 2010 Marcela Maslanova <mmaslano at redhat.com> - 1.2.2-2
- Mass rebuild with perl-5.12.0
More information about the scm-commits
mailing list