diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b8c13d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/zchunk-0.7.5.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ebbb2bb..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# zchunk - -The zchunk package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..adb0bb8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (zchunk-0.7.5.tar.gz) = 6525f1cba6dfb7b6cb626bc6e99319ee80084abd4834574ab519329f95c1e713b1fc4258e6431a928801e726a43c5f4bf23a9ec6fc88a943c272313acbbdefaf diff --git a/zchunk.spec b/zchunk.spec new file mode 100644 index 0000000..65e5513 --- /dev/null +++ b/zchunk.spec @@ -0,0 +1,148 @@ +Name: zchunk +Version: 0.7.5 +Release: 4%{?dist} +Summary: Compressed file format that allows easy deltas +License: BSD and MIT +URL: https://github.com/zchunk/zchunk +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +BuildRequires: gcc +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(openssl) +BuildRequires: meson +Requires: %{name}-libs%{_isa} = %{version}-%{release} +Provides: bundled(buzhash-urlblock) = 0.1 + +%description +zchunk is a compressed file format that splits the file into independent +chunks. This allows you to only download the differences when downloading a +new version of the file, and also makes zchunk files efficient over rsync. +zchunk files are protected with strong checksums to verify that the file you +downloaded is in fact the file you wanted. + +%package libs +Summary: Zchunk library + +%description libs +zchunk is a compressed file format that splits the file into independent +chunks. This allows you to only download the differences when downloading a +new version of the file, and also makes zchunk files efficient over rsync. +zchunk files are protected with strong checksums to verify that the file you +downloaded is in fact the file you wanted. + +This package contains the zchunk library, libzck. + +%package devel +Summary: Headers for building against zchunk +Requires: %{name}-libs%{_isa} = %{version}-%{release} + +%description devel +zchunk is a compressed file format that splits the file into independent +chunks. This allows you to only download the differences when downloading a +new version of the file, and also makes zchunk files efficient over rsync. +zchunk files are protected with strong checksums to verify that the file you +downloaded is in fact the file you wanted. + +This package contains the headers necessary for building against the zchunk +library, libzck. + +%prep +%autosetup +# Remove bundled sha libraries +rm -rf src/lib/hash/sha* + +%build +%meson -Dwith-openssl=yes -Dwith-zstd=yes +%meson_build + +%install +%meson_install + +%check +%meson_test + +%ldconfig_scriptlets libs + +%files +%doc README.md +%{_bindir}/zck* +%{_bindir}/unzck + +%files libs +%license LICENSE +%doc README.md +%{_libdir}/libzck.so.* + +%files devel +%doc zchunk_format.txt +%{_libdir}/libzck.so +%{_libdir}/pkgconfig/zck.pc +%{_includedir}/zck.h + +%changelog +* Wed Jul 04 2018 Jonathan Dieter - 0.7.5-4 +- Fix ldconfig scriptlets to run on libs package +- Rename zchunk-libs-devel to zchunk-devel +- Add BR: gcc +- Explicitly enable zstd and openssl support +- Simplify file globs + +* Tue Jul 03 2018 Jonathan Dieter - 0.7.5-1 +- Split libs into separate package +- Fix license +- Provide bundled buzhash +- Fix punctuation +- Simplify source0 using url macro +- Remove bundled sha library and add dependency on OpenSSL + +* Mon Jul 02 2018 Jonathan Dieter - 0.7.4-2 +- Add zchunk format definition to -devel documentation + +* Fri Jun 22 2018 Jonathan Dieter - 0.7.4-1 +- Add --stdout argument to unzck +- Use meson native versioning rather than manual header and fix + pkgconfig output + +* Tue Jun 12 2018 Jonathan Dieter - 0.7.2-1 +- Rename zck_get_dl_range to zck_get_missing_range because it + was too similar to the unrelated zck_dl_get_range function + +* Mon Jun 11 2018 Jonathan Dieter - 0.7.1-1 +- New functions in the library + +* Fri Jun 08 2018 Jonathan Dieter - 0.7.0-1 +- Massive API rework in preparation for ABI stability guarantee + +* Wed Jun 06 2018 Jonathan Dieter - 0.6.2-1 +- Header and API cleanup +- Fix warnings + +* Tue Jun 05 2018 Jonathan Dieter - 0.6.0-1 +- Massive rework of zckdl utility +- Main library no longer depends on curl, only zckdl utility +- Rework API +- Support for servers that have different maximum ranges in a request + +* Thu May 10 2018 Jonathan Dieter - 0.5.2-1 +- Add new zck_get_range() function +- Add tests +- Range functions are no longer prefixed with "Range: bytes=" + +* Wed May 09 2018 Jonathan Dieter - 0.5.0-1 +- Command line utilities now provide help and usage examples and take + proper flags +- Reading a zchunk header no longer automatically reads the dictionary + +* Sun Apr 29 2018 Jonathan Dieter - 0.4.0-1 +- Next release with incompatible file format changes +- File format has been reworked to allow checking of the header checksum + without reading full header into memory at once +- Terminology changes for the header + +* Fri Apr 20 2018 Jonathan Dieter - 0.3.0-1 +- Next release with incompatible file format changes +- File format now supports streams and signatures + +* Tue Apr 17 2018 Jonathan Dieter - 0.2.2-1 +- First release +- Fix build on EL7