From: Jan Rękorajski Date: Mon, 6 Apr 2015 08:22:01 +0000 (+0000) Subject: - added ocaml_opt bcond X-Git-Tag: auto/th/hivex-1.3.11-2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=c149d4698d79880db1176d7cc0a6866f510026f3;p=packages%2Fhivex.git - added ocaml_opt bcond - rel 2 --- diff --git a/hivex.spec b/hivex.spec index 0322cec..39b07a1 100644 --- a/hivex.spec +++ b/hivex.spec @@ -3,13 +3,19 @@ # Conditional build: %bcond_without static_libs # don't build static libraries %bcond_without python3 # CPython 3 module +%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built) + +%ifarch x32 +# not yet available on x32 (ocaml 4.02.1), remove when upstream will support it +%undefine with_ocaml_opt +%endif # %include /usr/lib/rpm/macros.perl Summary: Windows Registry "hive" extraction library Summary(pl.UTF-8): Biblioteka do wydobywania danych z plików "hive" Rejestru Windows Name: hivex Version: 1.3.11 -Release: 1 +Release: 2 License: LGPL v2.1 Group: Libraries Source0: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz @@ -240,12 +246,14 @@ rm -rf $RPM_BUILD_ROOT %dir %{_libdir}/ocaml/hivex %{_libdir}/ocaml/hivex/META %{_libdir}/ocaml/hivex/hivex.cmi -%{_libdir}/ocaml/hivex/hivex.cmx %{_libdir}/ocaml/hivex/hivex.mli %{_libdir}/ocaml/hivex/libmlhivex.a -%{_libdir}/ocaml/hivex/mlhivex.a %{_libdir}/ocaml/hivex/mlhivex.cma +%if %{with ocaml_opt} +%{_libdir}/ocaml/hivex/hivex.cmx +%{_libdir}/ocaml/hivex/mlhivex.a %{_libdir}/ocaml/hivex/mlhivex.cmxa +%endif %files -n perl-hivex %defattr(644,root,root,755)