%global _hardened_build 1 Name: zbackup Version: 1.3 Release: 4%{?dist} Summary: A versatile deduplicating backup tool License: GPLv2+ with exceptions URL: http://zbackup.org/ Source0: https://github.com/zbackup/zbackup/archive/%{version}.tar.gz BuildRequires: cmake >= 2.8.2 BuildRequires: xz-devel BuildRequires: openssl-devel BuildRequires: protobuf-devel BuildRequires: zlib-devel BuildRequires: pandoc %description zbackup is a globally-deduplicating backup tool, based on the ideas found in rsync. Feed a large .tar into it, and it will store duplicate regions of it only once, then compress and optionally encrypt the result. Feed another .tar file, and it will also re-use any data found in any previous backups. This way only new changes are stored, and as long as the files are not very different, the amount of storage required is very low. %prep %setup -q %build mkdir -p objdir tartool/objdir pushd objdir %cmake .. make %{?_smp_mflags} popd pushd tartool/objdir %cmake .. make %{?_smp_mflags} %install make install -C objdir DESTDIR=%{buildroot} install tartool/objdir/tartool %{buildroot}%{_bindir}/ pandoc -s -f markdown_github -t man -V title=%{name} -V section=1 -V date="$(LANG=C date -d @$(stat -c'%Z' README.md) +'%B %d, %Y')" README.md -o %{name}.1 install -D -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 ln -s %{name}.1 %{buildroot}%{_mandir}/man1/tartool.1 %files %{_bindir}/* %{_mandir}/man1/*.1.* %license LICENSE LICENSE-GPL* %changelog * Fri Dec 20 2014 Vladimir Stackov - 1.3-4 - Modified in appliance with rhbz#1172525 * Fri Dec 12 2014 Vladimir Stackov - 1.3-3 - Produce hardened binaries * Thu Dec 11 2014 Vladimir Stackov - 1.3-2 - Modified in appliance with rhbz#1172525 - Added tartool * Wed Dec 10 2014 Vladimir Stackov - 1.3-1 - Initial version of the package