We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e406ce7 commit b19a1a1Copy full SHA for b19a1a1
build-rpm.sh
@@ -36,7 +36,7 @@ fi
36
cp "${SPEC}" "${TOPDIR}/SPECS/"
37
38
# Build
39
-rpmbuild --define "_topdir ${TOPDIR}" --nodeps -bb "${TOPDIR}/SPECS/${SPEC}"
+rpmbuild --define "_topdir ${TOPDIR}" --define "_pkg_version ${VERSION}" --nodeps -bb "${TOPDIR}/SPECS/${SPEC}"
40
41
echo "==> RPMs:"
42
find "${TOPDIR}/RPMS" -name '*.rpm' -print
mediatek-mt7927-dkms.spec
@@ -1,5 +1,5 @@
1
%global dkms_name mediatek-mt7927
2
-%global version 2.7
+%global version %{?_pkg_version}%{!?_pkg_version:0}
3
4
Name: mediatek-mt7927-dkms
5
Version: %{version}
0 commit comments