]> git.pld-linux.org Git - packages/ocaml-gapi-ocaml.git/commitdiff
- opt bcond cleanup auto/th/ocaml-gapi-ocaml-0.2.6-2
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 25 Jul 2015 23:18:41 +0000 (01:18 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 25 Jul 2015 23:18:41 +0000 (01:18 +0200)
- rel 2

ocaml-gapi-ocaml.spec

index d2605d329ea76e2890180a8f0009c780152a57af..488c5b34d444025688fe70b6f13265ea2c7bf3b7 100644 (file)
@@ -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
This page took 0.074889 seconds and 4 git commands to generate.