Skip to content

Commit

Permalink
Merge pull request #430 from yselkowitz/rpm
Browse files Browse the repository at this point in the history
[CI:BUILD] rpm: Update Rust macro usage
  • Loading branch information
openshift-merge-bot[bot] authored Jun 26, 2024
2 parents 6838c50 + 43ea35b commit 5775a69
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions rpm/aardvark-dns.spec
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,30 @@ Read more about configuration in `src/backend/mod.rs`.
# dependencies directly from the network.
%if !%{defined copr_username}
tar fx %{SOURCE1}
mkdir -p .cargo

cat >.cargo/config << EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF
%if 0%{?fedora} || 0%{?rhel} >= 10
%cargo_prep -v vendor
%else
%cargo_prep -V 1
%endif
%endif

%build
%{__make} CARGO="%{__cargo}" build
%if (0%{?fedora} || 0%{?rhel} >= 10) && !%{defined copr_username}
%cargo_license_summary
%{cargo_license} > LICENSE.dependencies
%cargo_vendor_manifest
%endif

%install
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install

%files
%license LICENSE
%if (0%{?fedora} || 0%{?rhel} >= 10) && !%{defined copr_username}
%license LICENSE.dependencies
%license cargo-vendor.txt
%endif
%dir %{_libexecdir}/podman
%{_libexecdir}/podman/%{name}

Expand Down

2 comments on commit 5775a69

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.