5 # _without_gnome_applet
10 # This looks like overkill but some day we might have *everything* bconded :)
11 %{!?_without_gnome:%define _need_gnome 1}
12 %{!?_without_gnome:%define _need_esd 1}
13 %{!?_without_gnome_applet:%define _need_gnome 1}
14 %{!?_without_gnome_applet:%define _nees_esd 1}
15 %{!?_without_kde:%define _need_arts 1}
16 %{!?_without_wm_applet:%define _need_esd 1}
18 Summary: GNU Gadu - free talking
19 Summary(pl): GNU Gadu - wolne gadanie
25 Group: Applications/Communications
26 Source0: ftp://ftp.slackware.pl/pub/gg/%{name}-%{version}.tar.gz
29 URL: http://gadu.gnu.pl
30 %{?_need_arts:BuildRequires: arts-devel}
31 %if %{!?_without_sound:1}%{?_without_sound:0}
32 %{?_need_esd:BuildRequires: esound-devel > 0.2.7}
34 %{?_need_gnome:BuildRequires: gnome-libs-devel}
35 %{?_need_gnome:BuildRequires: gnome-core-devel}
36 BuildRequires: gtk+-devel > 1.2.8
37 BuildRequires: xmms-devel
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _sysconfdir /etc/X11/GNOME
42 %define _prefix /usr/X11R6
45 Gadu-Gadu client released on GNU/GPL.
48 Klient Gadu-Gadu na licencji GNU/GPL.
51 Summary: GNU Gadu - free talking - common files
52 Summary(pl): GNU Gadu - wolne gadanie - wspólne pliki
53 Group: Applications/Communications
54 Obsoletes: gg =< 0.2.0
57 Gadu-Gadu client released on GNU/GPL.
59 %description common -l pl
60 Klient Gadu-Gadu na licencji GNU/GPL.
63 Summary: GNU Gadu - free talking
64 Summary(pl): GNU Gadu - wolne gadanie
65 Group: Applications/Communications
66 PreReq: %{name}-common = %{epoch}:%{version}
67 Provides: gg = %{epoch}:%{version}-%{release}
70 Gadu-Gadu client released on GNU/GPL.
72 %description X11 -l pl
73 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla X11.
76 Summary: GNU Gadu - free talking - GNOME version
77 Summary(pl): GNU Gadu - wolne gadanie - wersja dla GNOME
78 Group: Applications/Communications
79 PreReq: %{name}-common = %{epoch}:%{version}
80 Provides: gg = %{epoch}:%{version}-%{release}
83 Gadu-Gadu client released on GNU/GPL. GNOME version
85 %description gnome -l pl
86 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla GNOME.
89 Summary: GNU Gadu - free talking - GNOME dockable version
90 Summary(pl): GNU Gadu - wolne gadanie - wersja dokowalna dla GNOME
91 Group: Applications/Communications
92 PreReq: %{name}-common = %{epoch}:%{version}
93 Provides: gg = %{epoch}:%{version}-%{release}
95 %description gnome-applet
96 Gadu-Gadu client released on GNU/GPL. GNOME dockable version
98 %description gnome-applet -l pl
99 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dokowalna dla gnome.
102 Summary: GNU Gadu - free talking - WindowMaker dockable version
103 Summary(pl): GNU Gadu - wolne gadanie - wersja dokowalna dla WindowMaker'a
104 Group: Applications/Communications
105 PreReq: %{name}-common = %{epoch}:%{version}
106 Provides: gg = %{epoch}:%{version}-%{release}
108 %description wm-applet
109 Gadu-Gadu client released on GNU/GPL. WindowMaker dockable version
111 %description wm-applet -l pl
112 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dokowalna dla
116 Summary: GNU Gadu - free talking - KDE version
117 Summary(pl): GNU Gadu - wolne gadanie - wersja dla KDE
118 Group: Applications/Communications
119 PreReq: %{name}-common = %{epoch}:%{version}
120 Provides: gg = %{epoch}:%{version}-%{release}
123 Gadu-Gadu client released on GNU/GPL. KDE version
125 %description kde -l pl
126 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla KDE.
132 LDFLAGS=" -L%{_libdir} %{rpmldflags}"
134 %if %{!?_without_gnome_applet:1}%{?_without_gnome_applet:0}
136 %{?_without_sound:--disable-esd} \
141 mv -f src/gg src/gg_applet
145 %if %{!?_without_gnome:1}%{?_without_gnome:0}
147 %{?_without_sound:--disable-esd} \
151 mv -f src/gg src/gg_gnome
155 %if %{!?_without_wm_applet:1}%{?_without_wm_applet:0}
157 %{?_without_sound:--disable-esd} \
161 mv -f src/gg src/gg_wm
165 %if %{!?_without_kde:1}%{?_without_kde:0}
168 %{!?_without_sound:--enable-arts} \
172 mv -f src/gg src/gg_kde
176 %configure %{?_without_sound:--disable-esd} --enable-xmms
180 rm -rf $RPM_BUILD_ROOT
181 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Network/Communications,%{_pixmapsdir},%{_datadir}/applets/Network/}
183 %{__make} install DESTDIR=$RPM_BUILD_ROOT
184 %{!?_without_gnome_applet:install src/gg_applet $RPM_BUILD_ROOT%{_bindir}}
185 %{!?_without_gnome:install src/gg_gnome $RPM_BUILD_ROOT%{_bindir}}
186 %{!?_without_wm_applet:install src/gg_wm $RPM_BUILD_ROOT%{_bindir}}
187 %{!?_without_kde:install src/gg_kde $RPM_BUILD_ROOT%{_bindir}}
189 sed -e 's/xpm$/png/' src/GnuGadu.desktop \
190 > $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu.desktop
191 sed -e 's/xpm$/png/' -e 's/Exec=gg/Exec=gg_applet\ --activate-goad-server=gg/' \
192 src/GnuGadu.desktop > $RPM_BUILD_ROOT%{_datadir}/applets/Network/GnuGadu.desktop
194 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
196 install -d $RPM_BUILD_ROOT%{_sysconfdir}/CORBA/servers/
197 install src/GnuGadu.gnorba $RPM_BUILD_ROOT%{_sysconfdir}/CORBA/servers/
200 rm -rf $RPM_BUILD_ROOT
203 if [ ! -e /usr/X11R6/bin/gg ]; then
204 ln -sf /usr/X11R6/bin/gg_gnome /usr/X11R6/bin/gg
208 if [ ! -e /usr/X11R6/bin/gg ]; then
209 ln -sf /usr/X11R6/bin/gg_applet /usr/X11R6/bin/gg
213 if [ ! -e /usr/X11R6/bin/gg ]; then
214 ln -sf /usr/X11R6/bin/gg_wm /usr/X11R6/bin/gg
218 if [ ! -e /usr/X11R6/bin/gg ]; then
219 ln -sf /usr/X11R6/bin/gg_kde /usr/X11R6/bin/gg
223 if [ -L /usr/X11R6/bin/gg ]; then
224 rm -f /usr/X11R6/bin/gg
228 %defattr(644,root,root,755)
229 %doc README ChangeLog TODO
234 %defattr(644,root,root,755)
235 %{_applnkdir}/Network/Communications/GnuGadu.desktop
236 %attr(755,root,root) %{_bindir}/gg
238 %if %{!?_without_gnome:1}%{?_without_gnome:0}
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_bindir}/gg_gnome
242 %{_applnkdir}/Network/Communications/GnuGadu.desktop
245 %if %{!?_without_gnome_applet:1}%{?_without_gnome_applet:0}
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_bindir}/gg_applet
249 %{_datadir}/applets/Network/GnuGadu.desktop
250 %{_sysconfdir}/CORBA/servers/GnuGadu.gnorba
253 %if %{!?_without_wm_applet:1}%{?_without_wm_applet:0}
255 %defattr(644,root,root,755)
256 %attr(755,root,root) %{_bindir}/gg_wm
257 %{_datadir}/applets/Network/GnuGadu.desktop
260 %if %{!?_without_kde:1}%{?_without_kde:0}
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_bindir}/gg_kde
264 %{_applnkdir}/Network/Communications/GnuGadu.desktop