Module: kamailio
Branch: master
Commit: 1361ce6e980856ce7a3ffb77349cc45254ced6ab
URL:
https://github.com/kamailio/kamailio/commit/1361ce6e980856ce7a3ffb77349cc45…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2019-10-24T22:46:51+03:00
pkg/kamailio: Updated RPM spec release extracting for "-rc" [skip ci]
---
Modified: pkg/kamailio/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/1361ce6e980856ce7a3ffb77349cc45…
Patch:
https://github.com/kamailio/kamailio/commit/1361ce6e980856ce7a3ffb77349cc45…
---
diff --git a/pkg/kamailio/Makefile b/pkg/kamailio/Makefile
index a221ff085c..d6ce6672f4 100644
--- a/pkg/kamailio/Makefile
+++ b/pkg/kamailio/Makefile
@@ -7,7 +7,7 @@ $(error Please start "make cfg" first)
endif
RPMBUILD_TOP := /tmp/kamailio_rpmbuild
-RPM_VER = ${shell echo "$(RELEASE)" | sed -e "s/-dev[0-9]//" }
+RPM_VER = ${shell echo "$(RELEASE)" | sed -e "s/-dev[0-9]//" -e
"s/-rc[0-9]//"}
RPM_REL = ${shell echo "$(RELEASE)." | grep -o -P "dev[0-9]\." }
DIST_ARCHIVE = ${shell echo "kamailio-$(RPM_VER)_src.tar.gz"}
APK_VERSION = ${shell echo "$(RELEASE)" | grep -o "^[0-9.]*"}
@@ -45,7 +45,7 @@ src.rpm: tar
-e 's/setup -n %{name}-%{ver}/setup -n kamailio-$(RELEASE)/' \
-i obs/kamailio.spec
rpmbuild ${RPMBUILD_OPT} -bs obs/kamailio.spec
- mv ${RPMBUILD_TOP}/SRPMS/kamailio-$(RELEASE)*.src.rpm ../..
+ mv ${RPMBUILD_TOP}/SRPMS/kamailio-${RPM_VER}*.src.rpm ../..
rm -Rf ${RPMBUILD_TOP}
# build rpm packages