[packages/ocaml-gapi-ocaml] - opt bcond cleanup - rel 2
baggins
baggins at pld-linux.org
Sun Jul 26 01:19:01 CEST 2015
commit cdfcbd46f3622f826a7ebd557b6a526b99151c17
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Jul 26 01:18:41 2015 +0200
- opt bcond cleanup
- rel 2
ocaml-gapi-ocaml.spec | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/ocaml-gapi-ocaml.spec b/ocaml-gapi-ocaml.spec
index d2605d3..488c5b3 100644
--- a/ocaml-gapi-ocaml.spec
+++ b/ocaml-gapi-ocaml.spec
@@ -1,13 +1,18 @@
#
# Conditional build:
-%bcond_without opt # build opt
+%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built)
+
+# not yet available on x32 (ocaml 4.02.1), remove when upstream will support it
+%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
+%undefine with_ocaml_opt
+%endif
%define pkgname gapi-ocaml
%define debug_package %{nil}
Summary: Google Data Protocol (GData) client library
Name: ocaml-%{pkgname}
Version: 0.2.6
-Release: 1
+Release: 2
License: MIT
Group: Libraries
Source0: https://forge.ocamlcore.org/frs/download.php/1468/%{pkgname}-%{version}.tar.gz
@@ -93,7 +98,11 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc LICENSE
%dir %{_libdir}/ocaml/%{pkgname}
+%{_libdir}/ocaml/%{pkgname}/*.cma
+%{_libdir}/ocaml/%{pkgname}/*.cm[ix]
+%if %{with ocaml_opt}
%{_libdir}/ocaml/%{pkgname}/*.a
-%{_libdir}/ocaml/%{pkgname}/*.cm[ixa]*
+%{_libdir}/ocaml/%{pkgname}/*.cmxa
+%endif
%dir %{_libdir}/ocaml/site-lib/%{pkgname}
%{_libdir}/ocaml/site-lib/%{pkgname}/META
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-gapi-ocaml.git/commitdiff/cdfcbd46f3622f826a7ebd557b6a526b99151c17
More information about the pld-cvs-commit
mailing list