[packages/ocaml-ounit] - added ocaml_opt bcond - rel 3
baggins
baggins at pld-linux.org
Sun Mar 1 11:48:04 CET 2015
commit 9fe9f8c2a21bea8cbff636d699004066ae395029
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Mar 1 10:47:51 2015 +0000
- added ocaml_opt bcond
- rel 3
ocaml-ounit.spec | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/ocaml-ounit.spec b/ocaml-ounit.spec
index 73702db..11d9627 100644
--- a/ocaml-ounit.spec
+++ b/ocaml-ounit.spec
@@ -1,8 +1,16 @@
+#
+# Conditional build:
+%bcond_without ocaml_opt # build opt
+
+%ifarch x32
+%undefine with_ocaml_opt
+%endif
+
Summary: OUnit: unit tests for OCaml
Summary(pl.UTF-8): OUnit - testy jednostkowe dla OCamla
Name: ocaml-ounit
Version: 2.0.0
-Release: 2
+Release: 3
License: MIT
Group: Libraries
Source0: http://forge.ocamlcore.org/frs/download.php/1258/ounit-%{version}.tar.gz
@@ -57,9 +65,11 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc AUTHORS.txt LICENSE.txt README.txt doc/manual.txt src/oUnit*.mli
%dir %{_libdir}/ocaml/oUnit
+%if %{with ocaml_opt}
%{_libdir}/ocaml/oUnit/oUnit.a
%{_libdir}/ocaml/oUnit/oUnitAdvanced.a
%{_libdir}/ocaml/oUnit/oUnitThreads.a
+%endif
%{_libdir}/ocaml/oUnit/oUnit*.cm[ixa]*
%{_libdir}/ocaml/oUnit/oUnit*.ml
%{_libdir}/ocaml/site-lib/oUnit
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-ounit.git/commitdiff/9fe9f8c2a21bea8cbff636d699004066ae395029
More information about the pld-cvs-commit
mailing list