update rpm-v2 task for building Amazon Linux 2 package
@@ -65,6 +65,10 @@ rpm-v2:
rpmbuild --define "_sourcedir `pwd`" --define "_version ${VERSION}" \
--define "buildarch x86_64" --define "dist .el7.centos" \
-bb packaging/rpm/mackerel-check-plugins-v2.spec
+ make build/mackerel-check GOOS=linux GOARCH=amd64
+ rpmbuild --define "_sourcedir `pwd`" --define "_version ${VERSION}" \
+ --define "buildarch x86_64" --define "dist .amzn2" \
+ -bb packaging/rpm/mackerel-check-plugins-v2.spec
deb: deb-v1 deb-v2
