2007-01-16 00:40:09 +01:00
|
|
|
#
|
2011-04-01 12:36:42 +02:00
|
|
|
# spec file for package unison
|
2007-01-16 00:40:09 +01:00
|
|
|
#
|
2023-01-02 16:15:26 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-16 00:40:09 +01:00
|
|
|
#
|
2009-06-19 00:18:08 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-11-27 13:52:50 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:40:09 +01:00
|
|
|
#
|
|
|
|
|
2023-07-07 16:09:06 +02:00
|
|
|
%define build_flavor @BUILD_FLAVOR@%nil
|
|
|
|
%if "%build_flavor" == "doc"
|
|
|
|
%define nsuffix -doc
|
|
|
|
%else
|
|
|
|
%define nsuffix %nil
|
|
|
|
%endif
|
2011-04-01 12:36:52 +02:00
|
|
|
|
2023-07-07 16:09:06 +02:00
|
|
|
%define pkg unison
|
|
|
|
Name: %pkg%nsuffix
|
2023-05-05 10:21:50 +02:00
|
|
|
Version: 2.53.3
|
2012-02-16 15:02:33 +01:00
|
|
|
Release: 0
|
2017-10-11 23:03:05 +02:00
|
|
|
%{?ocaml_preserve_bytecode}
|
2013-01-14 12:04:00 +01:00
|
|
|
Summary: File synchronization tool
|
2012-02-16 15:02:33 +01:00
|
|
|
License: GPL-3.0+
|
2011-04-01 12:36:42 +02:00
|
|
|
Group: Productivity/Networking/Other
|
2021-04-29 22:46:05 +02:00
|
|
|
BuildRoot: %_tmppath/%name-%version-build
|
|
|
|
URL: https://github.com/bcpierce00/unison
|
2023-07-07 16:09:06 +02:00
|
|
|
Source0: %pkg-%version.tar.xz
|
|
|
|
Source1: %pkg.desktop
|
2022-04-04 18:44:02 +02:00
|
|
|
BuildRequires: ocaml(ocaml_base_version) >= 4.08
|
2023-01-02 21:21:46 +01:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 20230101
|
2023-07-07 16:09:06 +02:00
|
|
|
%if "%build_flavor" == "doc"
|
2023-07-07 18:25:06 +02:00
|
|
|
%if 0%?suse_version > 1500 || 0%?sle_version > 150300
|
2023-07-07 16:09:06 +02:00
|
|
|
BuildRequires: hevea
|
|
|
|
BuildRequires: lynx
|
2023-07-07 17:30:30 +02:00
|
|
|
%endif
|
2023-07-07 16:09:06 +02:00
|
|
|
BuildRequires: texlive-dvips
|
|
|
|
BuildRequires: texlive-latex
|
|
|
|
%else
|
|
|
|
BuildRequires: ocaml-dune >= 2.3
|
2023-01-02 16:15:26 +01:00
|
|
|
BuildRequires: ocamlfind(lablgtk3)
|
2021-04-29 22:46:05 +02:00
|
|
|
BuildRequires: pkgconfig(ncursesw)
|
|
|
|
%if 0%{?suse_version} > 0
|
2012-02-16 15:02:33 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2021-04-29 22:46:05 +02:00
|
|
|
%endif
|
2023-07-07 16:09:06 +02:00
|
|
|
%endif
|
2007-01-16 00:40:09 +01:00
|
|
|
|
|
|
|
%description
|
2022-04-05 09:17:49 +02:00
|
|
|
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.
|
|
|
|
|
2007-01-16 00:40:09 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2023-07-07 16:09:06 +02:00
|
|
|
%autosetup -p1 -n %pkg-%version
|
2007-01-16 00:40:09 +01:00
|
|
|
|
|
|
|
%build
|
2023-07-07 16:09:06 +02:00
|
|
|
%if "%build_flavor" == "doc"
|
|
|
|
%make_build docs
|
|
|
|
ls -lart doc man
|
|
|
|
%else
|
2022-04-04 18:44:02 +02:00
|
|
|
dune_release_pkgs='unison,unison-gui,unison-fsmonitor'
|
|
|
|
%ocaml_dune_setup
|
|
|
|
%ocaml_dune_build
|
2023-07-07 16:09:06 +02:00
|
|
|
%endif
|
2007-01-16 00:40:09 +01:00
|
|
|
|
|
|
|
%install
|
2023-07-07 18:25:06 +02:00
|
|
|
echo '%%doc src/COPYING' > files
|
2023-07-07 16:09:06 +02:00
|
|
|
%if "%build_flavor" == "doc"
|
|
|
|
mkdir -vp %buildroot%_mandir/man1
|
|
|
|
cp -avt %buildroot%_mandir/man1 man/%pkg.1
|
2023-07-07 18:25:06 +02:00
|
|
|
echo '%%_mandir/man1/%%pkg.*' >> files
|
2023-07-07 17:30:30 +02:00
|
|
|
test -f doc/%pkg-manual.html && echo "%%doc $_" >> files
|
|
|
|
test -f doc/%pkg-manual.pdf && echo "%%doc $_" >> files
|
2023-07-07 16:09:06 +02:00
|
|
|
%else
|
2022-04-04 18:44:02 +02:00
|
|
|
%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
|
2021-04-29 22:46:05 +02:00
|
|
|
%if %{defined suse_update_desktop_file}
|
2007-01-16 00:40:09 +01:00
|
|
|
%suse_update_desktop_file -i %name Utility SyncUtility
|
2021-04-29 22:46:05 +02:00
|
|
|
%else
|
2023-07-07 16:09:06 +02:00
|
|
|
install -m 644 -D %{SOURCE1} %buildroot/%_datadir/applications/%name.desktop
|
|
|
|
%endif
|
2021-04-29 22:46:05 +02:00
|
|
|
%endif
|
2007-01-16 00:40:09 +01:00
|
|
|
|
2023-07-07 17:30:30 +02:00
|
|
|
%files -f files
|
2021-04-29 22:46:05 +02:00
|
|
|
%defattr(-,root,root,-)
|
2023-07-07 18:25:06 +02:00
|
|
|
%if "%build_flavor" == ""
|
2022-04-04 18:40:05 +02:00
|
|
|
%_datadir/applications/*
|
|
|
|
%_datadir/pixmaps/*
|
|
|
|
%_bindir/%name
|
|
|
|
%_bindir/%name-fsmonitor
|
2007-11-28 23:52:23 +01:00
|
|
|
|
2022-04-05 09:17:49 +02:00
|
|
|
%files text
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc src/COPYING
|
|
|
|
%_bindir/%name-text
|
2023-07-07 16:09:06 +02:00
|
|
|
%endif
|
2022-04-05 09:17:49 +02:00
|
|
|
|
2007-04-18 00:50:55 +02:00
|
|
|
%changelog
|