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
|
|
|
#
|
2017-11-23 09:43:47 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-01-16 00:40:09 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-04-01 12:36:52 +02:00
|
|
|
|
2007-01-16 00:40:09 +01:00
|
|
|
Name: unison
|
2017-11-23 09:43:47 +01:00
|
|
|
Version: 2.48.4
|
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
|
|
|
|
Url: http://www.cis.upenn.edu/~bcpierce/unison
|
|
|
|
Source0: http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-%{version}.tar.gz
|
|
|
|
Source1: http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-%{version}-manual.html
|
|
|
|
Source2: %{name}.desktop
|
|
|
|
Source3: %{name}.png
|
2012-02-16 15:02:33 +01:00
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: ncurses-devel
|
2019-11-03 12:19:05 +01:00
|
|
|
BuildRequires: ocaml-lablgtk2-devel < 2.18.8
|
2016-07-20 09:17:29 +02:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 4.03.0
|
2012-02-16 15:02:33 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2013-01-14 12:04:00 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:40:09 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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
|
2017-11-23 09:43:47 +01:00
|
|
|
%setup -qn src
|
2007-01-16 00:40:09 +01:00
|
|
|
|
|
|
|
%build
|
2009-06-20 04:52:40 +02:00
|
|
|
# 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
|
2017-10-11 23:03:05 +02:00
|
|
|
%if 0%{?ocaml_native_compiler}
|
2013-03-08 09:55:08 +01:00
|
|
|
NATIVE=true
|
2007-01-16 00:40:09 +01:00
|
|
|
%else
|
2013-03-08 09:55:08 +01:00
|
|
|
NATIVE=false
|
2007-01-16 00:40:09 +01:00
|
|
|
%endif
|
2013-03-08 09:55:08 +01:00
|
|
|
make UISTYLE=gtk2 NATIVE=$NATIVE THREADS=true
|
2007-01-16 00:40:09 +01:00
|
|
|
|
|
|
|
%install
|
2011-04-01 12:36:42 +02:00
|
|
|
install -m 755 -d %{buildroot}/%{_bindir}
|
2015-10-19 22:52:31 +02:00
|
|
|
install -m 755 %{name} %{buildroot}%{_bindir}
|
|
|
|
install -m 755 %{name}-fsmonitor %{buildroot}%{_bindir}
|
2011-04-01 12:36:42 +02:00
|
|
|
install -m 755 -d %{buildroot}/%{_prefix}/share/pixmaps
|
|
|
|
install -m 644 %{SOURCE3} %{buildroot}/%{_prefix}/share/pixmaps
|
2007-01-16 00:40:09 +01:00
|
|
|
install -m 644 %{SOURCE1} unison-manual.html
|
|
|
|
%suse_update_desktop_file -i %name Utility SyncUtility
|
|
|
|
|
|
|
|
%files
|
2011-04-01 12:36:42 +02:00
|
|
|
%defattr(-,root,root)
|
2013-01-14 12:04:00 +01:00
|
|
|
%doc BUGS.txt CONTRIB COPYING NEWS README ROADMAP.txt unison-manual.html
|
2011-04-01 12:36:42 +02:00
|
|
|
%{_datadir}/applications/*
|
|
|
|
%{_datadir}/pixmaps/unison.png
|
2007-01-16 00:40:09 +01:00
|
|
|
%{_bindir}/%{name}
|
2015-10-19 22:52:31 +02:00
|
|
|
%{_bindir}/%{name}-fsmonitor
|
2007-11-28 23:52:23 +01:00
|
|
|
|
2007-04-18 00:50:55 +02:00
|
|
|
%changelog
|