-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pigz for parallel decompression by containerd
- Loading branch information
1 parent
b1ac8ef
commit e2b7cfc
Showing
8 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "pigz" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
build = "build.rs" | ||
|
||
[lib] | ||
path = "pkg.rs" | ||
|
||
[[package.metadata.build-package.external-files]] | ||
url = "https://zlib.net/pigz/pigz-2.7.tar.gz" | ||
sha512 = "9f9f61de4a0307fc057dc4e31a98bd8d706d9e709ecde0be02a871534fddf6a1fe1321158aa72708603aaaece43f83d2423b127f7689b6219b23aea4f989e8f5" | ||
|
||
# RPM BuildRequires | ||
[build-dependencies] | ||
glibc = { path = "../glibc" } | ||
libz = { path = "../libz" } | ||
|
||
# RPM Requires | ||
[dependencies] | ||
# None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use std::process::{exit, Command}; | ||
|
||
fn main() -> Result<(), std::io::Error> { | ||
let ret = Command::new("buildsys").arg("build-package").status()?; | ||
if !ret.success() { | ||
exit(1); | ||
} | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Name: %{_cross_os}pigz | ||
Version: 2.7 | ||
Release: 1%{?dist} | ||
Summary: pigz is a parallel implementation of gzip which utilizes multiple cores | ||
License: Zlib AND Apache-2.0 | ||
URL: http://www.zlib.net/pigz | ||
Source0: https://zlib.net/pigz/pigz-%{version}.tar.gz | ||
BuildRequires: %{_cross_os}glibc-devel | ||
BuildRequires: %{_cross_os}libz-devel | ||
|
||
%description | ||
%{summary}. | ||
|
||
%prep | ||
%autosetup -n pigz-%{version} -p1 | ||
|
||
%global set_env \ | ||
%set_cross_build_flags \\\ | ||
export CC=%{_cross_target}-gcc \\\ | ||
%{nil} | ||
|
||
%build | ||
%set_env | ||
%make_build CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" | ||
|
||
%install | ||
install -d %{buildroot}%{_cross_bindir} | ||
install -p -m 0755 unpigz %{buildroot}%{_cross_bindir} | ||
|
||
%files | ||
%license README zopfli/COPYING | ||
%{_cross_bindir}/unpigz | ||
%{_cross_attribution_file} | ||
|
||
%changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// not used |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.