Accepting request 1098854 from devel:languages:ocaml
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/1098854 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/unison?expand=0&rev=46
This commit is contained in:
commit
5dc6bd74ea
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>doc</package>
|
||||
</multibuild>
|
12
_service
12
_service
@ -5,10 +5,9 @@
|
||||
<param name="exclude">.gitignore</param>
|
||||
<param name="exclude">.travis.yml</param>
|
||||
<param name="exclude">Dockerfile</param>
|
||||
<param name="exclude">INSTALL.md</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>
|
||||
@ -19,7 +18,6 @@
|
||||
<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>
|
||||
@ -27,15 +25,13 @@
|
||||
<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/FEATURES.md</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>
|
||||
@ -44,14 +40,12 @@
|
||||
<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>
|
||||
@ -59,7 +53,7 @@
|
||||
<param name="exclude">tests</param>
|
||||
<param name="exclude">unicode_utils</param>
|
||||
<param name="filename">unison</param>
|
||||
<param name="revision">43b9875f247e91be3c0366e3b8cb951f4b17ee67</param>
|
||||
<param name="revision">574a2716a9cd5096651d80f161250bf26df9a38f</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="submodules">disable</param>
|
||||
<param name="url">https://github.com/bcpierce00/unison.git</param>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3951fb0a8de3a79766ca300ad2be2e1c883910573bb2679c9547d163379d4caa
|
||||
size 402908
|
3
unison-2.53.3.tar.xz
Normal file
3
unison-2.53.3.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2c12c6a73345415ed1cf21b0d6f0213cfb42e3777beca5221fd1849398c1125b
|
||||
size 435652
|
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 7 07:07:07 UTC 2023 - ohering@suse.de
|
||||
|
||||
- Provide a docs package with man, html and PDF files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 5 05:05:05 UTC 2023 - ohering@suse.de
|
||||
|
||||
- Update to version 2.53.3
|
||||
* Bugfixes, minor improvements, cleanups.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 19 19:19:19 UTC 2023 - ohering@suse.de
|
||||
|
||||
|
59
unison.spec
59
unison.spec
@ -15,9 +15,16 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define build_flavor @BUILD_FLAVOR@%nil
|
||||
%if "%build_flavor" == "doc"
|
||||
%define nsuffix -doc
|
||||
%else
|
||||
%define nsuffix %nil
|
||||
%endif
|
||||
|
||||
Name: unison
|
||||
Version: 2.53.2
|
||||
%define pkg unison
|
||||
Name: %pkg%nsuffix
|
||||
Version: 2.53.3
|
||||
Release: 0
|
||||
%{?ocaml_preserve_bytecode}
|
||||
Summary: File synchronization tool
|
||||
@ -25,19 +32,25 @@ License: GPL-3.0+
|
||||
Group: Productivity/Networking/Other
|
||||
BuildRoot: %_tmppath/%name-%version-build
|
||||
URL: https://github.com/bcpierce00/unison
|
||||
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
|
||||
Source0: %pkg-%version.tar.xz
|
||||
Source1: %pkg.desktop
|
||||
BuildRequires: ocaml(ocaml_base_version) >= 4.08
|
||||
BuildRequires: ocaml-dune >= 2.3
|
||||
BuildRequires: ocaml-rpm-macros >= 20230101
|
||||
BuildRequires: ocamlfind(findlib)
|
||||
%if "%build_flavor" == "doc"
|
||||
%if 0%?suse_version > 1500 || 0%?sle_version > 150300
|
||||
BuildRequires: hevea
|
||||
BuildRequires: lynx
|
||||
%endif
|
||||
BuildRequires: texlive-dvips
|
||||
BuildRequires: texlive-latex
|
||||
%else
|
||||
BuildRequires: ocaml-dune >= 2.3
|
||||
BuildRequires: ocamlfind(lablgtk3)
|
||||
BuildRequires: pkgconfig(ncursesw)
|
||||
%if 0%{?suse_version} > 0
|
||||
BuildRequires: update-desktop-files
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%description
|
||||
Graphical userinterface for Unison.
|
||||
@ -62,14 +75,33 @@ separately, then brought up to date by propagating the changes in each
|
||||
replica to the other.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1 -n %pkg-%version
|
||||
|
||||
%build
|
||||
%if "%build_flavor" == "doc"
|
||||
%make_build docs -j1
|
||||
ls -lart doc man
|
||||
%else
|
||||
dune_release_pkgs='unison,unison-gui,unison-fsmonitor'
|
||||
%ocaml_dune_setup
|
||||
%ocaml_dune_build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if "%build_flavor" == "doc"
|
||||
mkdir -vp %buildroot%_mandir/man1
|
||||
cp -avt %buildroot%_mandir/man1 man/%pkg.1
|
||||
echo '%%_mandir/man1/unison.*' > files
|
||||
for ext in html pdf
|
||||
do
|
||||
test -f doc/unison-manual.$ext || continue
|
||||
mkdir -vp %buildroot%_defaultdocdir/%pkg
|
||||
cp doc/unison-manual.$ext %buildroot%_defaultdocdir/%pkg
|
||||
echo '%%dir %_defaultdocdir/%pkg' >> files
|
||||
echo "%%doc %_defaultdocdir/%pkg/unison-manual.$ext" >> files
|
||||
done
|
||||
%else
|
||||
echo '%%doc src/COPYING' > files
|
||||
%ocaml_dune_install
|
||||
%ocaml_create_file_list
|
||||
rm -rfv %buildroot%ocaml_standard_library
|
||||
@ -77,16 +109,16 @@ 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 %{SOURCE1} %buildroot/%_datadir/applications/%name.desktop
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files -f files
|
||||
%defattr(-,root,root,-)
|
||||
%doc src/COPYING unison-manual.html
|
||||
%if "%build_flavor" == ""
|
||||
%_datadir/applications/*
|
||||
%_datadir/pixmaps/*
|
||||
%_bindir/%name
|
||||
@ -96,5 +128,6 @@ install -m 644 -D %{SOURCE2} %buildroot/%_datadir/applications/%name.desktop
|
||||
%defattr(-,root,root,-)
|
||||
%doc src/COPYING
|
||||
%_bindir/%name-text
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user