Browse code

pkg/kamailio/obs: Added fedora rawhide packaging [skip ci]

Sergey Safarov authored on 27/09/2019 08:47:07
Showing 2 changed files
... ...
@@ -102,6 +102,56 @@
102 102
 %bcond_without xmlrpc
103 103
 %endif
104 104
 
105
+%if 0%{?fedora} == 31
106
+%define dist_name fedora
107
+%define dist_version %{?fedora}
108
+%bcond_without cnxcc
109
+%bcond_with dnssec
110
+%bcond_without geoip
111
+%bcond_without http_async_client
112
+%bcond_without ims
113
+%bcond_without jansson
114
+%bcond_without json
115
+%bcond_without lua
116
+%bcond_without kazoo
117
+%bcond_without memcached
118
+%bcond_without mongodb
119
+%bcond_without perl
120
+%bcond_without phonenum
121
+%bcond_without python3
122
+%bcond_without rabbitmq
123
+%bcond_without redis
124
+%bcond_without ruby
125
+%bcond_without sctp
126
+%bcond_without websocket
127
+%bcond_without xmlrpc
128
+%endif
129
+
130
+%if 0%{?fedora} == 99
131
+%define dist_name fedora
132
+%define dist_version %{?fedora}
133
+%bcond_without cnxcc
134
+%bcond_with dnssec
135
+%bcond_without geoip
136
+%bcond_without http_async_client
137
+%bcond_without ims
138
+%bcond_without jansson
139
+%bcond_without json
140
+%bcond_without lua
141
+%bcond_without kazoo
142
+%bcond_without memcached
143
+%bcond_without mongodb
144
+%bcond_without perl
145
+%bcond_without phonenum
146
+%bcond_without python3
147
+%bcond_without rabbitmq
148
+%bcond_without redis
149
+%bcond_without ruby
150
+%bcond_without sctp
151
+%bcond_without websocket
152
+%bcond_without xmlrpc
153
+%endif
154
+
105 155
 %if 0%{?centos_ver} == 6
106 156
 %define dist_name centos
107 157
 %define dist_version %{?centos}
... ...
@@ -780,7 +830,9 @@ Requires:   python3, kamailio = %ver
780 830
 BuildRequires:  python3, python3-devel
781 831
 %endif
782 832
 %endif
783
-
833
+%if 0%{?fedora}
834
+BuildRequires:  python2-devel
835
+%endif
784 836
 
785 837
 %description    python
786 838
 Python extensions for Kamailio.
... ...
@@ -1108,21 +1160,9 @@ UUID module for Kamailio.
1108 1160
     sed -i -e 's:#!/usr/bin/python:#!%{__python2}:' utils/kamctl/dbtextdb/dbtextdb.py
1109 1161
 %endif
1110 1162
 
1111
-ln -s ../obs pkg/kamailio/fedora/27
1112
-ln -s ../obs pkg/kamailio/fedora/28
1113
-ln -s ../obs pkg/kamailio/fedora/29
1114
-ln -s ../obs pkg/kamailio/fedora/30
1115
-ln -s ../obs pkg/kamailio/rhel/6
1116
-ln -s ../obs pkg/kamailio/rhel/7
1117
-ln -s ../obs pkg/kamailio/opensuse/1315
1118
-ln -s ../obs pkg/kamailio/opensuse/1330
1119
-ln -s ../obs pkg/kamailio/opensuse/1500
1120
-ln -s ../obs pkg/kamailio/opensuse/1550
1121
-ln -s ../obs pkg/kamailio/centos/6
1122
-ln -s ../obs pkg/kamailio/centos/7
1123
-
1124 1163
 
1125 1164
 %build
1165
+ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}
1126 1166
 %if 0%{?fedora} || 0%{?suse_version}
1127 1167
 export FREERADIUS=1
1128 1168
 %endif
... ...
@@ -32,6 +32,19 @@
32 32
     <path project="Fedora:EPEL:6" repository="RHEL"/>
33 33
     <arch>x86_64</arch>
34 34
   </repository>
35
+  <repository name="Fedora_Rawhide">
36
+    <path project="Fedora:Rawhide" repository="standard"/>
37
+    <arch>x86_64</arch>
38
+  </repository>
39
+  <repository name="Fedora_30">
40
+    <path project="Fedora:30" repository="update"/>
41
+    <path project="Fedora:30" repository="standard"/>
42
+    <arch>x86_64</arch>
43
+    <arch>i586</arch>
44
+    <arch>armv7l</arch>
45
+    <arch>aarch64</arch>
46
+    <arch>ppc64le</arch>
47
+  </repository>
35 48
   <repository name="Fedora_29">
36 49
     <path project="Fedora:29" repository="update"/>
37 50
     <path project="Fedora:29" repository="standard"/>