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