diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 00000000..cb378634 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,38 @@ +--- +# See the documentation for more information: +# https://packit.dev/docs/configuration/ + +# name in upstream package repository or registry +upstream_package_name: bootupd +upstream_tag_template: v{version} + +downstream_package_name: rust-bootupd + +specfile_path: contrib/packaging/bootupd.spec + +files_to_sync: + - .packit.yaml + +packages: + bootupd-fedora: + pkg_tool: fedpkg + +jobs: +- job: propose_downstream + trigger: release + packages: [bootupd-fedora] + dist_git_branches: + fedora-rawhide: + fast_forward_merge_into: [fedora-latest-stable] + +- job: koji_build + trigger: commit + packages: [bootupd-fedora] + dist_git_branches: + - fedora-all + +- job: bodhi_update + trigger: commit + packages: [bootupd-fedora] + dist_git_branches: + - fedora-all diff --git a/xtask/src/main.rs b/xtask/src/main.rs index cf5f395f..65ba7352 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -155,9 +155,10 @@ fn impl_package(sh: &Shell) -> Result { ) .run()?; } - // Compress with zstd - let srcpath: Utf8PathBuf = format!("{p}.zstd").into(); - cmd!(sh, "zstd --rm -f {p} -o {srcpath}").run()?; + // Compress with gzip + let srcpath: Utf8PathBuf = format!("target/{namev}.crate").into(); + cmd!(sh, "gzip --force --best {p}").run()?; + std::fs::rename(format!("{p}.gz"), &srcpath)?; Ok(Package { version: v, @@ -176,8 +177,7 @@ fn impl_srpm(sh: &Shell) -> Result { let pkg = impl_package(sh)?; vendor(sh)?; let td = tempfile::tempdir_in("target").context("Allocating tmpdir")?; - let td = td.into_path(); - let td: &Utf8Path = td.as_path().try_into().unwrap(); + let td: &Utf8Path = td.path().try_into().unwrap(); let srcpath = td.join(pkg.srcpath.file_name().unwrap()); std::fs::rename(pkg.srcpath, srcpath)?; let v = pkg.version;