Accepting request 967088 from devel:languages:ocaml

- Update to version 2.52.0
  * wireprotocol is now independent from OCaml version
  * see included changelog for details
- Build with dune
- Provide unison-text package

OBS-URL: https://build.opensuse.org/request/show/967088
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/unison?expand=0&rev=42
This commit is contained in:
Dominique Leuenberger 2022-04-05 17:56:04 +00:00 committed by Git OBS Bridge
commit ef79df0486
6 changed files with 115 additions and 27 deletions

View File

@ -1,9 +1,66 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="exclude">.depend</param>
<param name="exclude">.github</param>
<param name="exclude">.gitignore</param>
<param name="exclude">.travis.yml</param>
<param name="exclude">Dockerfile</param>
<param name="exclude">LICENSE</param>
<param name="exclude">Makefile</param>
<param name="exclude">README.md</param>
<param name="exclude">doc</param>
<param name="exclude">icons/.xvpics</param>
<param name="exclude">icons/U.16x16x16m.png</param>
<param name="exclude">icons/U.24x24x16m.png</param>
<param name="exclude">icons/U.256x256x16m.png</param>
<param name="exclude">icons/U.32x32x16.bmp</param>
<param name="exclude">icons/U.32x32x16m.png</param>
<param name="exclude">icons/U.32x32x256.bmp</param>
<param name="exclude">icons/U.32x32x256.xpm</param>
<param name="exclude">icons/U.48x48x16m.png</param>
<param name="exclude">icons/U.ico</param>
<param name="exclude">icons/Unison.gif</param>
<param name="exclude">icons/Unison.xpm</param>
<param name="exclude">icons/success.gif</param>
<param name="exclude">icons/svg_to_data.ml</param>
<param name="exclude">icons/unison-icon.ai</param>
<param name="exclude">icons/unison-logo.gif</param>
<param name="exclude">icons/unison.haruo.jpg</param>
<param name="exclude">setup</param>
<param name="exclude">src/.depend</param>
<param name="exclude">src/CONTRIB</param>
<param name="exclude">src/INSTALL.gtk2</param>
<param name="exclude">src/INSTALL.win32-cygwin-gnuc</param>
<param name="exclude">src/INSTALL.win32-msvc</param>
<param name="exclude">src/INSTALL.win32</param>
<param name="exclude">src/INSTALL</param>
<param name="exclude">src/Makefile.OCaml</param>
<param name="exclude">src/Makefile</param>
<param name="exclude">src/README</param>
<param name="exclude">src/ROADMAP.txt</param>
<param name="exclude">src/TODO.txt</param>
<param name="exclude">src/fsmonitor.py</param>
<param name="exclude">src/fsmonitor/linux/Makefile</param>
<param name="exclude">src/fsmonitor/solaris</param>
<param name="exclude">src/fsmonitor/windows</param>
<param name="exclude">src/lwt/META</param>
<param name="exclude">src/lwt/Makefile</param>
<param name="exclude">src/lwt/depend</param>
<param name="exclude">src/lwt/example</param>
<param name="exclude">src/lwt/win</param>
<param name="exclude">src/system/system_win_stubs.c</param>
<param name="exclude">src/system/win</param>
<param name="exclude">src/ubase/META</param>
<param name="exclude">src/ubase/Makefile</param>
<param name="exclude">src/uimac</param>
<param name="exclude">src/unison.hgr</param>
<param name="exclude">src/win32rc</param>
<param name="exclude">src/winmain.c</param>
<param name="exclude">tests</param>
<param name="exclude">unicode_utils</param>
<param name="filename">unison</param>
<param name="revision">f29b364cad83c71f5620c0df3b9b0049b62d2d60</param>
<param name="revision">4ad8511150dee24e924f25247342b370e8b8b651</param>
<param name="scm">git</param>
<param name="subdir">src</param>
<param name="submodules">disable</param>
<param name="url">https://github.com/bcpierce00/unison.git</param>
<param name="versionformat">@PARENT_TAG@</param>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d4e3f75471425b75d951a12f277be38d05ec10b75e3cbe9a7bc54785162a7d40
size 486696

3
unison-2.52.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a3a71e6f2213be6c2e2afbb91c027f94a1dd6c49719a581fe356fa8d559d899b
size 349556

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Apr 4 04:04:04 UTC 2022 - olaf@aepfle.de
- Update to version 2.52.0
* wireprotocol is now independent from OCaml version
* see included changelog for details
- Build with dune
- Provide unison-text package
-------------------------------------------------------------------
Thu Jun 24 15:15:15 UTC 2021 - olaf@aepfle.de

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:87234ff28f298784cdf2dbe7e7887806ff348d30e1a8e8db92849c7fbb7b8c7f
size 2586

View File

@ -1,7 +1,7 @@
#
# spec file for package unison
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: unison
Version: 2.51.4
Version: 2.52.0
Release: 0
%{?ocaml_preserve_bytecode}
Summary: File synchronization tool
@ -25,22 +25,36 @@ License: GPL-3.0+
Group: Productivity/Networking/Other
BuildRoot: %_tmppath/%name-%version-build
URL: https://github.com/bcpierce00/unison
Source0: %{name}-%{version}.tar.xz
Source0: %name-%version.tar.xz
#https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html
Source1: unison-2.48.4-manual.html
Source2: %{name}.desktop
Source3: %{name}.png
BuildRequires: ocaml-lablgtk2-devel > 2.18.5
BuildRequires: ocaml-rpm-macros >= 20210409
Source2: %name.desktop
BuildRequires: ocaml(ocaml_base_version) >= 4.08
BuildRequires: ocaml-dune >= 2.3
BuildRequires: ocaml-rpm-macros >= 20220222
BuildRequires: ocamlfind(findlib)
BuildRequires: ocamlfind(ppx_bin_prot)
BuildRequires: pkgconfig(gdk-2.0)
BuildRequires: ocamlfind(lablgtk2)
BuildRequires: pkgconfig(ncursesw)
%if 0%{?suse_version} > 0
BuildRequires: update-desktop-files
%endif
%description
Graphical userinterface for Unison.
Unison is a file synchronization tool for Unix and Windows. It allows
two replicas of a collection of files and directories to be stored on
different hosts (or different disks on the same host), modified
separately, then brought up to date by propagating the changes in each
replica to the other.
%package text
Summary: File synchronization tool
License: GPL-3.0+
Group: Productivity/Networking/Other
%description text
Text based userinterface for Unison.
Unison is a file synchronization tool for Unix and Windows. It allows
two replicas of a collection of files and directories to be stored on
different hosts (or different disks on the same host), modified
@ -51,25 +65,36 @@ replica to the other.
%setup -q
%build
make UISTYLE=gtk2 NATIVE=true
dune_release_pkgs='unison,unison-gui,unison-fsmonitor'
%ocaml_dune_setup
%ocaml_dune_build
%install
install -m 755 -D %{name} %{buildroot}%{_bindir}/%{name}
install -m 755 -D %{name}-fsmonitor %{buildroot}%{_bindir}/%{name}-fsmonitor
install -m 644 -D %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%ocaml_dune_install
%ocaml_create_file_list
rm -rfv %buildroot%ocaml_standard_library
mv %buildroot%_bindir/%name %buildroot%_bindir/%name-text
mv %buildroot%_bindir/%name-gui %buildroot%_bindir/%name
install -m 644 -D icons/U.svg %buildroot%_datadir/pixmaps/%name.svg
install -m 644 %{SOURCE1} unison-manual.html
%if %{defined suse_update_desktop_file}
%suse_update_desktop_file -i %name Utility SyncUtility
%else
install -m 644 -D %{SOURCE2} %{buildroot}/%{_datadir}/applications/%{name}.desktop
install -m 644 -D %{SOURCE2} %buildroot/%_datadir/applications/%name.desktop
%endif
%files
%defattr(-,root,root,-)
%doc COPYING NEWS README unison-manual.html
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_bindir}/%{name}
%{_bindir}/%{name}-fsmonitor
%doc src/COPYING unison-manual.html
%_datadir/applications/*
%_datadir/pixmaps/*
%_bindir/%name
%_bindir/%name-fsmonitor
%files text
%defattr(-,root,root,-)
%doc src/COPYING
%_bindir/%name-text
%changelog