]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- removed duplicate debug_packages disabling, added dune example
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 25 Sep 2021 15:01:35 +0000 (17:01 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 25 Sep 2021 15:01:35 +0000 (17:01 +0200)
ocaml.spec

index f88b8691a8c6bba292b0db5f37ab4739cc977cda..2970d1c93302eaa9fc57a67c06cd68fb3cbf630d 100644 (file)
@@ -1,17 +1,13 @@
 #
 # Conditional build:
-%bcond_without ocaml_opt       # skip building native optimized binaries (bytecode is always built)
+%bcond_without ocaml_opt       # native optimized binaries (bytecode is always built)
 
 # not yet available on x32 (ocaml 4.02.1), update when upstream will support it
 %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
 %undefine      with_ocaml_opt
 %endif
 
-%if %{without ocaml_opt}
-%define                _enable_debug_packages  0
-%endif
-
-%define                module  %{module}
+%define                module  TEMPLATE
 Summary:       %{module} binding for OCaml
 Summary(pl.UTF-8):     Wiązania %{module} dla OCamla
 Name:          ocaml-%{module}
@@ -20,10 +16,11 @@ Release:    1
 License:       - (enter GPL/LGPL/BSD/BSD-like/other license name here)
 Group:         Libraries
 Source0:       %{module}-%{version}.tar.gz
-URL:           -
 # Source0-md5: -
+URL:           -
 #BuildRequires:        -devel
 BuildRequires: ocaml >= 1:4.00
+#BuildRequires:        ocaml-dune
 %requires_eq   ocaml-runtime
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -64,6 +61,9 @@ biblioteki TEMPLATE.
 %{__make} -j1 all %{?with_ocaml_opt:opt} \
        CC="%{__cc} %{rpmcflags} -fPIC"
 
+# or
+dune build --verbose
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -72,6 +72,9 @@ install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# or
+dune install --destdir=$RPM_BUILD_ROOT
+
 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 #cp -r foo bar $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
This page took 0.137013 seconds and 4 git commands to generate.