Browse code

- rpm stuff merged from stable

Andrei Pelinescu-Onciul authored on 03/09/2003 14:52:16
Showing 3 changed files
1 1
deleted file mode 100644
... ...
@@ -1,225 +0,0 @@
1
-%define name    ser
2
-%define ver     0.8.11pre29
3
-%define rel     1
4
-
5
-%define EXCLUDED_MODULES	mysql jabber auth_radius group_radius uri_radius postgress snmp cpl cpl-c ext extcmd mangler pdt
6
-%define MYSQL_MODULES		mysql
7
-%define JABBER_MODULES		jabber
8
-%define RADIUS_MODULES		auth_radius group_radius uri_radius
9
-%define RADIUS_MOD_PATH		modules/auth_radius modules/group_radius modules/uri_radius
10
-
11
-Summary:      SIP Express Router, very fast and flexible SIP Proxy
12
-Name:         %name
13
-Version:      %ver
14
-Release:      %rel
15
-Packager:     Jan Janak <jan@iptel.org>
16
-Copyright:    GPL
17
-Group:        System Environment/Daemons
18
-Source:       http://iptel.org/ser/stable/%{name}-%{ver}_src.tar.gz
19
-Source2:      ser.init
20
-URL:          http://iptel.org/ser
21
-Vendor:       FhG Fokus
22
-BuildRoot:    /var/tmp/%{name}-%{ver}-root
23
-BuildPrereq:  make flex bison
24
-
25
-
26
-%description
27
-Ser or SIP Express Router is a very fast and flexible SIP (RFC3621)
28
-proxy server. Written entirely in C, ser can handle thousands calls
29
-per second even on low-budget hardware. A C Shell like scripting language
30
-provides full control over the server's behaviour. It's modular
31
-architecture allows only required functionality to be loaded.
32
-Currently the following modules are available: digest authentication,
33
-CPL scripts, instant messaging, MySQL support, a presence agent, radius
34
-authentication, record routing, an SMS gateway, a jabber gateway, a 
35
-transaction module, registrar and user location.
36
-
37
-%package  mysql
38
-Summary:  MySQL connectivity for the SIP Express Router.
39
-Group:    System Environment/Daemons
40
-Requires: ser
41
-BuildPrereq:  mysql-devel zlib-devel
42
-
43
-%description mysql
44
-The ser-mysql package contains MySQL database connectivity that you
45
-need to use digest authentication module or persistent user location
46
-entries.
47
-
48
-%package  jabber
49
-Summary:  sip jabber message translation support for the SIP Express Router.
50
-Group:    System Environment/Daemons
51
-Requires: ser
52
-BuildPrereq:  expat-devel
53
-
54
-%description jabber
55
-The ser-jabber package contains a sip to jabber message translator.
56
-
57
-%package  radius
58
-Summary:  ser radius authentication, group and uri check modules.
59
-Group:    System Environment/Daemons
60
-Requires: ser
61
-BuildPrereq:  radiusclient-devel
62
-
63
-%description radius
64
-The ser-radius package contains modules for radius authentication, group
65
- membership and uri checking.
66
-
67
-%prep
68
-%setup
69
-
70
-%build
71
-make all skip_modules="%EXCLUDED_MODULES"      cfg-target=/%{_sysconfdir}/ser/
72
-make modules modules="modules/%MYSQL_MODULES"  cfg-target=/%{_sysconfdir}/ser/
73
-make modules modules="modules/%JABBER_MODULES" cfg-target=/%{_sysconfdir}/ser/
74
-make modules modules="%RADIUS_MOD_PATH"        cfg-target=/%{_sysconfdir}/ser/
75
-
76
-
77
-%install
78
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
79
-
80
-make install skip_modules="%EXCLUDED_MODULES" \
81
-		basedir=$RPM_BUILD_ROOT \
82
-		prefix=/usr \
83
-		cfg-prefix=$RPM_BUILD_ROOT \
84
-		cfg-target=/%{_sysconfdir}/ser/ 
85
-make install-modules modules="modules/%MYSQL_MODULES" \
86
-		basedir=$RPM_BUILD_ROOT \
87
-		prefix=/usr \
88
-		cfg-prefix=$RPM_BUILD_ROOT \
89
-		cfg-target=/%{_sysconfdir}/ser/ 
90
-make install-modules modules="modules/%JABBER_MODULES" \
91
-		basedir=$RPM_BUILD_ROOT \
92
-		prefix=/usr \
93
-		cfg-prefix=$RPM_BUILD_ROOT \
94
-		cfg-target=/%{_sysconfdir}/ser/ 
95
-make install-modules modules="%RADIUS_MOD_PATH" \
96
-		basedir=$RPM_BUILD_ROOT \
97
-		prefix=/usr \
98
-		cfg-prefix=$RPM_BUILD_ROOT \
99
-		cfg-target=/%{_sysconfdir}/ser/ 
100
-
101
-mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d
102
-install -m755 $RPM_SOURCE_DIR/ser.init \
103
-              $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/ser
104
-
105
-
106
-mkdir -p $RPM_BUILD_ROOT/%{_bindir}
107
-install -m755 scripts/harv_ser.sh \
108
-              $RPM_BUILD_ROOT/%{_bindir}/harv_ser.sh
109
-
110
-mv $RPM_BUILD_ROOT/%{_sbindir}/gen_ha1 $RPM_BUILD_ROOT/%{_bindir}
111
-
112
-
113
-%clean
114
-rm -rf "$RPM_BUILD_ROOT"
115
-
116
-%post
117
-/sbin/chkconfig --add ser
118
-
119
-%preun
120
-if [ $1 = 0 ]; then
121
-    /sbin/service ser stop > /dev/null 2>&1
122
-    /sbin/chkconfig --del ser
123
-fi
124
-
125
-
126
-%files
127
-%defattr(-,root,root)
128
-%doc README
129
-
130
-%dir %{_sysconfdir}/ser
131
-%config(noreplace) %{_sysconfdir}/ser/*
132
-%config %{_sysconfdir}/rc.d/init.d/*
133
-
134
-%dir %{_libdir}/ser
135
-%dir %{_libdir}/ser/modules
136
-%{_libdir}/ser/modules/acc.so
137
-%{_libdir}/ser/modules/auth.so
138
-%{_libdir}/ser/modules/auth_db.so
139
-%{_libdir}/ser/modules/dbtext.so
140
-%{_libdir}/ser/modules/domain.so
141
-%{_libdir}/ser/modules/enum.so
142
-%{_libdir}/ser/modules/exec.so
143
-%{_libdir}/ser/modules/group.so
144
-%{_libdir}/ser/modules/maxfwd.so
145
-%{_libdir}/ser/modules/msilo.so
146
-%{_libdir}/ser/modules/nathelper.so
147
-%{_libdir}/ser/modules/pa.so
148
-%{_libdir}/ser/modules/permissions.so
149
-%{_libdir}/ser/modules/pike.so
150
-%{_libdir}/ser/modules/print.so
151
-%{_libdir}/ser/modules/registrar.so
152
-%{_libdir}/ser/modules/rr.so
153
-%{_libdir}/ser/modules/sl.so
154
-%{_libdir}/ser/modules/sms.so
155
-%{_libdir}/ser/modules/textops.so
156
-%{_libdir}/ser/modules/tm.so
157
-%{_libdir}/ser/modules/uri.so
158
-%{_libdir}/ser/modules/usrloc.so
159
-%{_libdir}/ser/modules/vm.so
160
-
161
-%{_sbindir}/ser
162
-%{_sbindir}/serctl
163
-
164
-%{_bindir}/harv_ser.sh
165
-%{_bindir}/gen_ha1
166
-
167
-%{_mandir}/man5/*
168
-%{_mandir}/man8/*
169
-
170
-
171
-%files mysql
172
-%defattr(-,root,root)
173
-
174
-%{_libdir}/ser/modules/mysql.so
175
-%{_sbindir}/ser_mysql.sh
176
-
177
-%files jabber
178
-%defattr(-,root,root)
179
-
180
-%{_libdir}/ser/modules/jabber.so
181
-
182
-%files radius
183
-%defattr(-,root,root)
184
-
185
-%{_libdir}/ser/modules/auth_radius.so
186
-%{_libdir}/ser/modules/group_radius.so
187
-%{_libdir}/ser/modules/uri_radius.so
188
-
189
-
190
-%changelog
191
-
192
-* Sun Jun 1 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
193
-- added a separate rpm for the radius modules
194
-- updated to the new makefile variables (removed lots of unnecessary stuff)
195
-
196
-* Thu Nov 14 2002 Jan Janak <J.Janak@sh.cvut.cz>
197
-- Installing harv_ser.sh again
198
-- quick hack to move gen_ha1 to bin directory instead of sbin (should
199
-  be done from the Makefile next time)
200
-
201
-* Tue Nov 12 2002 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.gmd.de>
202
-- added a separate rpm for the jabber modules
203
-- moved all the binaries to sbin
204
-- removed obsolete installs (make install installs everything now)
205
-
206
-* Fri Oct 25 2002 Jan Janak <J.Janak@sh.cvut.cz>
207
-- Minor description fixes
208
-
209
-* Fri Oct  4 2002 Jiri Kuthan <jiri@iptel.org>
210
-- exec module introduced
211
-
212
-* Wed Sep 25 2002 Andrei Pelinescu - Onciul  <pelinescu-onciul@fokus.gmd.de>
213
-- modified make install & make: added cfg-target & modules-target
214
-
215
-* Sun Sep 08 2002 Jan Janak <J.Janak@sh.cvut.cz>
216
-- Created subpackage containing mysql connectivity support.
217
-
218
-* Mon Sep 02 2002 Jan Janak <J.Janak@sh.cvut.cz>
219
-- gen_ha1 utility added, scripts added.
220
-
221
-* Tue Aug 28 2002 Jan Janak <J.Janak@sh.cvut.cz>
222
-- Finished the first version of the spec file.
223
-
224
-* Sun Aug 12 2002 Jan Janak <J.Janak@sh.cvut.cz>
225
-- First version of the spec file.
... ...
@@ -1,5 +1,5 @@
1 1
 %define name    ser
2
-%define ver     0.8.11pre30
2
+%define ver     0.8.11
3 3
 %define rel     0
4 4
 
5 5
 %define EXCLUDED_MODULES	mysql jabber auth_radius group_radius uri_radius postgress snmp cpl cpl-c ext extcmd mangler pdt
... ...
@@ -38,7 +38,7 @@ transaction module, registrar and user location.
38 38
 %package  mysql
39 39
 Summary:  MySQL connectivity for the SIP Express Router.
40 40
 Group:    System Environment/Daemons
41
-Requires: ser
41
+Requires: ser = %ver
42 42
 BuildPrereq:  mysql-devel zlib-devel
43 43
 
44 44
 %description mysql
... ...
@@ -49,7 +49,7 @@ entries.
49 49
 %package  jabber
50 50
 Summary:  sip jabber message translation support for the SIP Express Router.
51 51
 Group:    System Environment/Daemons
52
-Requires: ser
52
+Requires: ser = %ver
53 53
 BuildPrereq:  expat-devel
54 54
 
55 55
 %description jabber
... ...
@@ -58,7 +58,7 @@ The ser-jabber package contains a sip to jabber message translator.
58 58
 %package  radius
59 59
 Summary:  ser radius authentication, group and uri check modules.
60 60
 Group:    System Environment/Daemons
61
-Requires: ser
61
+Requires: ser = %ver
62 62
 BuildPrereq:  radiusclient-devel
63 63
 
64 64
 %description radius
... ...
@@ -114,11 +114,6 @@ install -m755 $RPM_SOURCE_DIR/ser.init \
114 114
               $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/ser
115 115
 
116 116
 
117
-mkdir -p $RPM_BUILD_ROOT/%{_bindir}
118
-install -m755 scripts/harv_ser.sh \
119
-              $RPM_BUILD_ROOT/%{_bindir}/harv_ser.sh
120
-
121
-mv $RPM_BUILD_ROOT/%{_sbindir}/gen_ha1 $RPM_BUILD_ROOT/%{_bindir}
122 117
 
123 118
 
124 119
 %clean
... ...
@@ -138,13 +133,13 @@ fi
138 133
 %defattr(-,root,root)
139 134
 %dir %{_docdir}/ser
140 135
 %doc %{_docdir}/ser/AUTHORS
136
+%doc %{_docdir}/ser/NEWS
141 137
 %doc %{_docdir}/ser/INSTALL
142 138
 %doc %{_docdir}/ser/README
143 139
 %doc %{_docdir}/ser/README-MODULES
144 140
 %doc %{_docdir}/ser/README.acc
145 141
 %doc %{_docdir}/ser/README.auth
146 142
 %doc %{_docdir}/ser/README.auth_db
147
-%doc %{_docdir}/ser/README.cfg
148 143
 %doc %{_docdir}/ser/README.dbtext
149 144
 %doc %{_docdir}/ser/README.domain
150 145
 %doc %{_docdir}/ser/README.enum
... ...
@@ -166,6 +161,7 @@ fi
166 161
 %doc %{_docdir}/ser/README.uri
167 162
 %doc %{_docdir}/ser/README.usrloc
168 163
 %doc %{_docdir}/ser/README.vm
164
+%doc %{_docdir}/ser/README.xlog
169 165
 
170 166
 %dir %{_sysconfdir}/ser
171 167
 %config(noreplace) %{_sysconfdir}/ser/*
... ...
@@ -197,12 +193,12 @@ fi
197 193
 %{_libdir}/ser/modules/uri.so
198 194
 %{_libdir}/ser/modules/usrloc.so
199 195
 %{_libdir}/ser/modules/vm.so
196
+%{_libdir}/ser/modules/xlog.so
200 197
 
201 198
 %{_sbindir}/ser
202 199
 %{_sbindir}/serctl
203 200
 
204
-%{_bindir}/harv_ser.sh
205
-%{_bindir}/gen_ha1
201
+%{_sbindir}/gen_ha1
206 202
 
207 203
 %{_mandir}/man5/*
208 204
 %{_mandir}/man8/*
... ...
@@ -233,6 +229,12 @@ fi
233 229
 
234 230
 %changelog
235 231
 
232
+* Wed Aug 27 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
233
+- changed vesion to 0.8.11
234
+- gen_ha1 is now left in _sbindir
235
+- removed harv_ser.sh
236
+- added xlog to the modules list
237
+
236 238
 * Fri Jun 6 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
237 239
 - added Conflicts:, changed vesion to 0.8.11pre30
238 240
 
... ...
@@ -1,6 +1,6 @@
1 1
 %define name    ser
2
-%define ver     0.8.11pre29
3
-%define rel     1
2
+%define ver     0.8.11
3
+%define rel     0
4 4
 
5 5
 %define EXCLUDED_MODULES	mysql jabber auth_radius group_radius uri_radius postgress snmp cpl cpl-c ext extcmd mangler pdt
6 6
 %define MYSQL_MODULES		mysql
... ...
@@ -12,7 +12,7 @@ Summary:      SIP Express Router, very fast and flexible SIP Proxy
12 12
 Name:         %name
13 13
 Version:      %ver
14 14
 Release:      %rel
15
-Packager:     Nils Ohlmeier <ohlmeier@fokus.fhg.de>
15
+Packager:     Nils Ohlmeier <nils@iptel.org>
16 16
 Copyright:    GPL
17 17
 Group:        Networking/Daemons
18 18
 Source:       http://iptel.org/ser/stable/%{name}-%{ver}_src.tar.gz
... ...
@@ -20,6 +20,7 @@ Source2:      ser.init.SuSE
20 20
 URL:          http://www.iptel.org/ser
21 21
 Vendor:       FhG Fokus
22 22
 BuildRoot:    /var/tmp/%{name}-%{ver}-root
23
+Conflicts:    ser < %ver, ser-mysql < %ver, ser-jabber < %ver, ser-radius < %ver
23 24
 BuildPrereq:  make flex bison 
24 25
 
25 26
 
... ...
@@ -37,8 +38,8 @@ transaction module, registrar and user location.
37 38
 %package  mysql
38 39
 Summary:  MySQL connectivity for the SIP Express Router.
39 40
 Group:    System Environment/Daemons
40
-Requires: ser mysql
41
-BuildPrereq: mysql-devel
41
+Requires: ser = %ver
42
+BuildPrereq: mysql-devel zlib-devel
42 43
 
43 44
 %description mysql
44 45
 The ser-mysql package contains MySQL database connectivity that you
... ...
@@ -48,8 +49,8 @@ entries.
48 49
 %package  jabber
49 50
 Summary:  sip jabber message translation support for the SIP Express Router.
50 51
 Group:    System Environment/Daemons
51
-Requires: ser
52
-BuildPrereq:  expat
52
+Requires: ser = %ver
53
+BuildPrereq: expat
53 54
 
54 55
 %description jabber
55 56
 The ser-jabber package contains a sip to jabber message translator.
... ...
@@ -57,7 +58,7 @@ The ser-jabber package contains a sip to jabber message translator.
57 58
 %package  radius
58 59
 Summary:  ser radius authentication, group and uri check modules.
59 60
 Group:    System Environment/Daemons
60
-Requires: ser
61
+Requires: ser = %ver
61 62
 BuildPrereq:  radiusclient
62 63
 
63 64
 %description radius
... ...
@@ -80,22 +81,36 @@ make install skip_modules="%EXCLUDED_MODULES" \
80 81
 		basedir=$RPM_BUILD_ROOT \
81 82
 		prefix=/usr \
82 83
 		cfg-prefix=$RPM_BUILD_ROOT \
83
-		cfg-target=/%{_sysconfdir}/ser/ 
84
+		cfg-target=/%{_sysconfdir}/ser/ \
85
+		doc-prefix=$RPM_BUILD_ROOT \
86
+		doc-dir=/%{_docdir}/ser/
84 87
 make install-modules modules="modules/%MYSQL_MODULES" \
85 88
 		basedir=$RPM_BUILD_ROOT \
86 89
 		prefix=/usr \
87 90
 		cfg-prefix=$RPM_BUILD_ROOT \
88
-		cfg-target=/%{_sysconfdir}/ser/ 
91
+		cfg-target=/%{_sysconfdir}/ser/ \
92
+		doc-prefix=$RPM_BUILD_ROOT \
93
+		doc-dir=/%{_docdir}/ser/
89 94
 make install-modules modules="modules/%JABBER_MODULES" \
90 95
 		basedir=$RPM_BUILD_ROOT \
91 96
 		prefix=/usr \
92 97
 		cfg-prefix=$RPM_BUILD_ROOT \
93
-		cfg-target=/%{_sysconfdir}/ser/ 
98
+		cfg-target=/%{_sysconfdir}/ser/ \
99
+		doc-prefix=$RPM_BUILD_ROOT \
100
+		doc-dir=/%{_docdir}/ser/
94 101
 make install-modules modules="%RADIUS_MOD_PATH" \
95 102
 		basedir=$RPM_BUILD_ROOT \
96 103
 		prefix=/usr \
97 104
 		cfg-prefix=$RPM_BUILD_ROOT \
98
-		cfg-target=/%{_sysconfdir}/ser/ 
105
+		cfg-target=/%{_sysconfdir}/ser/ \
106
+		doc-prefix=$RPM_BUILD_ROOT \
107
+		doc-dir=/%{_docdir}/ser/
108
+make install-doc modules="modules/%JABBER_MODULES %RADIUS_MOD_PATH" \
109
+		basedir=$RPM_BUILD_ROOT \
110
+		prefix=/usr \
111
+		doc-prefix=$RPM_BUILD_ROOT \
112
+		doc-dir=/%{_docdir}/ser/
113
+
99 114
 
100 115
 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/init.d
101 116
 install -m755 $RPM_SOURCE_DIR/ser.init.SuSE \
... ...
@@ -117,7 +132,37 @@ sbin/insserv etc/init.d/
117 132
 
118 133
 %files
119 134
 %defattr(-,root,root)
120
-%doc README
135
+%dir %{_docdir}/ser
136
+%doc %{_docdir}/ser/AUTHORS
137
+%doc %{_docdir}/ser/NEWS
138
+%doc %{_docdir}/ser/INSTALL
139
+%doc %{_docdir}/ser/README
140
+%doc %{_docdir}/ser/README-MODULES
141
+%doc %{_docdir}/ser/README.acc
142
+%doc %{_docdir}/ser/README.auth
143
+%doc %{_docdir}/ser/README.auth_db
144
+%doc %{_docdir}/ser/README.dbtext
145
+%doc %{_docdir}/ser/README.domain
146
+%doc %{_docdir}/ser/README.enum
147
+%doc %{_docdir}/ser/README.exec
148
+%doc %{_docdir}/ser/README.group
149
+%doc %{_docdir}/ser/README.maxfwd
150
+%doc %{_docdir}/ser/README.msilo
151
+%doc %{_docdir}/ser/README.nathelper
152
+%doc %{_docdir}/ser/README.pa
153
+%doc %{_docdir}/ser/README.permissions
154
+%doc %{_docdir}/ser/README.pike
155
+%doc %{_docdir}/ser/README.print
156
+%doc %{_docdir}/ser/README.registrar
157
+%doc %{_docdir}/ser/README.rr
158
+%doc %{_docdir}/ser/README.sl
159
+%doc %{_docdir}/ser/README.sms
160
+%doc %{_docdir}/ser/README.textops
161
+%doc %{_docdir}/ser/README.tm
162
+%doc %{_docdir}/ser/README.uri
163
+%doc %{_docdir}/ser/README.usrloc
164
+%doc %{_docdir}/ser/README.vm
165
+%doc %{_docdir}/ser/README.xlog
121 166
 
122 167
 %dir %{_sysconfdir}/ser
123 168
 %config(noreplace) %{_sysconfdir}/ser/*
... ...
@@ -149,6 +194,7 @@ sbin/insserv etc/init.d/
149 194
 %{_libdir}/ser/modules/uri.so
150 195
 %{_libdir}/ser/modules/usrloc.so
151 196
 %{_libdir}/ser/modules/vm.so
197
+%{_libdir}/ser/modules/xlog.so
152 198
 
153 199
 %{_sbindir}/ser
154 200
 %{_sbindir}/serctl
... ...
@@ -167,16 +213,39 @@ sbin/insserv etc/init.d/
167 213
 %files jabber
168 214
 %defattr(-,root,root)
169 215
 %{_libdir}/ser/modules/jabber.so
216
+%doc %{_docdir}/ser/README.jabber
170 217
 
171 218
 %files radius
172 219
 %defattr(-,root,root)
173 220
 %{_libdir}/ser/modules/auth_radius.so
174 221
 %{_libdir}/ser/modules/group_radius.so
175 222
 %{_libdir}/ser/modules/uri_radius.so
223
+%doc %{_docdir}/ser/README.auth_radius
224
+%doc %{_docdir}/ser/README.group_radius
225
+%doc %{_docdir}/ser/README.uri_radius
176 226
 
177 227
 
178 228
 %changelog
179 229
 
230
+* Wed Aug 28 2003 Nils Ohlmeier <nils@iptel.org>
231
+- replaced modules Conflicts with required Ser version
232
+- fixed doc installation for SuSE pathes
233
+- added doc for jabber and radius
234
+
235
+* Wed Aug 28 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
236
+- added doc (READMEs, NEWS, AUTHORS a.s.o)
237
+- added xlog to the modules list
238
+
239
+* Wed Aug 27 2003 Nils Ohlmeier <nils@iptel.org>
240
+- fixed module dependencys
241
+- added Conflicts for modules
242
+
243
+* Wed Aug 27 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
244
+- changed vesion to 0.8.11
245
+- gen_ha1 is now left in _sbindir
246
+- removed harv_ser.sh
247
+- added Conflicts
248
+
180 249
 * Mon Jun 2 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
181 250
 - added a separate rpm for the radius modules
182 251
 - updated to the new makefile variables (removed lots of unnecessary stuff)