|
|
|
@ -1,11 +1,16 @@
|
|
|
|
|
# Generated by rust2rpm 15
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
|
|
|
|
|
# Whether to use vendor tarball. This should stay off in the steady state
|
|
|
|
|
# when all versioned crate depedencies are packaged, but can be occasionally
|
|
|
|
|
# enabled in order to decouple lifecycles.
|
|
|
|
|
%global with_bundled 1
|
|
|
|
|
|
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
%global crate zincati
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.0.17
|
|
|
|
|
Version: 0.0.23
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Update agent for Fedora CoreOS
|
|
|
|
|
|
|
|
|
@ -14,15 +19,244 @@ License: ASL 2.0
|
|
|
|
|
URL: https://crates.io/crates/%{crate}
|
|
|
|
|
Source0: %{crates_source}
|
|
|
|
|
Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
|
|
|
|
Patch0: zincati-fix-metadata.diff
|
|
|
|
|
%if ! 0%{?with_bundled}
|
|
|
|
|
# Fedora-specific crates overrides, generated with:
|
|
|
|
|
# git diff --no-prefix zincati-*/Cargo.toml
|
|
|
|
|
#Patch0: fedora-zincati-cargo-manifest-overrides.diff
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
|
|
|
|
|
|
Requires: polkit
|
|
|
|
|
|
|
|
|
|
# List of bundled crate in vendor tarball, generated with:
|
|
|
|
|
# cargo metadata --locked --format-version 1 | CRATE_NAME="zincati" ../bundled-provides.jq
|
|
|
|
|
%if 0%{?with_bundled}
|
|
|
|
|
Provides: bundled(crate(actix)) = 0.12.0
|
|
|
|
|
Provides: bundled(crate(actix-rt)) = 2.2.0
|
|
|
|
|
Provides: bundled(crate(actix_derive)) = 0.6.0
|
|
|
|
|
Provides: bundled(crate(aho-corasick)) = 0.7.18
|
|
|
|
|
Provides: bundled(crate(ansi_term)) = 0.11.0
|
|
|
|
|
Provides: bundled(crate(anyhow)) = 1.0.42
|
|
|
|
|
Provides: bundled(crate(assert-json-diff)) = 2.0.1
|
|
|
|
|
Provides: bundled(crate(async-io)) = 1.6.0
|
|
|
|
|
Provides: bundled(crate(atty)) = 0.2.14
|
|
|
|
|
Provides: bundled(crate(autocfg)) = 1.0.1
|
|
|
|
|
Provides: bundled(crate(base64)) = 0.13.0
|
|
|
|
|
Provides: bundled(crate(bit-set)) = 0.5.2
|
|
|
|
|
Provides: bundled(crate(bit-vec)) = 0.6.3
|
|
|
|
|
Provides: bundled(crate(bitflags)) = 1.2.1
|
|
|
|
|
Provides: bundled(crate(block-buffer)) = 0.9.0
|
|
|
|
|
Provides: bundled(crate(bumpalo)) = 3.7.0
|
|
|
|
|
Provides: bundled(crate(byteorder)) = 1.4.3
|
|
|
|
|
Provides: bundled(crate(bytes)) = 1.0.1
|
|
|
|
|
Provides: bundled(crate(cache-padded)) = 1.1.1
|
|
|
|
|
Provides: bundled(crate(cc)) = 1.0.68
|
|
|
|
|
Provides: bundled(crate(cfg-if)) = 0.1.10
|
|
|
|
|
Provides: bundled(crate(cfg-if)) = 1.0.0
|
|
|
|
|
Provides: bundled(crate(chrono)) = 0.4.19
|
|
|
|
|
Provides: bundled(crate(clap)) = 2.33.3
|
|
|
|
|
Provides: bundled(crate(colored)) = 2.0.0
|
|
|
|
|
Provides: bundled(crate(concurrent-queue)) = 1.2.2
|
|
|
|
|
Provides: bundled(crate(core-foundation)) = 0.9.1
|
|
|
|
|
Provides: bundled(crate(core-foundation-sys)) = 0.8.2
|
|
|
|
|
Provides: bundled(crate(cpufeatures)) = 0.1.5
|
|
|
|
|
Provides: bundled(crate(crossbeam-channel)) = 0.5.1
|
|
|
|
|
Provides: bundled(crate(crossbeam-utils)) = 0.8.5
|
|
|
|
|
Provides: bundled(crate(crypto-mac)) = 0.11.0
|
|
|
|
|
Provides: bundled(crate(derivative)) = 2.2.0
|
|
|
|
|
Provides: bundled(crate(difference)) = 2.0.0
|
|
|
|
|
Provides: bundled(crate(digest)) = 0.9.0
|
|
|
|
|
Provides: bundled(crate(encoding_rs)) = 0.8.28
|
|
|
|
|
Provides: bundled(crate(enumflags2)) = 0.6.4
|
|
|
|
|
Provides: bundled(crate(enumflags2_derive)) = 0.6.4
|
|
|
|
|
Provides: bundled(crate(env_logger)) = 0.9.0
|
|
|
|
|
Provides: bundled(crate(envsubst)) = 0.2.0
|
|
|
|
|
Provides: bundled(crate(fail)) = 0.4.0
|
|
|
|
|
Provides: bundled(crate(fastrand)) = 1.4.1
|
|
|
|
|
Provides: bundled(crate(filetime)) = 0.2.14
|
|
|
|
|
Provides: bundled(crate(fn-error-context)) = 0.2.0
|
|
|
|
|
Provides: bundled(crate(fnv)) = 1.0.7
|
|
|
|
|
Provides: bundled(crate(foreign-types)) = 0.3.2
|
|
|
|
|
Provides: bundled(crate(foreign-types-shared)) = 0.1.1
|
|
|
|
|
Provides: bundled(crate(form_urlencoded)) = 1.0.1
|
|
|
|
|
Provides: bundled(crate(futures)) = 0.3.16
|
|
|
|
|
Provides: bundled(crate(futures-channel)) = 0.3.16
|
|
|
|
|
Provides: bundled(crate(futures-core)) = 0.3.16
|
|
|
|
|
Provides: bundled(crate(futures-executor)) = 0.3.16
|
|
|
|
|
Provides: bundled(crate(futures-io)) = 0.3.16
|
|
|
|
|
Provides: bundled(crate(futures-lite)) = 1.12.0
|
|
|
|
|
Provides: bundled(crate(futures-macro)) = 0.3.16
|
|
|
|
|
Provides: bundled(crate(futures-sink)) = 0.3.16
|
|
|
|
|
Provides: bundled(crate(futures-task)) = 0.3.16
|
|
|
|
|
Provides: bundled(crate(futures-util)) = 0.3.16
|
|
|
|
|
Provides: bundled(crate(generic-array)) = 0.14.4
|
|
|
|
|
Provides: bundled(crate(getrandom)) = 0.1.16
|
|
|
|
|
Provides: bundled(crate(getrandom)) = 0.2.3
|
|
|
|
|
Provides: bundled(crate(glob)) = 0.3.0
|
|
|
|
|
Provides: bundled(crate(h2)) = 0.3.3
|
|
|
|
|
Provides: bundled(crate(hashbrown)) = 0.11.2
|
|
|
|
|
Provides: bundled(crate(heck)) = 0.3.3
|
|
|
|
|
Provides: bundled(crate(hermit-abi)) = 0.1.19
|
|
|
|
|
Provides: bundled(crate(hmac)) = 0.11.0
|
|
|
|
|
Provides: bundled(crate(http)) = 0.2.4
|
|
|
|
|
Provides: bundled(crate(http-body)) = 0.4.2
|
|
|
|
|
Provides: bundled(crate(httparse)) = 1.4.1
|
|
|
|
|
Provides: bundled(crate(httpdate)) = 1.0.1
|
|
|
|
|
Provides: bundled(crate(humantime)) = 2.1.0
|
|
|
|
|
Provides: bundled(crate(hyper)) = 0.14.9
|
|
|
|
|
Provides: bundled(crate(hyper-tls)) = 0.5.0
|
|
|
|
|
Provides: bundled(crate(idna)) = 0.2.3
|
|
|
|
|
Provides: bundled(crate(indexmap)) = 1.7.0
|
|
|
|
|
Provides: bundled(crate(instant)) = 0.1.9
|
|
|
|
|
Provides: bundled(crate(intervaltree)) = 0.2.6
|
|
|
|
|
Provides: bundled(crate(ipnet)) = 2.3.1
|
|
|
|
|
Provides: bundled(crate(itoa)) = 0.4.7
|
|
|
|
|
Provides: bundled(crate(js-sys)) = 0.3.51
|
|
|
|
|
Provides: bundled(crate(lazy_static)) = 1.4.0
|
|
|
|
|
Provides: bundled(crate(libc)) = 0.2.98
|
|
|
|
|
Provides: bundled(crate(liboverdrop)) = 0.0.2
|
|
|
|
|
Provides: bundled(crate(libsystemd)) = 0.3.1
|
|
|
|
|
Provides: bundled(crate(lock_api)) = 0.4.4
|
|
|
|
|
Provides: bundled(crate(log)) = 0.4.14
|
|
|
|
|
Provides: bundled(crate(maplit)) = 1.0.2
|
|
|
|
|
Provides: bundled(crate(matches)) = 0.1.8
|
|
|
|
|
Provides: bundled(crate(memchr)) = 2.4.0
|
|
|
|
|
Provides: bundled(crate(memoffset)) = 0.6.4
|
|
|
|
|
Provides: bundled(crate(mime)) = 0.3.16
|
|
|
|
|
Provides: bundled(crate(mio)) = 0.7.13
|
|
|
|
|
Provides: bundled(crate(miow)) = 0.3.7
|
|
|
|
|
Provides: bundled(crate(mockito)) = 0.30.0
|
|
|
|
|
Provides: bundled(crate(native-tls)) = 0.2.7
|
|
|
|
|
Provides: bundled(crate(nb-connect)) = 1.2.0
|
|
|
|
|
Provides: bundled(crate(nix)) = 0.17.0
|
|
|
|
|
Provides: bundled(crate(nix)) = 0.22.0
|
|
|
|
|
Provides: bundled(crate(ntapi)) = 0.3.6
|
|
|
|
|
Provides: bundled(crate(num-integer)) = 0.1.44
|
|
|
|
|
Provides: bundled(crate(num-traits)) = 0.2.14
|
|
|
|
|
Provides: bundled(crate(num_cpus)) = 1.13.0
|
|
|
|
|
Provides: bundled(crate(once_cell)) = 1.8.0
|
|
|
|
|
Provides: bundled(crate(opaque-debug)) = 0.3.0
|
|
|
|
|
Provides: bundled(crate(openssl)) = 0.10.35
|
|
|
|
|
Provides: bundled(crate(openssl-probe)) = 0.1.4
|
|
|
|
|
Provides: bundled(crate(openssl-sys)) = 0.9.65
|
|
|
|
|
Provides: bundled(crate(ordered-float)) = 2.7.0
|
|
|
|
|
Provides: bundled(crate(parking)) = 2.0.0
|
|
|
|
|
Provides: bundled(crate(parking_lot)) = 0.11.1
|
|
|
|
|
Provides: bundled(crate(parking_lot_core)) = 0.8.3
|
|
|
|
|
Provides: bundled(crate(percent-encoding)) = 2.1.0
|
|
|
|
|
Provides: bundled(crate(pin-project-lite)) = 0.2.7
|
|
|
|
|
Provides: bundled(crate(pin-utils)) = 0.1.0
|
|
|
|
|
Provides: bundled(crate(pkg-config)) = 0.3.19
|
|
|
|
|
Provides: bundled(crate(polling)) = 2.1.0
|
|
|
|
|
Provides: bundled(crate(ppv-lite86)) = 0.2.10
|
|
|
|
|
Provides: bundled(crate(proc-macro-crate)) = 0.1.5
|
|
|
|
|
Provides: bundled(crate(proc-macro-crate)) = 1.0.0
|
|
|
|
|
Provides: bundled(crate(proc-macro-error)) = 1.0.4
|
|
|
|
|
Provides: bundled(crate(proc-macro-error-attr)) = 1.0.4
|
|
|
|
|
Provides: bundled(crate(proc-macro-hack)) = 0.5.19
|
|
|
|
|
Provides: bundled(crate(proc-macro-nested)) = 0.1.7
|
|
|
|
|
Provides: bundled(crate(proc-macro2)) = 1.0.27
|
|
|
|
|
Provides: bundled(crate(prometheus)) = 0.12.0
|
|
|
|
|
Provides: bundled(crate(proptest)) = 1.0.0
|
|
|
|
|
Provides: bundled(crate(quick-error)) = 1.2.3
|
|
|
|
|
Provides: bundled(crate(quick-error)) = 2.0.1
|
|
|
|
|
Provides: bundled(crate(quote)) = 1.0.9
|
|
|
|
|
Provides: bundled(crate(rand)) = 0.7.3
|
|
|
|
|
Provides: bundled(crate(rand)) = 0.8.4
|
|
|
|
|
Provides: bundled(crate(rand_chacha)) = 0.2.2
|
|
|
|
|
Provides: bundled(crate(rand_chacha)) = 0.3.1
|
|
|
|
|
Provides: bundled(crate(rand_core)) = 0.5.1
|
|
|
|
|
Provides: bundled(crate(rand_core)) = 0.6.3
|
|
|
|
|
Provides: bundled(crate(rand_hc)) = 0.2.0
|
|
|
|
|
Provides: bundled(crate(rand_hc)) = 0.3.1
|
|
|
|
|
Provides: bundled(crate(rand_xorshift)) = 0.3.0
|
|
|
|
|
Provides: bundled(crate(redox_syscall)) = 0.2.9
|
|
|
|
|
Provides: bundled(crate(regex)) = 1.5.4
|
|
|
|
|
Provides: bundled(crate(regex-syntax)) = 0.6.25
|
|
|
|
|
Provides: bundled(crate(remove_dir_all)) = 0.5.3
|
|
|
|
|
Provides: bundled(crate(reqwest)) = 0.11.4
|
|
|
|
|
Provides: bundled(crate(rusty-fork)) = 0.3.0
|
|
|
|
|
Provides: bundled(crate(ryu)) = 1.0.5
|
|
|
|
|
Provides: bundled(crate(schannel)) = 0.1.19
|
|
|
|
|
Provides: bundled(crate(scoped-tls)) = 1.0.0
|
|
|
|
|
Provides: bundled(crate(scopeguard)) = 1.1.0
|
|
|
|
|
Provides: bundled(crate(security-framework)) = 2.3.1
|
|
|
|
|
Provides: bundled(crate(security-framework-sys)) = 2.3.0
|
|
|
|
|
Provides: bundled(crate(serde)) = 1.0.127
|
|
|
|
|
Provides: bundled(crate(serde_derive)) = 1.0.127
|
|
|
|
|
Provides: bundled(crate(serde_json)) = 1.0.66
|
|
|
|
|
Provides: bundled(crate(serde_repr)) = 0.1.7
|
|
|
|
|
Provides: bundled(crate(serde_urlencoded)) = 0.7.0
|
|
|
|
|
Provides: bundled(crate(sha2)) = 0.9.5
|
|
|
|
|
Provides: bundled(crate(signal-hook-registry)) = 1.4.0
|
|
|
|
|
Provides: bundled(crate(slab)) = 0.4.3
|
|
|
|
|
Provides: bundled(crate(smallvec)) = 1.6.1
|
|
|
|
|
Provides: bundled(crate(socket2)) = 0.4.0
|
|
|
|
|
Provides: bundled(crate(static_assertions)) = 1.1.0
|
|
|
|
|
Provides: bundled(crate(strsim)) = 0.8.0
|
|
|
|
|
Provides: bundled(crate(structopt)) = 0.3.22
|
|
|
|
|
Provides: bundled(crate(structopt-derive)) = 0.4.15
|
|
|
|
|
Provides: bundled(crate(subtle)) = 2.4.0
|
|
|
|
|
Provides: bundled(crate(syn)) = 1.0.73
|
|
|
|
|
Provides: bundled(crate(tempfile)) = 3.2.0
|
|
|
|
|
Provides: bundled(crate(termcolor)) = 1.1.2
|
|
|
|
|
Provides: bundled(crate(textwrap)) = 0.11.0
|
|
|
|
|
Provides: bundled(crate(thiserror)) = 1.0.26
|
|
|
|
|
Provides: bundled(crate(thiserror-impl)) = 1.0.26
|
|
|
|
|
Provides: bundled(crate(time)) = 0.1.43
|
|
|
|
|
Provides: bundled(crate(tinyvec)) = 1.2.0
|
|
|
|
|
Provides: bundled(crate(tinyvec_macros)) = 0.1.0
|
|
|
|
|
Provides: bundled(crate(tokio)) = 1.9.0
|
|
|
|
|
Provides: bundled(crate(tokio-native-tls)) = 0.3.0
|
|
|
|
|
Provides: bundled(crate(tokio-util)) = 0.6.7
|
|
|
|
|
Provides: bundled(crate(toml)) = 0.5.8
|
|
|
|
|
Provides: bundled(crate(tower-service)) = 0.3.1
|
|
|
|
|
Provides: bundled(crate(tracing)) = 0.1.26
|
|
|
|
|
Provides: bundled(crate(tracing-core)) = 0.1.18
|
|
|
|
|
Provides: bundled(crate(try-lock)) = 0.2.3
|
|
|
|
|
Provides: bundled(crate(typenum)) = 1.13.0
|
|
|
|
|
Provides: bundled(crate(tzfile)) = 0.1.3
|
|
|
|
|
Provides: bundled(crate(unicode-bidi)) = 0.3.5
|
|
|
|
|
Provides: bundled(crate(unicode-normalization)) = 0.1.19
|
|
|
|
|
Provides: bundled(crate(unicode-segmentation)) = 1.8.0
|
|
|
|
|
Provides: bundled(crate(unicode-width)) = 0.1.8
|
|
|
|
|
Provides: bundled(crate(unicode-xid)) = 0.2.2
|
|
|
|
|
Provides: bundled(crate(url)) = 2.2.2
|
|
|
|
|
Provides: bundled(crate(users)) = 0.11.0
|
|
|
|
|
Provides: bundled(crate(uuid)) = 0.8.2
|
|
|
|
|
Provides: bundled(crate(vcpkg)) = 0.2.15
|
|
|
|
|
Provides: bundled(crate(vec_map)) = 0.8.2
|
|
|
|
|
Provides: bundled(crate(version_check)) = 0.9.3
|
|
|
|
|
Provides: bundled(crate(void)) = 1.0.2
|
|
|
|
|
Provides: bundled(crate(wait-timeout)) = 0.2.0
|
|
|
|
|
Provides: bundled(crate(waker-fn)) = 1.1.0
|
|
|
|
|
Provides: bundled(crate(want)) = 0.3.0
|
|
|
|
|
Provides: bundled(crate(wasi)) = 0.9.0+wasi_snapshot_preview1
|
|
|
|
|
Provides: bundled(crate(wasi)) = 0.10.2+wasi_snapshot_preview1
|
|
|
|
|
Provides: bundled(crate(wasm-bindgen)) = 0.2.74
|
|
|
|
|
Provides: bundled(crate(wasm-bindgen-backend)) = 0.2.74
|
|
|
|
|
Provides: bundled(crate(wasm-bindgen-futures)) = 0.4.24
|
|
|
|
|
Provides: bundled(crate(wasm-bindgen-macro)) = 0.2.74
|
|
|
|
|
Provides: bundled(crate(wasm-bindgen-macro-support)) = 0.2.74
|
|
|
|
|
Provides: bundled(crate(wasm-bindgen-shared)) = 0.2.74
|
|
|
|
|
Provides: bundled(crate(web-sys)) = 0.3.51
|
|
|
|
|
Provides: bundled(crate(wepoll-ffi)) = 0.1.2
|
|
|
|
|
Provides: bundled(crate(winapi)) = 0.3.9
|
|
|
|
|
Provides: bundled(crate(winapi-i686-pc-windows-gnu)) = 0.4.0
|
|
|
|
|
Provides: bundled(crate(winapi-util)) = 0.1.5
|
|
|
|
|
Provides: bundled(crate(winapi-x86_64-pc-windows-gnu)) = 0.4.0
|
|
|
|
|
Provides: bundled(crate(winreg)) = 0.7.0
|
|
|
|
|
Provides: bundled(crate(zbus)) = 1.9.1
|
|
|
|
|
Provides: bundled(crate(zbus_macros)) = 1.9.1
|
|
|
|
|
Provides: bundled(crate(zvariant)) = 2.8.0
|
|
|
|
|
Provides: bundled(crate(zvariant_derive)) = 2.8.0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Update agent for Fedora CoreOS.}
|
|
|
|
|
|
|
|
|
@ -50,12 +284,12 @@ License: ASL 2.0 and BSD and MIT and MPLv2.0 and zlib
|
|
|
|
|
%dir %{_prefix}/lib/%{crate}
|
|
|
|
|
%dir %{_prefix}/lib/%{crate}/config.d
|
|
|
|
|
%{_prefix}/lib/%{crate}/config.d/*.toml
|
|
|
|
|
%attr(0775, zincati, zincati) %dir /run/%{crate}
|
|
|
|
|
%attr(0775, zincati, zincati) %dir /run/%{crate}/config.d
|
|
|
|
|
%attr(0770, zincati, zincati) %dir /run/%{crate}/private
|
|
|
|
|
%attr(0775, zincati, zincati) %dir /run/%{crate}/public
|
|
|
|
|
%verify(not size mtime md5) /run/%{crate}/public/metrics.promsock
|
|
|
|
|
%verify(not size mtime md5) /run/%{crate}/private/metrics.promsock
|
|
|
|
|
%attr(0775, zincati, zincati) %ghost /run/%{crate}
|
|
|
|
|
%attr(0775, zincati, zincati) %ghost /run/%{crate}/config.d
|
|
|
|
|
%attr(0770, zincati, zincati) %ghost /run/%{crate}/private
|
|
|
|
|
%attr(0775, zincati, zincati) %ghost /run/%{crate}/public
|
|
|
|
|
%attr(0755, zincati, zincati) %ghost /run/%{crate}/public/metrics.promsock
|
|
|
|
|
%ghost /run/%{crate}/private/metrics.promsock
|
|
|
|
|
%dir %{_sysconfdir}/%{crate}
|
|
|
|
|
%dir %{_sysconfdir}/%{crate}/config.d
|
|
|
|
|
%{_unitdir}/zincati.service
|
|
|
|
@ -63,6 +297,7 @@ License: ASL 2.0 and BSD and MIT and MPLv2.0 and zlib
|
|
|
|
|
%{_tmpfilesdir}/zincati.conf
|
|
|
|
|
%{_datadir}/polkit-1/rules.d/zincati.rules
|
|
|
|
|
%{_datadir}/polkit-1/actions/org.coreos.zincati.*
|
|
|
|
|
%{_datadir}/dbus-1/system.d/*.conf
|
|
|
|
|
|
|
|
|
|
%post -n %{crate}
|
|
|
|
|
%systemd_post zincati.service
|
|
|
|
@ -74,11 +309,37 @@ License: ASL 2.0 and BSD and MIT and MPLv2.0 and zlib
|
|
|
|
|
%systemd_postun_with_restart zincati.service
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%autosetup -N -n %{crate}-%{version_no_tilde}
|
|
|
|
|
%if ! 0%{?with_bundled}
|
|
|
|
|
%cargo_prep
|
|
|
|
|
%else
|
|
|
|
|
tar xvf %{SOURCE1}
|
|
|
|
|
mkdir -p .cargo
|
|
|
|
|
cat >.cargo/config << EOF
|
|
|
|
|
[build]
|
|
|
|
|
rustc = "%{__rustc}"
|
|
|
|
|
rustdoc = "%{__rustdoc}"
|
|
|
|
|
rustflags = %{__global_rustflags_toml}
|
|
|
|
|
|
|
|
|
|
[install]
|
|
|
|
|
root = "%{buildroot}%{_prefix}"
|
|
|
|
|
|
|
|
|
|
[term]
|
|
|
|
|
verbose = true
|
|
|
|
|
|
|
|
|
|
[source.crates-io]
|
|
|
|
|
replace-with = "vendored-sources"
|
|
|
|
|
|
|
|
|
|
[source.vendored-sources]
|
|
|
|
|
directory = "vendor"
|
|
|
|
|
EOF
|
|
|
|
|
%endif
|
|
|
|
|
%autopatch -p1
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?with_bundled}
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
@ -91,10 +352,6 @@ mkdir -p %{buildroot}%{_libexecdir}
|
|
|
|
|
mv %{buildroot}%{_bindir}/zincati %{buildroot}%{_libexecdir}/zincati
|
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_prefix}/lib/%{crate}/config.d \
|
|
|
|
|
dist/config.d/*.toml
|
|
|
|
|
mkdir -p %{buildroot}/run/%{crate}/config.d
|
|
|
|
|
mkdir -p %{buildroot}/run/%{crate}/private
|
|
|
|
|
mkdir -p %{buildroot}/run/%{crate}/public
|
|
|
|
|
touch %{buildroot}/run/%{crate}/public/metrics.promsock
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{crate}/config.d
|
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_unitdir} \
|
|
|
|
|
dist/systemd/system/*.service
|
|
|
|
@ -106,7 +363,8 @@ install -Dpm0644 -t %{buildroot}%{_datadir}/polkit-1/rules.d \
|
|
|
|
|
dist/polkit-1/rules.d/*.rules
|
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_datadir}/polkit-1/actions \
|
|
|
|
|
dist/polkit-1/actions/org.coreos.zincati.*
|
|
|
|
|
ln -snf /run/%{crate}/public/metrics.promsock %{buildroot}/run/%{crate}/private/metrics.promsock
|
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_datadir}/dbus-1/system.d \
|
|
|
|
|
dist/dbus-1/system.d/*.conf
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
@ -114,6 +372,40 @@ ln -snf /run/%{crate}/public/metrics.promsock %{buildroot}/run/%{crate}/private/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Aug 06 2021 Luca BRUNO <lucab@lucabruno.net> - 0.0.23-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
https://github.com/coreos/zincati/releases/tag/v0.0.23
|
|
|
|
|
|
|
|
|
|
* Mon Jul 12 2021 Luca BRUNO <lucab@lucabruno.net> - 0.0.22-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
https://github.com/coreos/zincati/releases/tag/v0.0.22
|
|
|
|
|
- Temporarily use bundled crates from vendor tarball
|
|
|
|
|
|
|
|
|
|
* Thu Jul 01 2021 Luca BRUNO <lucab@lucabruno.net> - 0.0.21-2
|
|
|
|
|
- Mark runtime/ephemeral file entries as 'ghost'
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Luca BRUNO <lucab@lucabruno.net> - 0.0.21-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
https://github.com/coreos/zincati/releases/tag/v0.0.21
|
|
|
|
|
- Turn off the usage of bundled crates, all in Fedora now
|
|
|
|
|
|
|
|
|
|
* Tue May 04 2021 Luca BRUNO <lucab@lucabruno.net> - 0.0.20-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
https://github.com/coreos/zincati/releases/tag/v0.0.20
|
|
|
|
|
- Temporarily use bundled crates from vendor tarball
|
|
|
|
|
|
|
|
|
|
* Tue Mar 23 2021 Kelvin Fan <kfan@redhat.com> - 0.0.19-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
https://github.com/coreos/zincati/releases/tag/v0.0.19
|
|
|
|
|
|
|
|
|
|
* Wed Mar 03 2021 Kelvin Fan <kfan@redhat.com> - 0.0.18-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
https://github.com/coreos/zincati/releases/tag/v0.0.18
|
|
|
|
|
|
|
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.0.17-2
|
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
|
|
|
|
|
* Tue Feb 09 2021 Luca BRUNO <lucab@lucabruno.net> - 0.0.17-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
https://github.com/coreos/zincati/releases/tag/v0.0.17
|
|
|
|
@ -129,7 +421,7 @@ ln -snf /run/%{crate}/public/metrics.promsock %{buildroot}/run/%{crate}/private/
|
|
|
|
|
- Update to 0.0.13
|
|
|
|
|
|
|
|
|
|
* Wed Sep 23 2020 Kelvin Fan <kfan@redhat.com> - 0.0.12-6
|
|
|
|
|
- Remove unnecessary usage of systemd RPM macro in %pre
|
|
|
|
|
- Remove unnecessary usage of systemd RPM macro in 'pre'
|
|
|
|
|
|
|
|
|
|
* Sun Aug 16 15:01:58 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.0.12-5
|
|
|
|
|
- Rebuild
|
|
|
|
|