unison/unison.spec

Name: unison
Summary: File-synchronization tool
Version: 2.40.63
Release: 1
License: GPLv3
Group: Applications/File
URL: http://www.cis.upenn.edu/~bcpierce/unison/
Description: Unison is a file-synchronization tool. 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, and then brought up to date by propagating the changes in each replica to the other.

CentOS 7 x86_64

The build could not start because the following file is missing: unison-2.40.63.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: unison-2.40.63.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: <unison-users$groups,yahoo,com>

%define desktop_vendor rpmforge

Summary: File-synchronization tool
Name: unison
Version: 2.40.63
Release: 1%{?dist}
License: GPLv3
Group: Applications/File
URL: http://www.cis.upenn.edu/~bcpierce/unison/

Source0: http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-%{version}.tar.gz
Source1: unison.png
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: desktop-file-utils
### emacs is needed for etags
BuildRequires: emacs
BuildRequires: ocaml
#BuildRequires: gtk2-devel
#BuildRequires: lablgtk >= 2.4.0

%description
Unison is a file-synchronization tool. 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, and then brought up to date by
propagating the changes in each replica to the other.

%prep
%setup

%{__cat} <<EOF >unison.desktop
[Desktop Entry]
Name=Unison File Synchronizer
GenericName=File Synchronizer
Exec=unison
Type=Application
Comment=Replicate files over different hosts or disks
Terminal=false
Icon=unison.png
StartupNotify=true
Encoding=UTF-8
EOF

%build
%{__make}

%install
%{__rm} -rf %{buildroot}

INSTALLDIR="%{buildroot}/usr/bin"
%{__mkdir_p} "$INSTALLDIR"
touch "$INSTALLDIR/unison"
%{__make} install INSTALLDIR="$INSTALLDIR/"

%{__rm} -f $INSTALLDIR/unison-*

%{__install} -Dp -m0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/unison.png

%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
desktop-file-install \
    --vendor %{desktop_vendor}                 \
    --add-category X-Red-Hat-Base              \
    --dir %{buildroot}%{_datadir}/applications \
    unison.desktop

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc CONTRIB COPYING NEWS README *.txt
%{_bindir}/unison
%{_datadir}/applications/%{desktop_vendor}-unison.desktop
%{_datadir}/pixmaps/unison.png

%changelog
* Sun Aug 28 2011 Yury V. Zaytsev <yury@shurup.com> - 2.40.63-1
- Using single-threaded make, smpflags are not handled correctly.
- Updated to release 2.40.63.

* Tue Jan 05 2010 Dag Wieers <dag@wieers.com> - 2.32.52-1
- Updated to release 2.32.52.

* Sun Feb 03 2008 Dag Wieers <dag@wieers.com> - 2.27.57-1
- Updated to release 2.27.57.

* Fri Dec 02 2005 Dag Wieers <dag@wieers.com> - 2.13.16-1
- Updated to release 2.13.16.

* Thu Aug 11 2005 Dag Wieers <dag@wieers.com> - 2.12.0-1
- Initial package. (using DAR)