Module: kamailio
Branch: 5.1
Commit: d8e930a1a9708591ee05d2fb79aadf3c7dc4d61d
URL:
https://github.com/kamailio/kamailio/commit/d8e930a1a9708591ee05d2fb79aadf3…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2019-04-25T23:08:24+03:00
pkg/kamailio/obs: Defined missing RPM macros for RHEL/CentOS 6
(cherry picked from commit d7c117b961b6c5b6d40cec9b81de94780578d5f2)
---
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff:
https://github.com/kamailio/kamailio/commit/d8e930a1a9708591ee05d2fb79aadf3…
Patch:
https://github.com/kamailio/kamailio/commit/d8e930a1a9708591ee05d2fb79aadf3…
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index ae7832c4c8..7e5301b2d3 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -179,6 +179,11 @@
%bcond_without xmlrpc
%endif
+# Defining missing macros on RHEL/CentOS 6
+%if 0%{?rhel} == 6
+%define _rundir %{_localstatedir}/run
+%endif
+
# redefine buggy openSUSE Leap _sharedstatedir macro. More info at
https://bugzilla.redhat.com/show_bug.cgi?id=183370
%if 0%{?suse_version} == 1315
%define _sharedstatedir /var/lib