# JIT is supported on x86 and x86_64 only, bug #1309772 %ifarch %{ix86} x86_64 %bcond_without jit %else %bcond_with jit %endif Name: zpaq Version: 7.15 Release: 3%{?dist} Summary: Incremental journaling back-up archiver Group: Applications/Archiving # COPYING: Unlicense text and MIT text # Parts of libzpaq.cpp: Public Domain ## In zpaq-libs package # libzpaq.cpp: Unlicense and MIT and Public Domain License: Unlicense and Public Domain URL: http://mattmahoney.net/dc/%{name}.html Source0: http://mattmahoney.net/dc/%{name}%(echo %{version}|tr -d .).zip # Do not bundle zpaq library into zpaq tool, upstream does not want it # Patch0: zpaq-7.15-Build-a-shared-library.patch BuildRequires: coreutils BuildRequires: gcc-c++ BuildRequires: make BuildRequires: perl-podlators %description This is a journaling archiver optimized for user-level incremental backup of directory trees. It supports AES-256 encryption, 5 multi-threaded compression levels, and content-aware file fragment level deduplication. For backups it adds only files whose date has changed, and keeps both old and new versions. You can roll back the archive date to restore from old versions of the archive. The default compression level is faster than zip usually with better compression. zpaq uses a self-describing compressed format to allow for future improvements without breaking compatibility with older versions of the program. %package libs Summary: Library for ZPAQ compression and decompression Group: Development/Libraries License: Unlicense and MIT and Public Domain # libdivsufsort-lite-2.00 is bundled to libzpaq.cpp from # that # is simplified version of # . # New libdivsufsort upstream is . Provides: bundled(libdivsufsort-lite) = 2.00 %description libs This is a library for ZPAQ compression a decompression. %package devel Summary: Development files for ZPAQ library Group: Development/Libraries Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: gcc-c++%{?_isa} %description devel These are header files for developing applications that support ZPAQ compression. %prep %setup -c -n %{name}-%{version} -q %patch0 -p1 # Normalize EOLs for F in readme.txt; do tr -d "\r" < "${F}" > "${F}.new" touch -r "$F" "${F}.new" mv "${F}.new" "$F" done %build # -Wl,--as-needed to not require unused libm, bug #1310128 make %{?_smp_mflags} \ CXXFLAGS='%{optflags}' \ LDFLAGS='%{?__global_ldflags} -Wl,--as-needed' \ CPPFLAGS="${CPPFLAGS} -Dunix %{!?with_jit: -DNOJIT}" %check make check %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir} %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files %doc readme.txt %{_bindir}/zpaq %{_mandir}/man1/zpaq.1* %files libs %license COPYING %{_libdir}/libzpaq.so.* %files devel %{_includedir}/libzpaq.h %{_libdir}/*.so %changelog * Mon May 15 2017 Fedora Release Engineering - 7.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 7.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Nov 21 2016 Petr Pisar - 7.15-1 - 7.15 bump * Thu Apr 14 2016 Petr Pisar - 7.11-1 - 7.11 bump * Tue Apr 12 2016 Petr Pisar - 7.10-1 - 7.10 bump - License changed from (MIT and Public Domain) to (Unlicense and MIT and Public Domain) * Fri Feb 19 2016 Petr Pisar - 7.05-1 - 7.05 version packaged