zchunk/zchunk.spec

89 lines
2.2 KiB
RPMSpec
Raw Normal View History

2022-01-05 14:55:58 +08:00
Name: zchunk
2023-05-30 11:37:40 +08:00
Version: 1.3.1
2022-11-07 14:13:05 +08:00
Release: 1
2022-01-05 14:55:58 +08:00
Summary: Compressed file format that allows easy deltas
2022-07-29 08:04:15 +08:00
License: BSD-2-Clause
2022-01-05 14:55:58 +08:00
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
This package contains the zchunk library, libzck.
%package devel
Summary: Headers for building against zchunk
Requires: %{name}-libs%{_isa} = %{version}-%{release}
%description devel
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=enabled -Dwith-zstd=enabled
%meson_build
%install
%meson_install
mkdir -p %{buildroot}%{_libexecdir}
install contrib/gen_xml_dictionary %{buildroot}%{_libexecdir}/zck_gen_xml_dictionary
%check
%meson_test
%ldconfig_scriptlets libs
%files
%doc README.md contrib
%{_bindir}/zck*
%{_bindir}/unzck
%{_libexecdir}/zck_gen_xml_dictionary
%{_mandir}/man1/*.gz
%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
2023-05-30 11:37:40 +08:00
* Tue May 30 2023 duyiwei <duyiwei@kylinos.cn> - 1.3.1-1
- upgrade version to 1.3.1
2022-11-07 14:13:05 +08:00
* Mon Nov 07 2022 duyiwei <duyiwei@kylinos.cn> - 1.2.3-1
- upgrade version to 1.2.3
2022-07-29 08:04:15 +08:00
* Fri Jul 29 2022 liukuo <liukuo@kylinos.cn> - 1.2.1-2
- License compliance rectification
2022-04-20 11:38:20 +00:00
* Wed Apr 20 2022 duyiwei <duyiwei@kylinos.cn> - 1.2.1-1
- upgrade to 1.2.1
2022-01-05 14:55:58 +08:00
* Wed Jan 5 2022 duyiwei <duyiwei@kylinos.cn> - 1.1.15-1
- Package init