comparison gaim.spec.in @ 14524:565f90ad0c84

[gaim-migrate @ 17245] * Don't install gaim-notifications-example when make installing * Have gaim-notifications-example placed in the doc dir when installing Gaim from RPMs * Add the gconf schema to the Gaim RPM * Alphabetize some stuff committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 11 Sep 2006 06:15:58 +0000
parents a8e05cb27456
children dfd6435cac04
comparison
equal deleted inserted replaced
14523:9874c8949354 14524:565f90ad0c84
26 Source: %{name}-@VERSION@.tar.bz2 26 Source: %{name}-@VERSION@.tar.bz2
27 BuildRoot: %{_tmppath}/%{name}-%{version}-root 27 BuildRoot: %{_tmppath}/%{name}-%{version}-root
28 28
29 # Generic build requirements 29 # Generic build requirements
30 BuildRequires: libtool, pkgconfig, intltool, gettext 30 BuildRequires: libtool, pkgconfig, intltool, gettext
31 %{?_with_avahi:BuildRequires: avahi-compat-howl avahi-compat-howl-devel}
32 %{?_with_dbus:BuildRequires: dbus-devel >= 0.35}
33 %{?_with_gadugadu:BuildRequires: libgadu-devel}
31 %{!?_without_gstreamer:BuildRequires: gstreamer-devel} 34 %{!?_without_gstreamer:BuildRequires: gstreamer-devel}
32 %{?_with_avahi:BuildRequires: avahi-compat-howl avahi-compat-howl-devel} 35 %{!?_without_gtkspell:BuildRequires: gtkspell-devel}
33 %{?_with_howl:BuildRequires: howl-devel} 36 %{?_with_howl:BuildRequires: howl-devel}
37 %{?_with_meanwhile:BuildRequires: meanwhile-devel}
38 %{?_with_mono:BuildRequires: mono-devel}
39 %{?_with_sasl:BuildRequires: cyrus-sasl-devel >= 2}
34 %{?_with_silc:BuildRequires: /usr/include/silc/silcclient.h} 40 %{?_with_silc:BuildRequires: /usr/include/silc/silcclient.h}
35 %{?_with_meanwhile:BuildRequires: meanwhile-devel}
36 %{?_with_gadugadu:BuildRequires: libgadu-devel}
37 %{?_with_tcl:BuildRequires: tcl, tk, /usr/include/tcl.h} 41 %{?_with_tcl:BuildRequires: tcl, tk, /usr/include/tcl.h}
38 %{?_with_mono:BuildRequires: mono-devel}
39 %{?_with_dbus:BuildRequires: dbus-devel >= 0.35}
40 %{!?_without_gtkspell:BuildRequires: gtkspell-devel}
41 %{?_with_sasl:BuildRequires: cyrus-sasl-devel >= 2}
42 # For some reason perl isn't always automatically detected as a requirement :( 42 # For some reason perl isn't always automatically detected as a requirement :(
43 Requires: perl 43 Requires: perl
44 44
45 # Mandrake 10.1 and lower || Mandrake 10.2 (and higher?) 45 # Mandrake 10.1 and lower || Mandrake 10.2 (and higher?)
46 %if "%{_vendor}" == "MandrakeSoft" || "%{_vendor}" == "Mandrakesoft" || "%{_vendor}" == "Mandriva" 46 %if "%{_vendor}" == "MandrakeSoft" || "%{_vendor}" == "Mandrakesoft" || "%{_vendor}" == "Mandriva"
61 BuildRequires: perl-XML-Parser 61 BuildRequires: perl-XML-Parser
62 BuildRequires: mozilla-nss-devel 62 BuildRequires: mozilla-nss-devel
63 %endif 63 %endif
64 %endif 64 %endif
65 65
66 %package devel
67 Summary: Development headers, documentation, and libraries for Gaim.
68 Group: Applications/Internet
69 Requires: pkgconfig, gaim = %{epoch}:%{version}
70
66 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1} 71 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1}
67 %package bonjour 72 %package bonjour
68 Summary: Bonjour plugin for Gaim 73 Summary: Bonjour plugin for Gaim
69 Group: Applications/Internet 74 Group: Applications/Internet
70 Requires: gaim = %{epoch}:%{version} 75 Requires: gaim = %{epoch}:%{version}
71 %endif 76 %endif
72 77
78 %if 0%{?_with_gadugadu:1}
79 %package gadugadu
80 Summary: Gadu-Gadu plugin for Gaim using the libgadu library
81 Group: Applications/Internet
82 Requires: gaim = %{epoch}:%{version}
83 %endif
84
85 %if 0%{?_with_meanwhile:1}
86 %package meanwhile
87 Summary: Lotus Sametime plugin for Gaim using the Meanwhile library
88 Group: Applications/Internet
89 Requires: gaim = %{epoch}:%{version}
90 %endif
91
92 %if 0%{?_with_mono:1}
93 %package mono
94 Summary: Mono .NET plugin support for Gaim
95 Group: Applications/Internet
96 Requires: gaim = %{epoch}:%{version}
97 %endif
98
73 %if 0%{?_with_silc:1} 99 %if 0%{?_with_silc:1}
74 %package silc 100 %package silc
75 Summary: SILC (Secure Internet Live Conferencing) plugin for Gaim 101 Summary: SILC (Secure Internet Live Conferencing) plugin for Gaim
76 Group: Applications/Internet 102 Group: Applications/Internet
77 Requires: gaim = %{epoch}:%{version} 103 Requires: gaim = %{epoch}:%{version}
78 %endif 104 %endif
79 105
80 %if 0%{?_with_meanwhile:1}
81 %package meanwhile
82 Summary: Lotus Sametime plugin for Gaim using the Meanwhile library
83 Group: Applications/Internet
84 Requires: gaim = %{epoch}:%{version}
85 %endif
86
87 %if 0%{?_with_gadugadu:1}
88 %package gadugadu
89 Summary: Gadu-Gadu plugin for Gaim using the libgadu library
90 Group: Applications/Internet
91 Requires: gaim = %{epoch}:%{version}
92 %endif
93
94 %if 0%{?_with_tcl:1} 106 %if 0%{?_with_tcl:1}
95 %package tcl 107 %package tcl
96 Summary: Tcl scripting support for Gaim 108 Summary: Tcl scripting support for Gaim
97 Group: Applications/Internet 109 Group: Applications/Internet
98 Requires: gaim = %{epoch}:%{version} 110 Requires: gaim = %{epoch}:%{version}
99 %endif 111 %endif
100
101 %if 0%{?_with_mono:1}
102 %package mono
103 Summary: Mono .NET plugin support for Gaim
104 Group: Applications/Internet
105 Requires: gaim = %{epoch}:%{version}
106 %endif
107
108 %package devel
109 Summary: Development headers, documentation, and libraries for Gaim.
110 Group: Applications/Internet
111 Requires: pkgconfig, gaim = %{epoch}:%{version}
112 112
113 %description 113 %description
114 Gaim allows you to talk to anyone using a variety of messaging 114 Gaim allows you to talk to anyone using a variety of messaging
115 protocols, including AIM, ICQ, IRC, Yahoo!, Novell Groupwise, MSN 115 protocols, including AIM, ICQ, IRC, Yahoo!, Novell Groupwise, MSN
116 Messenger, Jabber, Gadu-Gadu, Lotus Sametime and Zephyr. 116 Messenger, Jabber, Gadu-Gadu, Lotus Sametime and Zephyr.
121 unique features, such as perl scripting, TCL scripting and C plugins. 121 unique features, such as perl scripting, TCL scripting and C plugins.
122 122
123 Gaim is NOT affiliated with or endorsed by America Online, Inc., 123 Gaim is NOT affiliated with or endorsed by America Online, Inc.,
124 Microsoft Corporation, Yahoo! Inc., or ICQ Inc. 124 Microsoft Corporation, Yahoo! Inc., or ICQ Inc.
125 125
126 %description devel
127 The gaim-devel package contains the header files, developer
128 documentation, and libraries required for development of gaim scripts
129 and plugins.
130
126 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1} 131 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1}
127 %description bonjour 132 %description bonjour
128 Bonjour plugin for Gaim 133 Bonjour plugin for Gaim
129 %endif 134 %endif
130 135
136 %if 0%{?_with_gadugadu:1}
137 %description gadugadu
138 Gadu-Gadu plugin for Gaim using the libgadu library
139 %endif
140
141 %if 0%{?_with_meanwhile:1}
142 %description meanwhile
143 Lotus Sametime plugin for Gaim using the Meanwhile library
144 %endif
145
146 %if 0%{?_with_mono:1}
147 %description mono
148 Mono plugin loader for Gaim. This package will allow you to write or
149 use Gaim plugins written in the .NET programming language.
150 %endif
151
131 %if 0%{?_with_silc:1} 152 %if 0%{?_with_silc:1}
132 %description silc 153 %description silc
133 SILC (Secure Internet Live Conferencing) plugin for Gaim 154 SILC (Secure Internet Live Conferencing) plugin for Gaim
134 %endif
135
136 %if 0%{?_with_meanwhile:1}
137 %description meanwhile
138 Lotus Sametime plugin for Gaim using the Meanwhile library
139 %endif
140
141 %if 0%{?_with_gadugadu:1}
142 %description gadugadu
143 Gadu-Gadu plugin for Gaim using the libgadu library
144 %endif 155 %endif
145 156
146 %if 0%{?_with_tcl:1} 157 %if 0%{?_with_tcl:1}
147 %description tcl 158 %description tcl
148 Tcl plugin loader for Gaim. This package will allow you to write or 159 Tcl plugin loader for Gaim. This package will allow you to write or
149 use Gaim plugins written in the Tcl programming language. 160 use Gaim plugins written in the Tcl programming language.
150 %endif 161 %endif
151
152 %if 0%{?_with_mono:1}
153 %description mono
154 Mono plugin loader for Gaim. This package will allow you to write or
155 use Gaim plugins written in the .NET programming language.
156 %endif
157
158 %description devel
159 The gaim-devel package contains the header files, developer
160 documentation, and libraries required for development of gaim scripts
161 and plugins.
162 162
163 %prep 163 %prep
164 %setup -q -n %{name}-@VERSION@ 164 %setup -q -n %{name}-@VERSION@
165 165
166 %build 166 %build
169 --datadir=%{_datadir} \ 169 --datadir=%{_datadir} \
170 --includedir=%{_includedir} \ 170 --includedir=%{_includedir} \
171 --libdir=%{_libdir} \ 171 --libdir=%{_libdir} \
172 --mandir=%{_mandir} \ 172 --mandir=%{_mandir} \
173 --sysconfdir=%{_sysconfdir} \ 173 --sysconfdir=%{_sysconfdir} \
174 --with-ao=%{_libdir} \ 174 %{!?_with_dbus:--disable-dbus} \
175 %{?_without_gstreamer:--disable-gstreamer} \
176 %{?_without_gtkspell:--disable-gtkspell} \
177 %{?_with_mono:--enable-mono} \
178 %{?_with_perlmakehack:--with-perl-lib=%{buildroot}%{_prefix}} \
175 %{!?_with_perlmakehack:--with-perl-lib=%{_prefix}} \ 179 %{!?_with_perlmakehack:--with-perl-lib=%{_prefix}} \
176 %{?_with_perlmakehack:--with-perl-lib=%{buildroot}%{_prefix}} \ 180 %{?_with_sasl:--enable-cyrus-sasl} \
177 %{?_with_silc:--with-silc-includes=%{_includedir}/silc} \ 181 %{?_with_silc:--with-silc-includes=%{_includedir}/silc} \
178 %{?_with_silc:--with-silc-libs=%{_libdir}/silc} \ 182 %{?_with_silc:--with-silc-libs=%{_libdir}/silc} \
179 %{?_with_mono:--enable-mono} \ 183 %{!?_with_tcl:--disable-tcl}
180 %{!?_with_tcl:--disable-tcl} \
181 %{!?_with_dbus:--disable-dbus} \
182 %{?_without_gtkspell:--disable-gtkspell} \
183 %{?_with_sasl:--enable-cyrus-sasl} \
184 %{?_without_gstreamer:--disable-gstreamer}
185 184
186 make %{?_smp_mflags} 185 make %{?_smp_mflags}
187 186
188 %install 187 %install
189 rm -rf %{buildroot} 188 rm -rf %{buildroot}
195 install 194 install
196 %else 195 %else
197 make DESTDIR=$RPM_BUILD_ROOT install 196 make DESTDIR=$RPM_BUILD_ROOT install
198 %endif 197 %endif
199 198
199 # Delete files that we don't want to put in any of the RPMs
200 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.la 200 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.la
201 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 201 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
202 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod 202 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
203 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' 203 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
204 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' 204 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
205 205
206 %if 0%{!?_with_gadugadu:1}
207 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libgg.so
208 %endif
209
206 %if 0%{!?_with_howl:1} && 0%{!?_with_avahi:1} 210 %if 0%{!?_with_howl:1} && 0%{!?_with_avahi:1}
207 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libbonjour.so 211 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libbonjour.so
208 %endif 212 %endif
209 213
210 %if 0%{!?_with_silc:1}
211 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libsilcgaim.so
212 %endif
213
214 %if 0%{!?_with_meanwhile:1} 214 %if 0%{!?_with_meanwhile:1}
215 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libsametime.so 215 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libsametime.so
216 %endif
217
218 %if 0%{!?_with_gadugadu:1}
219 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libgg.so
220 %endif
221
222 %if 0%{!?_with_tcl:1}
223 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/tcl.so
224 %endif 216 %endif
225 217
226 %if 0%{!?_with_mono:1} 218 %if 0%{!?_with_mono:1}
227 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/mono.so 219 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/mono.so
228 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.dll 220 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.dll
221 %endif
222
223 %if 0%{!?_with_silc:1}
224 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libsilcgaim.so
225 %endif
226
227 %if 0%{!?_with_tcl:1}
228 rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/tcl.so
229 %endif 229 %endif
230 230
231 231
232 find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \ 232 find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \
233 sed "s@^$RPM_BUILD_ROOT@@g" | \ 233 sed "s@^$RPM_BUILD_ROOT@@g" | \
273 273
274 %if 0%{?_with_dbus:1} 274 %if 0%{?_with_dbus:1}
275 %{_libdir}/libgaim-client.so.* 275 %{_libdir}/libgaim-client.so.*
276 %{_datadir}/dbus-1/services/gaim.service 276 %{_datadir}/dbus-1/services/gaim.service
277 %doc README.dbus 277 %doc README.dbus
278 %endif 278 %doc libgaim/gaim-notifications-example
279
280 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1}
281 %files bonjour
282 %defattr(-, root, root)
283
284 %{_libdir}/gaim/libbonjour.*
285 %endif
286
287 %if 0%{?_with_silc:1}
288 %files silc
289 %defattr(-, root, root)
290
291 %{_libdir}/gaim/libsilcgaim.*
292 %endif
293
294 %if 0%{?_with_meanwhile:1}
295 %files meanwhile
296 %defattr(-, root, root)
297
298 %{_libdir}/gaim/libsametime.*
299 %endif
300
301 %if 0%{?_with_gadugadu:1}
302 %files gadugadu
303 %defattr(-, root, root)
304
305 %{_libdir}/gaim/libgg.*
306 %endif
307
308 %if 0%{?_with_tcl:1}
309 %files tcl
310 %defattr(-, root, root)
311
312 %{_libdir}/gaim/tcl.so
313 %endif
314
315 %if 0%{?_with_mono:1}
316 %files mono
317 %defattr(-, root, root)
318
319 %{_libdir}/gaim/mono.so
320 %{_libdir}/gaim/*.dll
321 %endif 279 %endif
322 280
323 %files devel 281 %files devel
324 %defattr(-, root, root) 282 %defattr(-, root, root)
325 283
341 %{_datadir}/aclocal/gaim.m4 299 %{_datadir}/aclocal/gaim.m4
342 %if 0%{?_with_dbus:1} 300 %if 0%{?_with_dbus:1}
343 %{_libdir}/libgaim-client.so 301 %{_libdir}/libgaim-client.so
344 %endif 302 %endif
345 303
304 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1}
305 %files bonjour
306 %defattr(-, root, root)
307
308 %{_libdir}/gaim/libbonjour.*
309 %endif
310
311 %if 0%{?_with_gadugadu:1}
312 %files gadugadu
313 %defattr(-, root, root)
314
315 %{_libdir}/gaim/libgg.*
316 %endif
317
318 %if 0%{?_with_meanwhile:1}
319 %files meanwhile
320 %defattr(-, root, root)
321
322 %{_libdir}/gaim/libsametime.*
323 %endif
324
325 %if 0%{?_with_mono:1}
326 %files mono
327 %defattr(-, root, root)
328
329 %{_libdir}/gaim/mono.so
330 %{_libdir}/gaim/*.dll
331 %endif
332
333 %if 0%{?_with_silc:1}
334 %files silc
335 %defattr(-, root, root)
336
337 %{_libdir}/gaim/libsilcgaim.*
338 %endif
339
340 %if 0%{?_with_tcl:1}
341 %files tcl
342 %defattr(-, root, root)
343
344 %{_libdir}/gaim/tcl.so
345 %endif
346
346 %changelog 347 %changelog
347 * Sun Aug 20 2006 Stu Tomlinson <stu@nosnilmot.com> 348 * Sun Aug 20 2006 Stu Tomlinson <stu@nosnilmot.com>
348 - Make the gstreamer-devel dependency overridable with '--without-gstreamer' 349 - Make the gstreamer-devel dependency overridable with '--without-gstreamer'
349 to allow building on older distributions without suitable gstreamer 350 to allow building on older distributions without suitable gstreamer
350 351