Skip to content

Commit

Permalink
Merge pull request #10420 from afbjorklund/package-metadata
Browse files Browse the repository at this point in the history
Make sure to update the package metadata
  • Loading branch information
priyawadhwa authored Feb 25, 2021
2 parents 4e4cba0 + 4cdf2c7 commit 4012da8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ out/minikube_$(DEB_VERSION)-$(DEB_REVISION)_%.deb: out/minikube-linux-%
cp -r installers/linux/deb/minikube_deb_template/* $(DEB_PACKAGING_DIRECTORY_$*)/
chmod 0755 $(DEB_PACKAGING_DIRECTORY_$*)/DEBIAN
sed -E -i 's/--VERSION--/'$(DEB_VERSION)'/g' $(DEB_PACKAGING_DIRECTORY_$*)/DEBIAN/control
sed -E -i 's/--REVISION--/'$(DEB_REVISION)'/g' $(DEB_PACKAGING_DIRECTORY_$*)/DEBIAN/control
sed -E -i 's/--ARCH--/'$*'/g' $(DEB_PACKAGING_DIRECTORY_$*)/DEBIAN/control

if [ "$*" = "amd64" ]; then \
Expand All @@ -530,6 +531,7 @@ out/minikube-$(RPM_VERSION)-0.%.rpm: out/minikube-linux-%
$(eval RPM_PACKAGING_DIRECTORY_$*=$(shell mktemp -d --suffix ".minikube_$(RPM_VERSION)-$*-rpm"))
cp -r installers/linux/rpm/minikube_rpm_template/* $(RPM_PACKAGING_DIRECTORY_$*)/
sed -E -i 's/--VERSION--/'$(RPM_VERSION)'/g' $(RPM_PACKAGING_DIRECTORY_$*)/minikube.spec
sed -E -i 's/--REVISION--/'$(RPM_REVISION)'/g' $(RPM_PACKAGING_DIRECTORY_$*)/minikube.spec
sed -E -i 's|--OUT--|'$(PWD)/out'|g' $(RPM_PACKAGING_DIRECTORY_$*)/minikube.spec
rpmbuild -bb -D "_rpmdir $(PWD)/out" --target $* \
$(RPM_PACKAGING_DIRECTORY_$*)/minikube.spec
Expand Down
2 changes: 1 addition & 1 deletion installers/linux/deb/minikube_deb_template/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: minikube
Version: --VERSION--
Version: --VERSION-----REVISION--
Section: base
Priority: optional
Architecture: --ARCH--
Expand Down
2 changes: 1 addition & 1 deletion installers/linux/rpm/minikube_rpm_template/minikube.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: minikube
Version: --VERSION--
Release: 0
Release: --REVISION--
Summary: Run Kubernetes locally
License: ASL 2.0
Group: Development/Tools
Expand Down

0 comments on commit 4012da8

Please sign in to comment.