Browse code

- added updated ser.spec for Fedora core2, contributed by Gabriel Somlo (if this turns out to work with old RHs, it will replace ser.spec-4.1)

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