]> git.pld-linux.org Git - packages/cppo.git/commitdiff
- up to 1.5.0 auto/th/cppo-1.5.0-1
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 5 Jun 2017 19:49:14 +0000 (21:49 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 5 Jun 2017 19:49:14 +0000 (21:49 +0200)
cppo.spec
noopt-install.patch [new file with mode: 0644]

index 61bc443e313949cfdf392c3a21ac224ebfbc6dd3..f843f6459cb54d9777f0920c04f9fd1959bf6303 100644 (file)
--- a/cppo.spec
+++ b/cppo.spec
 Summary:       Preprocessor (cpp equivalent) for OCaml
 Summary(pl.UTF-8):     Preprocesor (odpowiednik cpp) dla OCamla
 Name:          cppo
-Version:       1.1.2
-Release:       3
+Version:       1.5.0
+Release:       1
 License:       BSD
 Group:         Development/Tools
-Source0:       http://mjambon.com/releases/cppo/%{name}-%{version}.tar.gz
-# Source0-md5: f1a551639c0c667ee8840d95ea5b2ab7
+Source0:       https://github.com/mjambon/cppo/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: bdc99442945f6bc26e7a8096d0975239
+Patch0:                noopt-install.patch
 URL:           http://mjambon.com/cppo.html
 BuildRequires: ocaml >= 3.04-7
+BuildRequires: ocaml-ocamlbuild
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -61,6 +63,7 @@ Pliki programistyczne biblioteki ocamlbuild_cppo.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 # "all" makes bytecode-based cppo, "opt" makes native
diff --git a/noopt-install.patch b/noopt-install.patch
new file mode 100644 (file)
index 0000000..22b5bf3
--- /dev/null
@@ -0,0 +1,17 @@
+--- cppo-1.5.0/Makefile~       2017-04-24 22:34:11.000000000 +0200
++++ cppo-1.5.0/Makefile        2017-06-05 21:47:06.476440992 +0200
+@@ -45,9 +45,14 @@
+ endif
+ endif
++ifeq "${BEST}" ".native"
+ OCAMLBUILD_INSTALL = ocamlbuild_plugin/_build/ocamlbuild_cppo.cmi \
+                      ocamlbuild_plugin/_build/ocamlbuild_cppo.cmx \
+                      $(addprefix ocamlbuild_plugin/_build/,$(OCAMLBUILD_IMPL))
++else
++OCAMLBUILD_INSTALL = ocamlbuild_plugin/_build/ocamlbuild_cppo.cmi \
++                     $(addprefix ocamlbuild_plugin/_build/,$(OCAMLBUILD_IMPL))
++endif
+ .PHONY: default all opt toplib install clean test
This page took 0.102981 seconds and 4 git commands to generate.