From 100eaaefbd96925ab2c0f91cd0b6b78453c09b66 Mon Sep 17 00:00:00 2001 From: Vladimir Stackov Date: Dec 21 2014 23:46:15 +0000 Subject: Initial import (#1172525) --- diff --git a/.gitignore b/.gitignore index e69de29..a309f0f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/1.3.tar.gz diff --git a/sources b/sources index e69de29..1ded874 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +53a07960447ae7a7b1d71f71798080a7 1.3.tar.gz diff --git a/zbackup.spec b/zbackup.spec new file mode 100644 index 0000000..e0327b0 --- /dev/null +++ b/zbackup.spec @@ -0,0 +1,65 @@ +%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 19 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