Browse code

Add SUSE type and version (and generic tag for non SUSE builds) as well as other sepc cleanups to bring things up to date and generally make them work better.

Peter Nixon authored on 30/08/2005 08:01:38
Showing 1 changed files
... ...
@@ -1,29 +1,35 @@
1
-%define name    ser
2
-%define ver     0.8.12
3
-%define rel     0
4
-
5
-%define EXCLUDED_MODULES	mysql jabber auth_radius group_radius uri_radius postgress snmp cpl cpl-c ext extcmd 
1
+%define EXCLUDED_MODULES	mysql jabber auth_radius group_radius uri_radius postgres snmp cpl cpl-c extcmd 
6 2
 %define MYSQL_MODULES		mysql
7 3
 %define JABBER_MODULES		jabber
8 4
 %define RADIUS_MODULES		auth_radius group_radius uri_radius
9 5
 %define RADIUS_MOD_PATH		modules/auth_radius modules/group_radius modules/uri_radius
10 6
 
7
+%define distroversion generic
8
+%{!?suse_version:%define suse_version 0}
9
+%{!?sles_version:%define sles_version 0}
10
+%if %suse_version > 0
11
+	%define distroversion	suse%{suse_version}
12
+%endif
13
+%if %sles_version > 0
14
+	%define distroversion	sles%{sles_version}
15
+%endif
16
+
17
+
11 18
 Summary:      SIP Express Router, very fast and flexible SIP Proxy
12
-Name:         %name
13
-Version:      %ver
14
-Release:      %rel
19
+Name:         ser
20
+Version:      0.9.3
21
+Release:      0.%{distroversion}
15 22
 Packager:     Nils Ohlmeier <nils@iptel.org>
16 23
 Copyright:    GPL
17
-Group:        Networking/Daemons
18
-Source:       http://iptel.org/ser/stable/%{name}-%{ver}_src.tar.gz
24
+Group:        Productivity/Telephony/SIP/Servers
25
+Source:       http://iptel.org/ser/stable/%{name}-%{version}_src.tar.gz
19 26
 Source2:      ser.init.SuSE
20 27
 URL:          http://www.iptel.org/ser
21 28
 Vendor:       FhG Fokus
22 29
 BuildRoot:    /var/tmp/%{name}-%{ver}-root
23
-Conflicts:    ser < %ver, ser-mysql < %ver, ser-jabber < %ver, ser-radius < %ver
30
+Conflicts:    ser < %{version}, ser-mysql < %{version}, ser-jabber < %{version}, ser-radius < %{version}
24 31
 BuildPrereq:  make flex bison 
25 32
 
26
-
27 33
 %description
28 34
 Ser or SIP Express Router is a very fast and flexible SIP (RFC3621)
29 35
 proxy server. Written entirely in C, ser can handle thousands calls
... ...
@@ -37,8 +43,8 @@ transaction module, registrar and user location.
37 43
 
38 44
 %package  mysql
39 45
 Summary:  MySQL connectivity for the SIP Express Router.
40
-Group:    System Environment/Daemons
41
-Requires: ser = %ver
46
+Group:    Productivity/Telephony/SIP/Servers
47
+Requires: ser = %{version}
42 48
 BuildPrereq: mysql-devel zlib-devel
43 49
 
44 50
 %description mysql
... ...
@@ -48,8 +54,8 @@ entries.
48 54
 
49 55
 %package  jabber
50 56
 Summary:  sip jabber message translation support for the SIP Express Router.
51
-Group:    System Environment/Daemons
52
-Requires: ser = %ver
57
+Group:    Productivity/Telephony/SIP/Servers
58
+Requires: ser = %{version}
53 59
 BuildPrereq: expat
54 60
 
55 61
 %description jabber
... ...
@@ -57,8 +63,8 @@ The ser-jabber package contains a sip to jabber message translator.
57 63
 
58 64
 %package  radius
59 65
 Summary:  ser radius authentication, group and uri check modules.
60
-Group:    System Environment/Daemons
61
-Requires: ser = %ver
66
+Group:    Productivity/Telephony/SIP/Servers
67
+Requires: ser = %{version}
62 68
 BuildPrereq:  radiusclient
63 69
 
64 70
 %description radius
... ...
@@ -115,6 +121,7 @@ make install-doc modules="modules/%JABBER_MODULES %RADIUS_MOD_PATH" \
115 121
 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/init.d
116 122
 install -m755 $RPM_SOURCE_DIR/ser.init.SuSE \
117 123
               $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/ser
124
+ln -sf ../../etc/init.d/ser $RPM_BUILD_ROOT/usr/sbin/rcser
118 125
 
119 126
 %clean
120 127
 rm -rf "$RPM_BUILD_ROOT"
... ...
@@ -142,16 +149,23 @@ sbin/insserv etc/init.d/
142 149
 %doc %{_docdir}/ser/README.auth
143 150
 %doc %{_docdir}/ser/README.auth_db
144 151
 %doc %{_docdir}/ser/README.auth_diameter
152
+%doc %{_docdir}/ser/README.avp
153
+%doc %{_docdir}/ser/README.avp_db
154
+%doc %{_docdir}/ser/README.avpops
145 155
 %doc %{_docdir}/ser/README.dbtext
156
+%doc %{_docdir}/ser/README.dispatcher
157
+%doc %{_docdir}/ser/README.diversion
146 158
 %doc %{_docdir}/ser/README.domain
147 159
 %doc %{_docdir}/ser/README.enum
148 160
 %doc %{_docdir}/ser/README.exec
161
+%doc %{_docdir}/ser/README.flatstore
162
+%doc %{_docdir}/ser/README.gflags
149 163
 %doc %{_docdir}/ser/README.group
150 164
 %doc %{_docdir}/ser/README.mangler
151 165
 %doc %{_docdir}/ser/README.maxfwd
152 166
 %doc %{_docdir}/ser/README.msilo
153 167
 %doc %{_docdir}/ser/README.nathelper
154
-%doc %{_docdir}/ser/README.pa
168
+%doc %{_docdir}/ser/README.options
155 169
 %doc %{_docdir}/ser/README.pdt
156 170
 %doc %{_docdir}/ser/README.permissions
157 171
 %doc %{_docdir}/ser/README.pike
... ...
@@ -160,11 +174,12 @@ sbin/insserv etc/init.d/
160 174
 %doc %{_docdir}/ser/README.rr
161 175
 %doc %{_docdir}/ser/README.sl
162 176
 %doc %{_docdir}/ser/README.sms
177
+%doc %{_docdir}/ser/README.speeddial
163 178
 %doc %{_docdir}/ser/README.textops
164 179
 %doc %{_docdir}/ser/README.tm
165 180
 %doc %{_docdir}/ser/README.uri
181
+%doc %{_docdir}/ser/README.uri_db
166 182
 %doc %{_docdir}/ser/README.usrloc
167
-%doc %{_docdir}/ser/README.vm
168 183
 %doc %{_docdir}/ser/README.xlog
169 184
 
170 185
 %dir %{_sysconfdir}/ser
... ...
@@ -184,9 +199,9 @@ sbin/insserv etc/init.d/
184 199
 %{_libdir}/ser/modules/group.so
185 200
 %{_libdir}/ser/modules/mangler.so
186 201
 %{_libdir}/ser/modules/maxfwd.so
202
+%{_libdir}/ser/modules/mediaproxy.so
187 203
 %{_libdir}/ser/modules/msilo.so
188 204
 %{_libdir}/ser/modules/nathelper.so
189
-%{_libdir}/ser/modules/pa.so
190 205
 %{_libdir}/ser/modules/pdt.so
191 206
 %{_libdir}/ser/modules/permissions.so
192 207
 %{_libdir}/ser/modules/pike.so
... ...
@@ -199,12 +214,24 @@ sbin/insserv etc/init.d/
199 214
 %{_libdir}/ser/modules/tm.so
200 215
 %{_libdir}/ser/modules/uri.so
201 216
 %{_libdir}/ser/modules/usrloc.so
202
-%{_libdir}/ser/modules/vm.so
203 217
 %{_libdir}/ser/modules/xlog.so
204 218
 
219
+%{_libdir}/ser/modules/avp.so
220
+%{_libdir}/ser/modules/avp_db.so
221
+%{_libdir}/ser/modules/avpops.so
222
+%{_libdir}/ser/modules/dispatcher.so
223
+%{_libdir}/ser/modules/diversion.so
224
+%{_libdir}/ser/modules/flatstore.so
225
+%{_libdir}/ser/modules/gflags.so
226
+%{_libdir}/ser/modules/options.so
227
+%{_libdir}/ser/modules/speeddial.so
228
+%{_libdir}/ser/modules/uri_db.so
229
+
205 230
 %{_sbindir}/ser
206 231
 %{_sbindir}/serctl
232
+%{_sbindir}/serunix
207 233
 %{_sbindir}/gen_ha1
234
+/usr/sbin/rcser
208 235
 
209 236
 %{_mandir}/man5/*
210 237
 %{_mandir}/man8/*
... ...
@@ -223,16 +250,34 @@ sbin/insserv etc/init.d/
223 250
 
224 251
 %files radius
225 252
 %defattr(-,root,root)
226
-%{_libdir}/ser/modules/auth_radius.so
227
-%{_libdir}/ser/modules/group_radius.so
228
-%{_libdir}/ser/modules/uri_radius.so
253
+#%{_libdir}/ser/modules/auth_radius.so
254
+#%{_libdir}/ser/modules/group_radius.so
255
+#%{_libdir}/ser/modules/uri_radius.so
229 256
 %doc %{_docdir}/ser/README.auth_radius
230 257
 %doc %{_docdir}/ser/README.group_radius
231 258
 %doc %{_docdir}/ser/README.uri_radius
232 259
 
233 260
 
261
+
262
+
234 263
 %changelog
235 264
 
265
+* Fri Aug 26 2005 Peter Nixon - Suntel Communications <peter+rpmspam@suntel.com.tr>
266
+- Remove some needless junk
267
+- Add a generic tag for non SUSE versions of linux so build doesnt fail on them
268
+
269
+* Tue Jul 26 2005 Peter Nixon - Suntel Communications <peter+rpmspam@suntel.com.tr>
270
+- changed version to 0.9.3 (new upstream release)
271
+- include SUSE version in the rpm filename(s)
272
+- update rpm package group to match SUSE 9.3
273
+- removed files no longer in tarball
274
+- enabled radius module
275
+- add symlink for rcser
276
+
277
+* Tue Jul 27 2004 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
278
+- changed vesion to 0.8.14 (new upstream release)
279
+- added ext to the modules list, removed the radius modules (they depend on radiusclient-ng now)
280
+
236 281
 * Fri Nov 14 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
237 282
 - changed vesion to 0.8.12 (new upstream release)
238 283
 - added auth_diameter, pdt & mangler to the modules list