Module: kamailio
Branch: master
Commit: 94a20e8f0005f16b371833b315f8d64457709328
URL:
https://github.com/kamailio/kamailio/commit/94a20e8f0005f16b371833b315f8d64…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2019-09-27T13:27:09+03:00
pkg/kamailio/obs: Added fedora rawhide packaging [skip ci]
---
Modified: pkg/kamailio/obs/kamailio.spec
Modified: pkg/kamailio/obs/meta
---
Diff:
https://github.com/kamailio/kamailio/commit/94a20e8f0005f16b371833b315f8d64…
Patch:
https://github.com/kamailio/kamailio/commit/94a20e8f0005f16b371833b315f8d64…
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index 9dec32a876..9dc8a2a249 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -102,6 +102,56 @@
%bcond_without xmlrpc
%endif
+%if 0%{?fedora} == 31
+%define dist_name fedora
+%define dist_version %{?fedora}
+%bcond_without cnxcc
+%bcond_with dnssec
+%bcond_without geoip
+%bcond_without http_async_client
+%bcond_without ims
+%bcond_without jansson
+%bcond_without json
+%bcond_without lua
+%bcond_without kazoo
+%bcond_without memcached
+%bcond_without mongodb
+%bcond_without perl
+%bcond_without phonenum
+%bcond_without python3
+%bcond_without rabbitmq
+%bcond_without redis
+%bcond_without ruby
+%bcond_without sctp
+%bcond_without websocket
+%bcond_without xmlrpc
+%endif
+
+%if 0%{?fedora} == 99
+%define dist_name fedora
+%define dist_version %{?fedora}
+%bcond_without cnxcc
+%bcond_with dnssec
+%bcond_without geoip
+%bcond_without http_async_client
+%bcond_without ims
+%bcond_without jansson
+%bcond_without json
+%bcond_without lua
+%bcond_without kazoo
+%bcond_without memcached
+%bcond_without mongodb
+%bcond_without perl
+%bcond_without phonenum
+%bcond_without python3
+%bcond_without rabbitmq
+%bcond_without redis
+%bcond_without ruby
+%bcond_without sctp
+%bcond_without websocket
+%bcond_without xmlrpc
+%endif
+
%if 0%{?centos_ver} == 6
%define dist_name centos
%define dist_version %{?centos}
@@ -780,7 +830,9 @@ Requires: python3, kamailio = %ver
BuildRequires: python3, python3-devel
%endif
%endif
-
+%if 0%{?fedora}
+BuildRequires: python2-devel
+%endif
%description python
Python extensions for Kamailio.
@@ -1108,21 +1160,9 @@ UUID module for Kamailio.
sed -i -e 's:#!/usr/bin/python:#!%{__python2}:'
utils/kamctl/dbtextdb/dbtextdb.py
%endif
-ln -s ../obs pkg/kamailio/fedora/27
-ln -s ../obs pkg/kamailio/fedora/28
-ln -s ../obs pkg/kamailio/fedora/29
-ln -s ../obs pkg/kamailio/fedora/30
-ln -s ../obs pkg/kamailio/rhel/6
-ln -s ../obs pkg/kamailio/rhel/7
-ln -s ../obs pkg/kamailio/opensuse/1315
-ln -s ../obs pkg/kamailio/opensuse/1330
-ln -s ../obs pkg/kamailio/opensuse/1500
-ln -s ../obs pkg/kamailio/opensuse/1550
-ln -s ../obs pkg/kamailio/centos/6
-ln -s ../obs pkg/kamailio/centos/7
-
%build
+ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}
%if 0%{?fedora} || 0%{?suse_version}
export FREERADIUS=1
%endif
diff --git a/pkg/kamailio/obs/meta b/pkg/kamailio/obs/meta
index e6693e4729..2f4b61d8e9 100644
--- a/pkg/kamailio/obs/meta
+++ b/pkg/kamailio/obs/meta
@@ -32,6 +32,19 @@
<path project="Fedora:EPEL:6" repository="RHEL"/>
<arch>x86_64</arch>
</repository>
+ <repository name="Fedora_Rawhide">
+ <path project="Fedora:Rawhide" repository="standard"/>
+ <arch>x86_64</arch>
+ </repository>
+ <repository name="Fedora_30">
+ <path project="Fedora:30" repository="update"/>
+ <path project="Fedora:30" repository="standard"/>
+ <arch>x86_64</arch>
+ <arch>i586</arch>
+ <arch>armv7l</arch>
+ <arch>aarch64</arch>
+ <arch>ppc64le</arch>
+ </repository>
<repository name="Fedora_29">
<path project="Fedora:29" repository="update"/>
<path project="Fedora:29" repository="standard"/>