File bigsync.spec of Package bigsync

#
# spec file for package bigsync
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           bigsync
Version:        0.0.7
Release:        0
Summary:        Incremental Backup Tool for Large Files over Slow Links
License:        GPL-3.0
Group:          Productivity/Archiving/Backup
Url:            https://github.com/egorFiNE/bigsync
Source0:        bigsync-%{version}.tar.gz
Patch1:         bigsync-makefile.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Bigsync is a tool to incrementally back up a big file to a slow destination
(think network media or a cheap NAS). The most common cases for bigsync are
disk images, virtual operating systems, or encrypted volumes. It will read the
source file in chunks, calculating checksums for each one. It will compare them
with previously stored values for the destination file and overwrite changed
chunks if checksums differ. This way, it minimizes the access to slow target
media.

%prep
%setup -q
%patch1

%build
make %{?_smp_mflags} \
  CC="gcc" \
  OPTFLAGS="%{optflags}"

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags} \
  PREFIX="%{_prefix}" \
  MANDIR="%{_mandir}"

%files
%defattr(-,root,root)
%doc LICENSE README
%{_bindir}/bigsync
%{_mandir}/man1/bigsync.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by