Browse code

- fedora rpm spec updated-- WARNING: not tested, it probably needs some more fixes

Andrei Pelinescu-Onciul authored on 28/06/2005 15:31:45
Showing 1 changed files
... ...
@@ -1,13 +1,17 @@
1
-%define EXCLUDED_MODULES	mysql jabber auth_radius group_radius uri_radius postgress snmp cpl cpl-c extcmd
1
+%define EXCLUDED_MODULES	mysql jabber auth_radius group_radius uri_radius avp_radius pa postgres snmp cpl cpl-c ext extcmd
2 2
 %define MYSQL_MODULES		mysql
3 3
 %define JABBER_MODULES		jabber
4
-%define RADIUS_MODULES		auth_radius group_radius uri_radius
4
+%define RADIUS_MODULES		auth_radius group_radius uri_radius avp_radius
5
+%define CPL_MODULES		cpl-c
6
+%define PA_MODULES		pa
7
+%define POSTGRES_MODULES		postgres
8
+%define ACC_MODULE		acc
5 9
 %define RADIUS_MOD_PATH		modules/auth_radius modules/group_radius modules/uri_radius
6 10
 
7 11
 
8 12
 Summary:      SIP Express Router, very fast and flexible SIP Proxy
9 13
 Name:         ser
10
-Version:      0.8.14
14
+Version:      0.9.3
11 15
 Release:      fc2.0
12 16
 Copyright:    GPL
13 17
 Group:        System Environment/Daemons
... ...
@@ -56,17 +60,37 @@ BuildPrereq:  expat-devel
56 60
 The ser-jabber package contains a sip to jabber message translator.
57 61
 
58 62
 
63
+# commented out due to missing libradiusclient-ng
59 64
 #%package  radius
60 65
 #Summary:  ser radius authentication, group and uri check modules.
61 66
 #Group:    System Environment/Daemons
62 67
 #Requires: ser = %{version}
63
-#BuildPrereq:  radiusclient-devel
68
+#BuildPrereq:  radiusclient-ng-devel
64 69
 
65 70
 
66 71
 #%description radius
67 72
 #The ser-radius package contains modules for radius authentication, group
68 73
 # membership and uri checking.
69 74
 
75
+%package  cpl 
76
+Summary:  CPL support.
77
+Group:    System Environment/Daemons
78
+Requires: ser = %{version}
79
+BuildPrereq:  xml2-devel
80
+
81
+%package  pa 
82
+Summary:  presence server support.
83
+Group:    System Environment/Daemons
84
+Requires: ser = %{version}
85
+BuildPrereq:  xml2-devel
86
+
87
+%package  postgres
88
+Summary:  postgres connectivity for the SIP Express Router.
89
+Group:    System Environment/Daemons
90
+Requires: ser = %{version}
91
+BuildPrereq:  libpq-devel
92
+
93
+
70 94
 
71 95
 %prep
72 96
 %setup
... ...
@@ -76,7 +100,10 @@ The ser-jabber package contains a sip to jabber message translator.
76 100
 make all skip_modules="%EXCLUDED_MODULES"      cfg-target=/%{_sysconfdir}/ser/
77 101
 make modules modules="modules/%MYSQL_MODULES"  cfg-target=/%{_sysconfdir}/ser/
78 102
 make modules modules="modules/%JABBER_MODULES" cfg-target=/%{_sysconfdir}/ser/
79
-make modules modules="%RADIUS_MOD_PATH"        cfg-target=/%{_sysconfdir}/ser/
103
+#make modules modules="%RADIUS_MOD_PATH"        cfg-target=/%{_sysconfdir}/ser/
104
+make modules modules="modules/%CPL_MODULES"    cfg-target=/%{_sysconfdir}/ser/
105
+make modules modules="modules/%PA_MODULES"     cfg-target=/%{_sysconfdir}/ser/
106
+make modules modules="modules/%POSTGRES_MODULES" cfg-target=/%{_sysconfdir}/ser/
80 107
 
81 108
 
82 109
 %install
... ...
@@ -86,17 +113,12 @@ make install skip_modules="%EXCLUDED_MODULES" \
86 113
 		prefix=%{_prefix} \
87 114
 		cfg-prefix=%{buildroot} \
88 115
 		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" \
116
+make install-modules-all modules="modules/%MYSQL_MODULES" \
95 117
 		basedir=%{buildroot} \
96 118
 		prefix=%{_prefix} \
97 119
 		cfg-prefix=%{buildroot} \
98 120
 		cfg-target=/%{_sysconfdir}/ser/ 
99
-make install-doc modules="modules/%JABBER_MODULES" \
121
+make install-modules-all modules="modules/%JABBER_MODULES" \
100 122
 		basedir=%{buildroot} \
101 123
 		prefix=%{_prefix} \
102 124
 		cfg-prefix=%{buildroot} \
... ...
@@ -111,6 +133,21 @@ make install-doc modules="modules/%JABBER_MODULES" \
111 133
 #		prefix=%{_prefix} \
112 134
 #		cfg-prefix=%{buildroot} \
113 135
 #		cfg-target=/%{_sysconfdir}/ser/ 
136
+make install-modules-all modules="modules/%CPL_MODULES" \
137
+		basedir=%{buildroot} \
138
+		prefix=%{_prefix} \
139
+		cfg-prefix=%{buildroot} \
140
+		cfg-target=/%{_sysconfdir}/ser/ 
141
+make install-modules-all modules="modules/%PA_MODULES" \
142
+		basedir=%{buildroot} \
143
+		prefix=%{_prefix} \
144
+		cfg-prefix=%{buildroot} \
145
+		cfg-target=/%{_sysconfdir}/ser/ 
146
+make install-modules-all modules="modules/%POSTGRES_MODULES" \
147
+		basedir=%{buildroot} \
148
+		prefix=%{_prefix} \
149
+		cfg-prefix=%{buildroot} \
150
+		cfg-target=/%{_sysconfdir}/ser/ 
114 151
 install -m755 -D %{SOURCE1} %{buildroot}/%{_initrddir}/ser
115 152
 
116 153
 
... ...
@@ -144,6 +181,12 @@ fi
144 181
 %exclude %{_libdir}/ser/modules/jabber.so
145 182
 #%exclude %{_docdir}/ser/README.*_radius
146 183
 #%exclude %{_libdir}/ser/modules/*_radius.so
184
+%exclude %{_docdir}/ser/README.cpl-c
185
+%exclude %{_libdir}/ser/modules/cpl-c.so
186
+%exclude %{_docdir}/ser/README.pa
187
+%exclude %{_libdir}/ser/modules/pa.so
188
+%exclude %{_docdir}/ser/README.postgres
189
+%exclude %{_libdir}/ser/modules/postgres.so
147 190
 
148 191
 
149 192
 %files mysql
... ...
@@ -164,8 +207,30 @@ fi
164 207
 #%{_libdir}/ser/modules/*_radius.so
165 208
 
166 209
 
210
+%files cpl 
211
+%defattr(-,root,root)
212
+%doc %{_docdir}/ser/README.cpl-c
213
+%{_libdir}/ser/modules/cpl-c.so
214
+
215
+
216
+%files pa 
217
+%defattr(-,root,root)
218
+%doc %{_docdir}/ser/README.pa
219
+%{_libdir}/ser/modules/pa.so
220
+
221
+
222
+%files postgres 
223
+%defattr(-,root,root)
224
+%doc %{_docdir}/ser/README.postgres
225
+%{_libdir}/ser/modules/postgres.so
226
+
227
+
167 228
 %changelog
168 229
 
230
+* Fri Jun 28 2005 Andrei Pelinescu - Onciul <andrei@iptel.org>
231
+- changed vesion to 0.9.3 (new upstream release)
232
+- added cpl, pa and postgres to the modules list
233
+
169 234
 * Tue Nov 23 2004 Gabriel Somlo <somlo@acns.colostate.edu>
170 235
 - reworked spec file for fedora core 2
171 236
 - replaced absolute paths with macros wherever possible