SHA256
1
0
forked from pool/zchunk

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
This commit is contained in:
Martin Pluskal 2018-07-09 07:43:24 +00:00 committed by Git OBS Bridge
commit 149bfc0a4a
5 changed files with 146 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
zchunk-0.7.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:71637f518ac70def25352c9f1f78be8b6ae4870fcdcc1a18bd0b84ba9c0baad2
size 131000

4
zchunk.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Jul 5 11:32:00 UTC 2018 - Neal Gompa <ngompa13@gmail.com>
- Initial packaging based on Mageia package

115
zchunk.spec Normal file
View File

@ -0,0 +1,115 @@
#
# spec file for package zchunk
#
# Copyright (c) 2018 Neal Gompa <ngompa13@gmail.com>.
#
# 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