Skip to content

Commit

Permalink
cri-tools: fix spec
Browse files Browse the repository at this point in the history
Change-Id: I5dcb4709514bee74cb281e5f08df58b0d5244098
Signed-off-by: Shreenidhi Shedi <[email protected]>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/15976
Tested-by: gerrit-photon <[email protected]>
Reviewed-by: Tapas Kundu <[email protected]>
  • Loading branch information
sshedi authored and tapakund committed May 10, 2022
1 parent 3b90246 commit 3ee26dc
Showing 1 changed file with 31 additions and 48 deletions.
79 changes: 31 additions & 48 deletions SPECS/cri-tools/cri-tools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
Summary: CRI tools
Name: cri-tools
Version: 1.21.0
Release: 2%{?dist}
Release: 3%{?dist}
License: Apache License Version 2.0
URL: https://github.com/kubernetes-incubator/cri-tools/archive/%{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
%define sha1 %{name}-%{version}.tar.gz=ebc09c9effed6534ff2a48054f35fd16b7e3a526
Group: Development/Tools
Vendor: VMware, Inc.
Distribution: Photon

Source0: %{name}-%{version}.tar.gz
%define sha512 %{name}-%{version}.tar.gz=a307f5526fb8b7b23a1635b168a8f3b9b9b4bd6ccb94d461dc5af2065e6d1be527dadcb1c86e04808b244d0851a4901ee78a0263f58cf673f6ca503621d5eb61

BuildRequires: go
BuildRequires: git

Expand All @@ -20,59 +22,40 @@ crictl: CLI for kubelet CRI.
critest: validation test suites for kubelet CRI.

%prep
%setup -qn %{name}-%{version}
%autosetup -Sgit -p1 -n %{name}-%{version}

%build
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}/usr/bin
mkdir -p %{buildroot}/usr/lib/.build-id
mkdir -p %{buildroot}/usr/share/doc/cri-tools
mkdir -p %{buildroot}/usr/share/licenses/cri-tools
mkdir -p %{buildroot}/man/man1
make install BUILD_BIN_PATH=%{buildroot}%{_bindir} BUILD_PATH=%{buildroot} %{?_smp_mflags}

%clean
rm -rf %{buildroot}/*

make install DESTDIR=%{buildroot}
cp build/bin/crictl %{buildroot}/usr/bin
cp build/bin/critest %{buildroot}/usr/bin
cp CHANGELOG.md %{buildroot}/usr/share/doc/cri-tools
cp LICENSE %{buildroot}/usr/share/licenses/cri-tools
cp CHANGELOG.md %{buildroot}/usr/share/doc/cri-tools
cp CONTRIBUTING.md %{buildroot}/usr/share/doc/cri-tools
cp OWNERS %{buildroot}/usr/share/doc/cri-tools
cp README.md %{buildroot}/usr/share/doc/cri-tools
cp code-of-conduct.md %{buildroot}/usr/share/doc/cri-tools
cp docs/validation.md %{buildroot}/usr/share/doc/cri-tools
cp docs/roadmap.md %{buildroot}/usr/share/doc/cri-tools
rm %{buildroot}/usr/local/bin/crictl
rm %{buildroot}/usr/local/bin/critest
%check
%if 0%{?with_check}
make test-e2e %{?_smp_mflags}
%endif

%files
%defattr(-,root,root)
%{_datadir}/%{name}
%{_bindir}/crictl
%{_bindir}/critest
%{_datadir}/doc/*
%{_datadir}/licenses/*
/man/man1/

%clean
rm -rf %{buildroot}/*
%exclude %{_bindir}/critest

%changelog
* Fri Jun 11 2021 Piyush Gupta <[email protected]> 1.21.0-2
- Bump up version to compile with new go
* Mon Apr 12 2021 Gerrit Photon <[email protected]> 1.21.0-1
- Automatic Version Bump
* Fri Feb 05 2021 Harinadh D <[email protected]> 1.19.0-3
- Bump up version to compile with new go
* Fri Jan 15 2021 Piyush Gupta<[email protected]> 1.19.0-2
- Bump up version to compile with new go
* Tue Sep 01 2020 Gerrit Photon <[email protected]> 1.19.0-1
- Automatic Version Bump
* Mon Jun 22 2020 Gerrit Photon <[email protected]> 1.18.0-1
- Automatic Version Bump
* Thu Jul 26 2018 Tapas Kundu <[email protected]> 1.11.1-1
- Initial build added for Photon.
* Fri May 06 2022 Shreenidhi Shedi <[email protected]> 1.21.0-3
- Fix spec
* Fri Jun 11 2021 Piyush Gupta <[email protected]> 1.21.0-2
- Bump up version to compile with new go
* Mon Apr 12 2021 Gerrit Photon <[email protected]> 1.21.0-1
- Automatic Version Bump
* Fri Feb 05 2021 Harinadh D <[email protected]> 1.19.0-3
- Bump up version to compile with new go
* Fri Jan 15 2021 Piyush Gupta<[email protected]> 1.19.0-2
- Bump up version to compile with new go
* Tue Sep 01 2020 Gerrit Photon <[email protected]> 1.19.0-1
- Automatic Version Bump
* Mon Jun 22 2020 Gerrit Photon <[email protected]> 1.18.0-1
- Automatic Version Bump
* Thu Jul 26 2018 Tapas Kundu <[email protected]> 1.11.1-1
- Initial build added for Photon.

0 comments on commit 3ee26dc

Please sign in to comment.