Skip to content

Commit b19a1a1

Browse files
committed
rpm: Derive version from dkms.conf instead of hardcoding in spec
1 parent e406ce7 commit b19a1a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build-rpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fi
3636
cp "${SPEC}" "${TOPDIR}/SPECS/"
3737

3838
# Build
39-
rpmbuild --define "_topdir ${TOPDIR}" --nodeps -bb "${TOPDIR}/SPECS/${SPEC}"
39+
rpmbuild --define "_topdir ${TOPDIR}" --define "_pkg_version ${VERSION}" --nodeps -bb "${TOPDIR}/SPECS/${SPEC}"
4040

4141
echo "==> RPMs:"
4242
find "${TOPDIR}/RPMS" -name '*.rpm' -print

mediatek-mt7927-dkms.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%global dkms_name mediatek-mt7927
2-
%global version 2.7
2+
%global version %{?_pkg_version}%{!?_pkg_version:0}
33

44
Name: mediatek-mt7927-dkms
55
Version: %{version}

0 commit comments

Comments
 (0)