Module: kamailio
Branch: master
Commit: d7c117b961b6c5b6d40cec9b81de94780578d5f2
URL:
https://github.com/kamailio/kamailio/commit/d7c117b961b6c5b6d40cec9b81de947…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2019-04-25T22:18:14+03:00
pkg/kamailio/obs: Defined missing RPM macros for RHEL/CentOS 6
---
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff:
https://github.com/kamailio/kamailio/commit/d7c117b961b6c5b6d40cec9b81de947…
Patch:
https://github.com/kamailio/kamailio/commit/d7c117b961b6c5b6d40cec9b81de947…
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index e38d1b9770..5706b5178e 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -219,6 +219,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