comparison gaim.spec.in @ 14612:1f46715c08d9

[gaim-migrate @ 17340] Put gaim-text and the gnt stuff into a gaim-text RPM so that our main RPM doesn't depend on ncurses. rpmbuild -ta gaim-2.0.0dev.tar.bz2 doesn't work for me anymore. Did it used to? Does it work for other people? For me it prints error: Name field must be present in package: (main package) error: Version field must be present in package: (main package) error: Release field must be present in package: (main package) error: Summary field must be present in package: (main package) error: Group field must be present in package: (main package) error: License field must be present in package: (main package) And it creates a file called "tar: Pattern matching characters used in file n ames. Please," in my ~/rpmbuild/SPECS directory. It does not put gaim.spec in my ~/rpmbuild/SPECS directory, and it does not put anything in ~/rpmbuild/BUILD or ~/rpmbuild/SOURCES, either committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 23 Sep 2006 19:04:03 +0000
parents 7f8ea7ffb1de
children cf7e6b705d1a
comparison
equal deleted inserted replaced
14611:000b8c063121 14612:1f46715c08d9
12 %define gaimver %(echo "@VERSION@"|sed -e 's/dev//; s/beta.*//') 12 %define gaimver %(echo "@VERSION@"|sed -e 's/dev//; s/beta.*//')
13 %else 13 %else
14 %define gaimver @VERSION@ 14 %define gaimver @VERSION@
15 %endif 15 %endif
16 16
17 Summary: A Gtk+ based multiprotocol instant messaging client 17 Summary: A GTK+ based multiprotocol instant messaging client
18 Name: @PACKAGE@ 18 Name: @PACKAGE@
19 Version: %gaimver 19 Version: %gaimver
20 Release: 0%{?beta:.beta%{beta}} 20 Release: 0%{?beta:.beta%{beta}}
21 Epoch: 1 21 Epoch: 1
22 License: GPL 22 License: GPL
37 %{?_with_meanwhile:BuildRequires: meanwhile-devel} 37 %{?_with_meanwhile:BuildRequires: meanwhile-devel}
38 %{?_with_mono:BuildRequires: mono-devel} 38 %{?_with_mono:BuildRequires: mono-devel}
39 %{?_with_sasl:BuildRequires: cyrus-sasl-devel >= 2} 39 %{?_with_sasl:BuildRequires: cyrus-sasl-devel >= 2}
40 %{?_with_silc:BuildRequires: /usr/include/silc/silcclient.h} 40 %{?_with_silc:BuildRequires: /usr/include/silc/silcclient.h}
41 %{?_with_tcl:BuildRequires: tcl, tk, /usr/include/tcl.h} 41 %{?_with_tcl:BuildRequires: tcl, tk, /usr/include/tcl.h}
42 # For some reason perl isn't always automatically detected as a requirement :( 42 %{!?_without_text:BuildRequires: ncurses-devel}
43 Requires: perl
44 43
45 # Mandrake 10.1 and lower || Mandrake 10.2 (and higher?) 44 # Mandrake 10.1 and lower || Mandrake 10.2 (and higher?)
46 %if "%{_vendor}" == "MandrakeSoft" || "%{_vendor}" == "Mandrakesoft" || "%{_vendor}" == "Mandriva" 45 %if "%{_vendor}" == "MandrakeSoft" || "%{_vendor}" == "Mandrakesoft" || "%{_vendor}" == "Mandriva"
47 # Mandrake/Mandriva requirements 46 # For Mandrake/Mandriva:
48 BuildRequires: libgtk+2.0_0-devel, libnss3-devel, perl-devel 47 BuildRequires: libgtk+2.0_0-devel, libnss3-devel, perl-devel
49 Obsoletes: libgaim-remote0 48 Obsoletes: libgaim-remote0
50 %else 49 %else
51 50 # For SuSE, Red Hat, Fedora and others:
52 # SuSE & Red Hat / Fedora requirements
53 BuildRequires: gtk2-devel 51 BuildRequires: gtk2-devel
54
55 %if "%{_vendor}" == "suse" 52 %if "%{_vendor}" == "suse"
53 # For SuSE:
56 BuildRequires: gnutls-devel 54 BuildRequires: gnutls-devel
57 %else 55 %else
56 # For Red Hat, Fedora and others:
58 # let's assume RH & FC1 are the only brain-dead distros missing the 57 # let's assume RH & FC1 are the only brain-dead distros missing the
59 # perl-XML-Parser dependency on intltool and that other RH/FC releases 58 # perl-XML-Parser dependency on intltool and that other RH/FC releases
60 # don't care if we specify it here 59 # don't care if we specify it here
61 BuildRequires: perl-XML-Parser 60 BuildRequires: perl-XML-Parser
62 BuildRequires: mozilla-nss-devel 61 BuildRequires: mozilla-nss-devel
63 %endif 62 %endif
64 %endif 63 %endif
65 64
65 # For some reason perl isn't always automatically detected as a requirement :(
66 Requires: perl
67
66 %package devel 68 %package devel
67 Summary: Development headers, documentation, and libraries for Gaim. 69 Summary: Development headers, documentation, and libraries for Gaim.
68 Group: Applications/Internet 70 Group: Applications/Internet
69 Requires: pkgconfig, gaim = %{epoch}:%{version} 71 Requires: pkgconfig, gaim = %{epoch}:%{version}
70 72
108 Summary: Tcl scripting support for Gaim 110 Summary: Tcl scripting support for Gaim
109 Group: Applications/Internet 111 Group: Applications/Internet
110 Requires: gaim = %{epoch}:%{version} 112 Requires: gaim = %{epoch}:%{version}
111 %endif 113 %endif
112 114
115 %if 0%{!?_without_text:1}
116 %package text
117 Summary: A text-based user interface for Gaim
118 Group: Applications/Internet
119 Requires: gaim = %{epoch}:%{version}
120 %endif
121
113 %description 122 %description
114 Gaim allows you to talk to anyone using a variety of messaging 123 Gaim allows you to talk to anyone using a variety of messaging
115 protocols, including AIM, ICQ, IRC, Yahoo!, Novell Groupwise, MSN 124 protocols including AIM, MSN, Yahoo!, Jabber, Bonjour, Gadu-Gadu,
116 Messenger, Jabber, Gadu-Gadu, Lotus Sametime and Zephyr. 125 ICQ, IRC, Novell Groupwise, QQ, Lotus Sametime, SILC, Simple and
117 These protocols are implemented using a modular, easy to use design. 126 Zephyr. These protocols are implemented using a modular, easy to
118 To use a protocol, just add an account using the account editor. 127 use design. To use a protocol, just add an account using the
128 account editor.
119 129
120 Gaim supports many common features of other clients, as well as many 130 Gaim supports many common features of other clients, as well as many
121 unique features, such as perl scripting, TCL scripting and C plugins. 131 unique features, such as perl scripting, TCL scripting and C plugins.
122 132
123 Gaim is NOT affiliated with or endorsed by America Online, Inc., 133 Gaim is not affiliated with or endorsed by America Online, Inc.,
124 Microsoft Corporation, Yahoo! Inc., or ICQ Inc. 134 Microsoft Corporation, Yahoo! Inc., or ICQ Inc.
125 135
126 %description devel 136 %description devel
127 The gaim-devel package contains the header files, developer 137 The gaim-devel package contains the header files, developer
128 documentation, and libraries required for development of gaim scripts 138 documentation, and libraries required for development of Gaim scripts
129 and plugins. 139 and plugins.
130 140
131 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1} 141 %if 0%{?_with_howl:1} || 0%{?_with_avahi:1}
132 %description bonjour 142 %description bonjour
133 Bonjour plugin for Gaim 143 Bonjour plugin for Gaim.
134 %endif 144 %endif
135 145
136 %if 0%{?_with_gadugadu:1} 146 %if 0%{?_with_gadugadu:1}
137 %description gadugadu 147 %description gadugadu
138 Gadu-Gadu plugin for Gaim using the libgadu library 148 Gadu-Gadu plugin for Gaim using the libgadu library.
139 %endif 149 %endif
140 150
141 %if 0%{?_with_meanwhile:1} 151 %if 0%{?_with_meanwhile:1}
142 %description meanwhile 152 %description meanwhile
143 Lotus Sametime plugin for Gaim using the Meanwhile library 153 Lotus Sametime plugin for Gaim using the Meanwhile library.
144 %endif 154 %endif
145 155
146 %if 0%{?_with_mono:1} 156 %if 0%{?_with_mono:1}
147 %description mono 157 %description mono
148 Mono plugin loader for Gaim. This package will allow you to write or 158 Mono plugin loader for Gaim. This package will allow you to write or
149 use Gaim plugins written in the .NET programming language. 159 use Gaim plugins written in the .NET programming language.
150 %endif 160 %endif
151 161
152 %if 0%{?_with_silc:1} 162 %if 0%{?_with_silc:1}
153 %description silc 163 %description silc
154 SILC (Secure Internet Live Conferencing) plugin for Gaim 164 SILC (Secure Internet Live Conferencing) plugin for Gaim.
165 %endif
166
167 %if 0%{!?without_text:1}
168 %description text
169 A text-based user interface for Gaim. This can be run from a
170 standard text console or from a terminal within X Windows. It
171 uses ncurses and our homegrown gnt library for drawing windows
172 and text.
155 %endif 173 %endif
156 174
157 %if 0%{?_with_tcl:1} 175 %if 0%{?_with_tcl:1}
158 %description tcl 176 %description tcl
159 Tcl plugin loader for Gaim. This package will allow you to write or 177 Tcl plugin loader for Gaim. This package will allow you to write or
230 %endif 248 %endif
231 249
232 250
233 find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \ 251 find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \
234 sed "s@^$RPM_BUILD_ROOT@@g" | \ 252 sed "s@^$RPM_BUILD_ROOT@@g" | \
235 grep -v libbonjour.so | \ 253 grep -v /gntgf.so | \
236 grep -v libsilcgaim.so | \ 254 grep -v /gnthistory.so | \
237 grep -v libsametime.so | \ 255 grep -v /libbonjour.so | \
238 grep -v libgg.so | \ 256 grep -v /libgg.so | \
239 grep -v tcl.so | \ 257 grep -v /libsilcgaim.so | \
240 grep -v mono.so | \ 258 grep -v /libsametime.so | \
259 grep -v /mono.so | \
260 grep -v /s.so | \
261 grep -v /tcl.so | \
241 grep -v ".dll$" | \ 262 grep -v ".dll$" | \
242 grep -v ".tcl$" > %{name}-%{version}-coreplugins 263 grep -v ".tcl$" > %{name}-%{version}-coreplugins
243 264
244 %clean 265 %clean
245 rm -rf %{buildroot} 266 rm -rf %{buildroot}
258 %doc NEWS 279 %doc NEWS
259 %doc README 280 %doc README
260 %doc README.SVN 281 %doc README.SVN
261 %doc doc/FAQ 282 %doc doc/FAQ
262 %doc doc/the_penguin.txt 283 %doc doc/the_penguin.txt
263 %doc %{_mandir}/man1/* 284 %doc %{_mandir}/man1/gaim.*
264 %doc %{_mandir}/man3*/* 285 %doc %{_mandir}/man3*/*
265 286
266 %dir %{_libdir}/gaim 287 %dir %{_libdir}/gaim
267 %attr(755, root, root) %{perl_vendorarch}/Gaim* 288 %attr(755, root, root) %{perl_vendorarch}/Gaim*
268 %attr(755, root, root) %{perl_vendorarch}/auto/Gaim 289 %attr(755, root, root) %{perl_vendorarch}/auto/Gaim
269 290
270 %{_bindir}/* 291 %{_bindir}/gaim
292 %{_bindir}/gaim-client-example
293 %{_bindir}/gaim-remote
294 %{_bindir}/gaim-send
295 %{_bindir}/gaim-send-async
296 %{_bindir}/gaim-url-handler
271 %{_datadir}/locale/*/*/* 297 %{_datadir}/locale/*/*/*
272 %{_datadir}/pixmaps/* 298 %{_datadir}/pixmaps/*
273 %dir %{_datadir}/sounds/gaim 299 %dir %{_datadir}/sounds/gaim
274 %{_datadir}/sounds/gaim/* 300 %{_datadir}/sounds/gaim/*
275 %{_datadir}/applications/* 301 %{_datadir}/applications/*
276 %{_libdir}/libgaim.so.* 302 %{_libdir}/libgaim.so.*
277 %{_libdir}/libgnt.so.*
278 %{_sysconfdir}/gconf/schemas/gaim.schemas 303 %{_sysconfdir}/gconf/schemas/gaim.schemas
279 304
280 %if 0%{?_with_dbus:1} 305 %if 0%{?_with_dbus:1}
281 %{_libdir}/libgaim-client.so.* 306 %{_libdir}/libgaim-client.so.*
282 %{_datadir}/dbus-1/services/gaim.service 307 %{_datadir}/dbus-1/services/gaim.service
348 %defattr(-, root, root) 373 %defattr(-, root, root)
349 374
350 %{_libdir}/gaim/tcl.so 375 %{_libdir}/gaim/tcl.so
351 %endif 376 %endif
352 377
378 %if 0%{!?without_text:1}
379 %files text
380 %defattr(-, root, root)
381
382 %doc %{_mandir}/man1/gaim-text.*
383 %{_bindir}/gaim-text
384 %{_libdir}/gaim/gntgf.so
385 %{_libdir}/gaim/gnthistory.so
386 %{_libdir}/gaim/s.so
387 %{_libdir}/libgnt.so.*
388 %endif
389
353 %changelog 390 %changelog
354 * Sun Aug 20 2006 Stu Tomlinson <stu@nosnilmot.com> 391 * Sun Aug 20 2006 Stu Tomlinson <stu@nosnilmot.com>
355 - Make the gstreamer-devel dependency overridable with '--without-gstreamer' 392 - Make the gstreamer-devel dependency overridable with '--without-gstreamer'
356 to allow building on older distributions without suitable gstreamer 393 to allow building on older distributions without suitable gstreamer
357 394