[sr-dev] git:5.1:b57691a4: pkg/kamailio/obs: Added fedora rawhide packaging [skip ci]
Sergey Safarov
s.safarov at gmail.com
Fri Sep 27 12:35:55 CEST 2019
Module: kamailio
Branch: 5.1
Commit: b57691a414675654253ddba295b19abf9e2362b8
URL: https://github.com/kamailio/kamailio/commit/b57691a414675654253ddba295b19abf9e2362b8
Author: Sergey Safarov <s.safarov at gmail.com>
Committer: Sergey Safarov <s.safarov at gmail.com>
Date: 2019-09-27T13:35:37+03:00
pkg/kamailio/obs: Added fedora rawhide packaging [skip ci]
(cherry picked from commit 94a20e8f0005f16b371833b315f8d64457709328)
---
Modified: pkg/kamailio/obs/kamailio.spec
Modified: pkg/kamailio/obs/meta
---
Diff: https://github.com/kamailio/kamailio/commit/b57691a414675654253ddba295b19abf9e2362b8.diff
Patch: https://github.com/kamailio/kamailio/commit/b57691a414675654253ddba295b19abf9e2362b8.patch
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index 6a9f26a0bb..5b2021ad1f 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -68,6 +68,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}
@@ -682,6 +732,9 @@ Summary: Python extensions for Kamailio
Group: System Environment/Daemons
Requires: python, kamailio = %ver
BuildRequires: python, python-devel
+%if 0%{?fedora}
+BuildRequires: python2-devel
+%endif
%description python
Python extensions for Kamailio.
@@ -976,20 +1029,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/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 b0b644b864..f31b9ff31f 100644
--- a/pkg/kamailio/obs/meta
+++ b/pkg/kamailio/obs/meta
@@ -24,6 +24,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"/>
More information about the sr-dev
mailing list