Hello community,

here is the log from the commit of package unison for openSUSE:Factory checked 
in at 2016-07-20 09:17:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/unison (Old)
 and      /work/SRC/openSUSE:Factory/.unison.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "unison"

Changes:
--------
--- /work/SRC/openSUSE:Factory/unison/unison.changes    2015-10-20 
00:06:21.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.unison.new/unison.changes       2016-07-20 
09:17:31.000000000 +0200
@@ -1,0 +2,6 @@
+Mon May 23 09:52:29 UTC 2016 - [email protected]
+
+- Require ocaml >= 4.0.3 due to its API change in Unix.symlink
+  unison-ocaml-4.03.patch
+
+-------------------------------------------------------------------

New:
----
  unison-ocaml-4.03.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ unison.spec ++++++
--- /var/tmp/diff_new_pack.juaknc/_old  2016-07-20 09:17:32.000000000 +0200
+++ /var/tmp/diff_new_pack.juaknc/_new  2016-07-20 09:17:32.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package unison
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,10 @@
 #
 
 
-%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
-%if !%opt
-# get rid of /usr/lib/rpm/find-debuginfo.sh
-# strip kills the bytecode part of ELF binaries
-# see also NO_BRP_STRIP_DEBUG in install section
-%undefine _build_create_debug
-%endif
-
 Name:           unison
 Version:        2.48.3
 Release:        0
+%{ocaml_preserve_bytecode}
 Summary:        File synchronization tool
 License:        GPL-3.0+
 Group:          Productivity/Networking/Other
@@ -35,9 +28,11 @@
 Source1:        
http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-%{version}-manual.html
 Source2:        %{name}.desktop
 Source3:        %{name}.png
+Patch0:         unison-ocaml-4.03.patch
 BuildRequires:  gtk2-devel
 BuildRequires:  ncurses-devel
 BuildRequires:  ocaml-lablgtk2-devel
+BuildRequires:  ocaml-rpm-macros >= 4.03.0
 BuildRequires:  update-desktop-files
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
@@ -50,12 +45,13 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 # This package failed when testing with -Wl,-as-needed being default.
 # So we disable it here, if you want to retest, just delete this comment and 
the line below.
 export SUSE_ASNEEDED=0
-%if %opt
+%if %{ocaml_native_compiler}
 NATIVE=true
 %else
 NATIVE=false
@@ -63,11 +59,6 @@
 make UISTYLE=gtk2 NATIVE=$NATIVE THREADS=true
 
 %install
-%if !%opt
-# get rid of /usr/lib/rpm/brp-strip-debug 
-# strip kills the bytecode part of ELF binaries
-export NO_BRP_STRIP_DEBUG=true
-%endif
 install -m 755 -d %{buildroot}/%{_bindir}
 install -m 755 %{name} %{buildroot}%{_bindir}
 install -m 755 %{name}-fsmonitor %{buildroot}%{_bindir}

++++++ unison-ocaml-4.03.patch ++++++
https://github.com/bcpierce00/unison/commit/4473822b5aa6de3e849ca6c958b365a71edbca4f
---
 system/system_generic.ml |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/system/system_generic.ml
+++ b/system/system_generic.ml
@@ -57,7 +57,7 @@ let opendir f =
 let readdir = Unix.readdir
 let closedir = Unix.closedir
 let readlink = Unix.readlink
-let symlink = Unix.symlink
+let symlink s1 s2 = Unix.symlink s1 s2
 let chdir = Sys.chdir
 let getcwd = Sys.getcwd
 


Reply via email to