Skip to content

Commit

Permalink
Update RPM spec file to not vendor dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Fernandez <[email protected]>
  • Loading branch information
jfernandez committed Jun 8, 2024
1 parent 47b3408 commit 4da0a68
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packaging/rpm/bpftop.spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ License: (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0) AND (Apache-2.0 OR

URL: https://github.com/Netflix/%{name}
Source0: https://github.com/Netflix/%{name}/archive/refs/tags/v%{version}.tar.gz
Source1: https://github.com/Netflix/%{name}/releases/download/v%{version}/v%{version}-vendor.tar.gz

BuildRequires: cargo-rpm-macros >= 26
BuildRequires: elfutils-libelf-devel
Expand All @@ -45,16 +44,15 @@ Dynamic real-time view of running eBPF programs.}

%prep
%autosetup -n %{name}-%{version} -p1
tar -xzf %{SOURCE1} -C .
%cargo_prep -v vendor
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
%{cargo_vendor_manifest} > cargo-vendor.txt

%install
%cargo_install
Expand All @@ -67,7 +65,6 @@ tar -xzf %{SOURCE1} -C .
%files
%license LICENSE
%license LICENSE.dependencies
%license cargo-vendor.txt
%doc README.md
%{_bindir}/bpftop

Expand Down

0 comments on commit 4da0a68

Please sign in to comment.