Hello community, here is the log from the commit of package zpaq for openSUSE:Factory checked in at 2016-03-26 15:24:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/zpaq (Old) and /work/SRC/openSUSE:Factory/.zpaq.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "zpaq" Changes: -------- --- /work/SRC/openSUSE:Factory/zpaq/zpaq.changes 2016-01-04 09:22:29.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.zpaq.new/zpaq.changes 2016-03-26 15:24:36.000000000 +0100 @@ -1,0 +2,12 @@ +Sun Mar 19 14:03:25 UTC 2016 - [email protected] + +- Update to version 7.07 + * Fixes v7.06 bug in creating multipart encrypted archives with + incorrectly salted index +- Changes for 7.06 + * Fixes handling of some corrupted archives. Conforms to new spec + zpaq205.pdf. New man page, Makefile, COPYING +- Ship shared library and devel package as well +- Various spec file improvements + +------------------------------------------------------------------- Old: ---- zpaq705.zip New: ---- zpaq707.zip ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ zpaq.spec ++++++ --- /var/tmp/diff_new_pack.CmHDmU/_old 2016-03-26 15:24:38.000000000 +0100 +++ /var/tmp/diff_new_pack.CmHDmU/_new 2016-03-26 15:24:38.000000000 +0100 @@ -16,31 +16,85 @@ # +%define soname lib%{name} +%define sover 0.1 +%define sonum 0_1 +%define dversion 707 Name: zpaq -Version: 7.05 +Version: 7.07 Release: 0 Summary: A journaling, incremental, deduplicating archiver for Windows and Linux License: SUSE-Public-Domain and MIT Group: Productivity/Archiving/Compression Url: http://mattmahoney.net/dc/zpaq.html -Source0: http://mattmahoney.net/dc/zpaq705.zip +Source0: http://mattmahoney.net/dc/zpaq%{dversion}.zip Source1: %{name}.changes BuildRequires: dos2unix BuildRequires: gcc-c++ -BuildRequires: help2man BuildRequires: unzip BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -zpaq is a journaling, incremental, deduplicating archiver for Windows and Linux. "Journaling" means that when you update a file or directory, both the old and new versions are saved. You can extract from the archive as it existed at any time in the past. "Incremental", means that when you back up your entire hard drive, for example: +zpaq is a journaling, incremental, deduplicating archiver for Windows and +Linux. "Journaling" means that when you update a file or directory, both +the old and new versions are saved. You can extract from the archive as it +existed at any time in the past. "Incremental", means that when you back up +your entire hard drive, for example: zpaq -add e:backup.zpaq c:\* -that only those files whose last-modified date has changed since the previous backup are added. For 100 GB of files, this typically takes 1-2 minutes, vs. a few hours to create the first version. "Deduplicating" means that identical files or fragments are stored only once to save time and space. +that only those files whose last-modified date has changed since the +previous backup are added. For 100 GB of files, this typically takes 1-2 +minutes, vs. a few hours to create the first version. "Deduplicating" means +that identical files or fragments are stored only once to save time and +space. + +%package -n %{soname}%{sonum} +Summary: Shared library for zpaq +Group: System/Libraries + +%description -n %{soname}%{sonum} +zpaq is a journaling, incremental, deduplicating archiver for Windows and +Linux. "Journaling" means that when you update a file or directory, both +the old and new versions are saved. You can extract from the archive as it +existed at any time in the past. "Incremental", means that when you back up +your entire hard drive, for example: + + zpaq -add e:backup.zpaq c:\* + +that only those files whose last-modified date has changed since the +previous backup are added. For 100 GB of files, this typically takes 1-2 +minutes, vs. a few hours to create the first version. "Deduplicating" means +that identical files or fragments are stored only once to save time and +space. + +This package contains shared library + +%package -n %{soname}-devel +Summary: Development files for zpaq +Group: Development/Languages/C and C++ +Requires: %{soname}%{sonum} = %{version}-%{release} + +%description -n %{soname}-devel +zpaq is a journaling, incremental, deduplicating archiver for Windows and +Linux. "Journaling" means that when you update a file or directory, both +the old and new versions are saved. You can extract from the archive as it +existed at any time in the past. "Incremental", means that when you back up +your entire hard drive, for example: + + zpaq -add e:backup.zpaq c:\* + +that only those files whose last-modified date has changed since the +previous backup are added. For 100 GB of files, this typically takes 1-2 +minutes, vs. a few hours to create the first version. "Deduplicating" means +that identical files or fragments are stored only once to save time and +space. + +This package contains development files %prep -%setup -q -c %{name}705 -dos2unix readme.txt +%setup -q -c %{name}%{dversion} +dos2unix readme.txt COPYING # remove date and time from binary modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE1}")" DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" @@ -48,19 +102,36 @@ find . -name '*.cpp' |\ xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" - %build -c++ %{optflags} -Dunix zpaq.cpp libzpaq.cpp -pthread -o zpaq -help2man -h "" -v "" --no-info ./zpaq > %{name}.1 +make %{?_smp_mflags} CXXFLAGS="%{optflags}" %install -install -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name} -install -D -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 +make \ + install \ + DESTDIR="%{?buildroot}" \ + LIBDIR="%{_libdir}" \ + BINDIR="%{_bindir}" \ + MANDIR="%{_mandir}" \ + INCLUDEDIR="%{_includedir}" \ + +%post -n %{soname}%{sonum} -p /sbin/ldconfig +%postun -n %{soname}%{sonum} -p /sbin/ldconfig %files %defattr(-,root,root,-) -%doc readme.txt +%doc COPYING readme.txt %{_bindir}/%{name} -%{_mandir}/man1/%{name}.1.gz +%{_mandir}/man1/%{name}.1%{ext_man} + +%files -n %{soname}%{sonum} +%defattr(-,root,root,-) +%doc COPYING +%{_libdir}/%{soname}.so.%{sover} + +%files -n %{soname}-devel +%defattr(-,root,root,-) +%doc COPYING +%{_libdir}/%{soname}.so +%{_includedir}/%{soname}.h %changelog
