1 | # Older RPM doesn't define these by default |
---|
2 | %{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} |
---|
3 | %{!?perl_archlib: %define perl_archlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib)} |
---|
4 | |
---|
5 | Summary: A Gtk+ based multiprotocol instant messaging client |
---|
6 | Name: @PACKAGE@ |
---|
7 | Version: @VERSION@ |
---|
8 | Release: 0 |
---|
9 | Epoch: 1 |
---|
10 | License: GPL |
---|
11 | Group: Applications/Internet |
---|
12 | URL: http://gaim.sourceforge.net/ |
---|
13 | Packager: %{packager} |
---|
14 | Source: %{name}-%{version}.tar.gz |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | |
---|
17 | # Generic build requirements |
---|
18 | BuildRequires: libtool, pkgconfig, libao-devel, audiofile-devel |
---|
19 | %{?_with_silc:BuildRequires: /usr/include/silc/silcclient.h} |
---|
20 | %{?_with_tcl:BuildRequires: tcl, tk, /usr/include/tcl.h} |
---|
21 | %{!?_without_gtkspell:BuildRequires: gtkspell-devel} |
---|
22 | # For some reason perl isn't always automatically detected as a requirement :( |
---|
23 | Requires: perl |
---|
24 | |
---|
25 | # Mandrake 10.1 and lower |
---|
26 | %if "%{_vendor}" == "MandrakeSoft" |
---|
27 | # Mandrake/Mandriva requirements |
---|
28 | BuildRequires: libgtk+2.0_0-devel, libnss3-devel, perl-devel |
---|
29 | Provides: libgaim-remote0 |
---|
30 | %else |
---|
31 | |
---|
32 | # Mandrake 10.2 (and higher?) |
---|
33 | %if "%{_vendor}" == "Mandrakesoft" |
---|
34 | # Mandrake/Mandriva requirements |
---|
35 | BuildRequires: libgtk+2.0_0-devel, libnss3-devel, perl-devel |
---|
36 | Provides: libgaim-remote0 |
---|
37 | %else |
---|
38 | |
---|
39 | # SuSE & Red Hat / Fedora requirements |
---|
40 | BuildRequires: gtk2-devel |
---|
41 | |
---|
42 | %if "%{_vendor}" == "suse" |
---|
43 | BuildRequires: gnutls-devel |
---|
44 | %else |
---|
45 | BuildRequires: mozilla-nss-devel |
---|
46 | %endif |
---|
47 | %endif |
---|
48 | %endif |
---|
49 | |
---|
50 | %if 0%{?_with_silc:1} |
---|
51 | %package silc |
---|
52 | Summary: SILC (Secure Internet Live Conferencing) plugin for Gaim |
---|
53 | Group: Applications/Internet |
---|
54 | Requires: gaim = %{epoch}:%{version} |
---|
55 | %endif |
---|
56 | |
---|
57 | %if 0%{?_with_tcl:1} |
---|
58 | %package tcl |
---|
59 | Summary: Tcl scripting support for Gaim |
---|
60 | Group: Applications/Internet |
---|
61 | Requires: gaim = %{epoch}:%{version} |
---|
62 | %endif |
---|
63 | |
---|
64 | %package devel |
---|
65 | Summary: Development headers, documentation, and libraries for Gaim. |
---|
66 | Group: Applications/Internet |
---|
67 | Requires: pkgconfig, gaim = %{epoch}:%{version} |
---|
68 | |
---|
69 | %description |
---|
70 | Gaim allows you to talk to anyone using a variety of messaging |
---|
71 | protocols, including AIM, ICQ, IRC, Yahoo!, Novell Groupwise, |
---|
72 | MSN Messenger, Jabber, Gadu-Gadu, Napster, and Zephyr. These |
---|
73 | protocols are implemented using a modular, easy to use design. |
---|
74 | To use a protocol, just add an account using the account editor. |
---|
75 | |
---|
76 | Gaim supports many common features of other clients, as well as many |
---|
77 | unique features, such as perl scripting, TCL scripting and C plugins. |
---|
78 | |
---|
79 | Gaim is NOT affiliated with or endorsed by America Online, Inc., |
---|
80 | Microsoft Corporation, Yahoo! Inc., or ICQ Inc. |
---|
81 | |
---|
82 | %if 0%{?_with_silc:1} |
---|
83 | %description silc |
---|
84 | SILC (Secure Internet Live Conferencing) plugin for Gaim |
---|
85 | %endif |
---|
86 | |
---|
87 | %if 0%{?_with_tcl:1} |
---|
88 | %description tcl |
---|
89 | Tcl plugin loader for Gaim. This package will allow you to write or |
---|
90 | use Gaim plugins written in the Tcl programming language. |
---|
91 | %endif |
---|
92 | |
---|
93 | %description devel |
---|
94 | The gaim-devel package contains the header files, developer |
---|
95 | documentation, and libraries required for development of gaim scripts |
---|
96 | and plugins. |
---|
97 | |
---|
98 | %prep |
---|
99 | %setup -q |
---|
100 | |
---|
101 | %build |
---|
102 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \ |
---|
103 | --bindir=%{_bindir} \ |
---|
104 | --datadir=%{_datadir} \ |
---|
105 | --includedir=%{_includedir} \ |
---|
106 | --libdir=%{_libdir} \ |
---|
107 | --mandir=%{_mandir} \ |
---|
108 | --sysconfdir=%{_sysconfdir} \ |
---|
109 | --with-ao=%{_libdir} \ |
---|
110 | --with-perl-lib=%{buildroot}%{_prefix} \ |
---|
111 | %{?_with_silc:--with-silc-includes=%{_includedir}/silc} \ |
---|
112 | %{?_with_silc:--with-silc-libs=%{_libdir}/silc} \ |
---|
113 | %{!?_with_tcl:--disable-tcl} \ |
---|
114 | %{?_without_gtkspell:--disable-gtkspell} |
---|
115 | |
---|
116 | make %{?_smp_mflags} |
---|
117 | |
---|
118 | %install |
---|
119 | rm -rf %{buildroot} |
---|
120 | make prefix=%{buildroot}%{_prefix} bindir=%{buildroot}%{_bindir} \ |
---|
121 | datadir=%{buildroot}%{_datadir} includedir=%{buildroot}%{_includedir} \ |
---|
122 | libdir=%{buildroot}%{_libdir} mandir=%{buildroot}%{_mandir} \ |
---|
123 | sysconfdir=%{buildroot}%{_sysconfdir} \ |
---|
124 | install |
---|
125 | |
---|
126 | rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
---|
127 | rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.la |
---|
128 | |
---|
129 | %if 0%{!?_with_silc:1} |
---|
130 | rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/libsilcgaim.so |
---|
131 | %endif |
---|
132 | |
---|
133 | %if 0%{!?_with_tcl:1} |
---|
134 | rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/tcl.so |
---|
135 | %endif |
---|
136 | |
---|
137 | find $RPM_BUILD_ROOT%{_libdir}/gaim -type f -print | \ |
---|
138 | sed "s@^$RPM_BUILD_ROOT@@g" | \ |
---|
139 | grep -v libsilcgaim.so | |
---|
140 | grep -v tcl.so | |
---|
141 | grep -v ".tcl$" > %{name}-%{version}-coreplugins |
---|
142 | |
---|
143 | %clean |
---|
144 | rm -rf %{buildroot} |
---|
145 | |
---|
146 | %files -f %{name}-%{version}-coreplugins |
---|
147 | %defattr(-, root, root) |
---|
148 | |
---|
149 | %doc doc/the_penguin.txt doc/CREDITS NEWS COPYING AUTHORS COPYRIGHT |
---|
150 | %doc README ChangeLog |
---|
151 | %doc %{_mandir}/man1/* |
---|
152 | %doc %{_mandir}/man3*/* |
---|
153 | |
---|
154 | %dir %{_libdir}/gaim |
---|
155 | %attr(755, root, root) %{_libdir}/libgaim-remote.so.* |
---|
156 | %attr(755, root, root) %{perl_vendorlib} |
---|
157 | |
---|
158 | %{_bindir}/* |
---|
159 | %{_datadir}/locale/*/*/* |
---|
160 | %{_datadir}/pixmaps/* |
---|
161 | %dir %{_datadir}/sounds/gaim |
---|
162 | %{_datadir}/sounds/gaim/* |
---|
163 | %{_datadir}/applications/* |
---|
164 | |
---|
165 | %if 0%{?_with_silc:1} |
---|
166 | %files silc |
---|
167 | %defattr(-, root, root) |
---|
168 | |
---|
169 | %{_libdir}/gaim/libsilcgaim.* |
---|
170 | %endif |
---|
171 | |
---|
172 | %if 0%{?_with_tcl:1} |
---|
173 | %files tcl |
---|
174 | %defattr(-, root, root) |
---|
175 | |
---|
176 | %{_libdir}/gaim/tcl.so |
---|
177 | %endif |
---|
178 | |
---|
179 | %files devel |
---|
180 | %defattr(-, root, root) |
---|
181 | |
---|
182 | %doc plugins/HOWTO |
---|
183 | %doc HACKING PROGRAMMING_NOTES |
---|
184 | |
---|
185 | %attr(755, root, root) %{_libdir}/libgaim-remote.so |
---|
186 | %attr(755, root, root) %{_libdir}/libgaim-remote.la |
---|
187 | %dir %{_includedir}/gaim |
---|
188 | %{_includedir}/gaim/*.h |
---|
189 | %{_libdir}/pkgconfig/gaim.pc |
---|
190 | |
---|
191 | %changelog |
---|
192 | * Thu Apr 28 2005 <stu@nosnilmot.com> |
---|
193 | - Use perl_vendorlib & perl_archlib for better 64bit compat (Jeff Mahoney) |
---|
194 | - Clean up Requires, most should be auto-detected |
---|
195 | - Restore gtkspell-devel build requirement (and add --without gtkspell option) |
---|
196 | - Fix Tcl build requirements to work across more distros |
---|
197 | - Fix SILC build requirements to work across more distros |
---|
198 | |
---|
199 | * Mon Oct 11 2004 John Jolly <john.jolly@gmail.com> |
---|
200 | - Added if "%{_vendor}" == "suse" to handle GnuTLS libraries for SuSE |
---|
201 | |
---|
202 | * Sat Oct 2 2004 Stu Tomlinson <stu@nosnilmot.com> |
---|
203 | - If --with tcl or silc are not specified, make sure the plugins don't |
---|
204 | exist to prevent RPM complaining about unpackaged files |
---|
205 | |
---|
206 | * Tue Jun 29 2004 Ethan Blanton <eblanton@cs.ohiou.edu> |
---|
207 | - Change Tcl to use --with tcl, the same as SILC, and build a gaim-tcl |
---|
208 | package if specified. |
---|
209 | |
---|
210 | * Thu Jun 24 2004 Mark Doliner <thekingant@users.sourceforge.net> |
---|
211 | - Add --with silc rebuild option for compiling a separate gaim-silc |
---|
212 | RPM containing the silc protocol plugin (Stu Tomlinson). |
---|
213 | |
---|
214 | * Wed Jun 23 2004 Ethan Blanton <eblanton@cs.ohiou.edu> |
---|
215 | - Moved gaim headers and a pkgconfig configuration file into the |
---|
216 | gaim-devel RPM (Stu Tomlinson). |
---|
217 | |
---|
218 | * Thu Jan 15 2004 Ethan Blanton <eblanton@cs.ohiou.edu> |
---|
219 | - Removed the manual strip command, as it seems to be unwarranted if |
---|
220 | the necessary programs are properly installed. (For me, this was |
---|
221 | elfutils.) |
---|
222 | |
---|
223 | * Sun Jul 20 2003 Bjoern Voigt <bjoern@cs.tu-berlin.de> |
---|
224 | - Added pkgconfig build dependency. |
---|
225 | - if "%{_vendor}" != "MandrakeSoft" now also works with rpm 3.x. |
---|
226 | - Added Gaim-specific directories to list of Gaim's files. |
---|
227 | |
---|
228 | * Wed Jul 16 2003 Ethan Blanton <eblanton@cs.ohiou.edu> |
---|
229 | - Complete spec file rewrite to take advantage of "new" RPM features |
---|
230 | and make things prettier. |
---|
231 | - Use system-supplied %%{_prefix}, %%{_datadir}, etc. rather than |
---|
232 | attempt to define our own. |
---|