- Provide a docs package with man, html and PDF files.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/unison?expand=0&rev=36
This commit is contained in:
parent
b44931aade
commit
4da58a6582
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>doc</package>
|
||||
</multibuild>
|
10
_service
10
_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>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:07257acc5e9ed394454c0a8ba9c309928320bfeb7c91796e4b681edefb11daca
|
||||
size 406864
|
||||
oid sha256:2c12c6a73345415ed1cf21b0d6f0213cfb42e3777beca5221fd1849398c1125b
|
||||
size 435652
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
46
unison.spec
46
unison.spec
@ -15,8 +15,15 @@
|
||||
# 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
|
||||
%define pkg unison
|
||||
Name: %pkg%nsuffix
|
||||
Version: 2.53.3
|
||||
Release: 0
|
||||
%{?ocaml_preserve_bytecode}
|
||||
@ -25,19 +32,24 @@ 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
|
||||
%if "%build_flavor" == "doc"
|
||||
BuildRequires: hevea
|
||||
BuildRequires: lynx
|
||||
BuildRequires: texlive-dvips
|
||||
BuildRequires: texlive-latex
|
||||
%else
|
||||
BuildRequires: ocaml-dune >= 2.3
|
||||
BuildRequires: ocamlfind(findlib)
|
||||
BuildRequires: ocamlfind(lablgtk3)
|
||||
BuildRequires: pkgconfig(ncursesw)
|
||||
%if 0%{?suse_version} > 0
|
||||
BuildRequires: update-desktop-files
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%description
|
||||
Graphical userinterface for Unison.
|
||||
@ -62,14 +74,23 @@ 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
|
||||
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
|
||||
%else
|
||||
%ocaml_dune_install
|
||||
%ocaml_create_file_list
|
||||
rm -rfv %buildroot%ocaml_standard_library
|
||||
@ -77,16 +98,20 @@ 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
|
||||
%defattr(-,root,root,-)
|
||||
%doc src/COPYING unison-manual.html
|
||||
%if "%build_flavor" == "doc"
|
||||
%doc doc/%pkg-manual.html doc/%pkg-manual.pdf
|
||||
%_mandir/man1/%pkg.*
|
||||
%else
|
||||
%doc src/COPYING
|
||||
%_datadir/applications/*
|
||||
%_datadir/pixmaps/*
|
||||
%_bindir/%name
|
||||
@ -96,5 +121,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