2007-01-16 00:40:09 +01:00
|
|
|
#
|
2009-12-16 17:27:39 +01:00
|
|
|
# spec file for package unison (Version 2.32.52)
|
2007-01-16 00:40:09 +01:00
|
|
|
#
|
2010-10-08 00:14:22 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-19 00:18:08 +02:00
|
|
|
|
2007-01-16 00:40:09 +01:00
|
|
|
Name: unison
|
2007-10-08 12:31:34 +02:00
|
|
|
BuildRequires: gtk2-devel ncurses-devel update-desktop-files
|
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: lablgtk2-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: lablgtk2
|
|
|
|
%endif
|
2009-12-16 17:27:39 +01:00
|
|
|
License: GPLv3+
|
2007-01-16 00:40:09 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2007-10-08 12:31:34 +02:00
|
|
|
AutoReqProv: on
|
2009-12-16 17:27:39 +01:00
|
|
|
Version: 2.32.52
|
2010-10-08 00:14:22 +02:00
|
|
|
Release: 6
|
2007-01-16 00:40:09 +01:00
|
|
|
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
|
2007-11-28 23:52:23 +01:00
|
|
|
Source3: %name.png
|
2010-10-08 00:14:22 +02:00
|
|
|
Patch1: unison-ocaml.patch
|
2007-10-08 12:31:34 +02:00
|
|
|
Url: http://www.cis.upenn.edu/~bcpierce/unison
|
2007-01-16 00:40:09 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Summary: A file synchronization tool
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Benjamin Pierce <bcpierce@cis.upenn.edu>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-10-08 00:14:22 +02:00
|
|
|
%patch1 -p1
|
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
|
2007-01-16 00:40:09 +01:00
|
|
|
%ifarch s390 s390x
|
|
|
|
make UISTYLE=gtk2 NATIVE=false THREADS=false
|
|
|
|
%else
|
|
|
|
make UISTYLE=gtk2 NATIVE=true THREADS=true
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
2009-07-08 23:27:47 +02:00
|
|
|
install -m 755 -d $RPM_BUILD_ROOT/%{_bindir}
|
2007-01-16 00:40:09 +01:00
|
|
|
install -m 755 %name $RPM_BUILD_ROOT%{_bindir}
|
2007-11-28 23:52:23 +01:00
|
|
|
install -m 755 -d $RPM_BUILD_ROOT/%{_prefix}/share/pixmaps
|
|
|
|
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/%{_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
|
|
|
|
%ifarch s390 s390x
|
|
|
|
# do not strip non-optimized builds
|
|
|
|
export NO_BRP_STRIP_DEBUG=true
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT;
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc BUGS.txt CONTRIB COPYING NEWS README ROADMAP.txt TODO.txt unison-manual.html
|
|
|
|
/usr/share/applications/*
|
2007-11-28 23:52:23 +01:00
|
|
|
/usr/share/pixmaps/unison.png
|
2007-01-16 00:40:09 +01:00
|
|
|
%{_bindir}/%{name}
|
2007-11-28 23:52:23 +01:00
|
|
|
|
2007-04-18 00:50:55 +02:00
|
|
|
%changelog
|