Module: kamailio
Branch: master
Commit: c70c4c5486831b0b8e87450869fee091ecfbda04
URL:
https://github.com/kamailio/kamailio/commit/c70c4c5486831b0b8e87450869fee09…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Henning Westerholt <henningw(a)users.noreply.github.com>
Date: 2018-10-14T21:16:34+02:00
pkg/kamailio: Fixed db_redis RPM packaging after ee95675177466a7ae5f9575db300df32e42661f2
Please look ticket #1676
---
Modified: pkg/kamailio/Makefile
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff:
https://github.com/kamailio/kamailio/commit/c70c4c5486831b0b8e87450869fee09…
Patch:
https://github.com/kamailio/kamailio/commit/c70c4c5486831b0b8e87450869fee09…
---
diff --git a/pkg/kamailio/Makefile b/pkg/kamailio/Makefile
index 86f826a788..63c024c158 100644
--- a/pkg/kamailio/Makefile
+++ b/pkg/kamailio/Makefile
@@ -40,7 +40,7 @@ src.rpm: tar
mv ../../kamailio-$(RELEASE)_src.tar.gz ${RPMBUILD_TOP}/SOURCES/${DIST_ARCHIVE}
sed -i -e 's/setup -n %{name}-%{ver}/setup -n kamailio-$(RELEASE)/'
obs/kamailio.spec
rpmbuild ${RPMBUILD_OPT} -bs obs/kamailio.spec
- mv ${RPMBUILD_TOP}/SRPMS/kamailio-$(RELEASE).*.src.rpm ../..
+ mv ${RPMBUILD_TOP}/SRPMS/kamailio-$(RELEASE)*.src.rpm ../..
rm -Rf ${RPMBUILD_TOP}
# build rpm packages
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index f147835e6f..eef0d607d4 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -1005,7 +1005,11 @@ ln -s ../obs pkg/kamailio/centos/7
%if 0%{?fedora} || 0%{?suse_version}
export FREERADIUS=1
%endif
-make cfg prefix=/usr basedir=%{buildroot} cfg_prefix=%{buildroot} doc_prefix=%{buildroot}
\
+make cfg prefix=/usr \
+ basedir=%{buildroot} \
+ cfg_prefix=%{buildroot} \
+ doc_prefix=%{buildroot} \
+ share_prefix=%{_prefix} \
doc_dir=%{_docdir}/kamailio/ \
cfg_target=%{_sysconfdir}/kamailio/ modules_dirs="modules"
make