commit 149bfc0a4a4a62596a20495f97fd6d3ccfa64761d5517e744acacf61cb5224f0 Author: Martin Pluskal Date: Mon Jul 9 07:43:24 2018 +0000 Accepting request 621144 from home:Pharaoh_Atem:SUSE_zck - Initial packaging based on Mageia package OBS-URL: https://build.opensuse.org/request/show/621144 OBS-URL: https://build.opensuse.org/package/show/Archiving/zchunk?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/zchunk-0.7.5.tar.gz b/zchunk-0.7.5.tar.gz new file mode 100644 index 0000000..1923917 --- /dev/null +++ b/zchunk-0.7.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71637f518ac70def25352c9f1f78be8b6ae4870fcdcc1a18bd0b84ba9c0baad2 +size 131000 diff --git a/zchunk.changes b/zchunk.changes new file mode 100644 index 0000000..156a81d --- /dev/null +++ b/zchunk.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Jul 5 11:32:00 UTC 2018 - Neal Gompa + +- Initial packaging based on Mageia package diff --git a/zchunk.spec b/zchunk.spec new file mode 100644 index 0000000..d493260 --- /dev/null +++ b/zchunk.spec @@ -0,0 +1,115 @@ +# +# spec file for package zchunk +# +# Copyright (c) 2018 Neal Gompa . +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%global somajor 1 +%global libname libzck%{somajor} +%global devname libzck-devel + + +Name: zchunk +Version: 0.7.5 +Release: 0 +Summary: Compressed file format that allows easy deltas +Group: Productivity/Archiving/Compression +License: BSD-2-Clause AND MIT +URL: https://github.com/zchunk/zchunk +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(openssl) +Requires: %{libname}%{?_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 -n %{libname} +Summary: Zchunk library +Group: System/Libraries + +%description -n %{libname} +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 -n %{devname} +Summary: Headers for building against zchunk +Group: Development/Libraries/C and C++ +Provides: %{name}-devel = %{name}-%{release} +Provides: %{name}-devel%{?_isa} = %{name}-%{release} +Requires: %{libname}%{?_isa} = %{version}-%{release} + +%description -n %{devname} +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 -p1 +# Remove bundled sha libraries +rm -rf src/lib/hash/sha* + +%build +%meson -Dwith-zstd=yes -Dwith-openssl=yes +%meson_build + +%install +%meson_install + +%check +%meson_test + + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files +%doc README.md +%license LICENSE +%{_bindir}/zck* +%{_bindir}/unzck + +%files -n %{libname} +%license LICENSE +%doc README.md +%{_libdir}/libzck.so.%{somajor} +%{_libdir}/libzck.so.%{version} + +%files -n %{devname} +%doc zchunk_format.txt +%{_libdir}/libzck.so +%{_libdir}/pkgconfig/zck.pc +%{_includedir}/zck.h + + +%changelog