Skip to content

Commit

Permalink
pkg/kamailio: Updated RPM spec release extracting for "-rc" [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-safarov committed Oct 24, 2019
1 parent a463c53 commit 1361ce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kamailio/Makefile
Expand Up @@ -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.]*"}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1361ce6

Please sign in to comment.