3 %bcond_with yesterday_snapshot # Build most current ekg2 snapshot
4 # (must use ./builder -n5 or plain rpmbuild)
5 %bcond_without aspell # Don't build in spell-checking support with aspell
6 %bcond_with ioctl_daemon # With (suid-root) ioctl daemon
8 %if %{with yesterday_snapshot}
9 %define _snap %(date +%%Y%%m%%d -d yesterday)
11 %define _snap 20041006
14 Summary: A client compatible with Gadu-Gadu
15 Summary(de): Einen client kompatibel zu Gadu-Gadu
16 Summary(it): Esperimentale cliente di Gadu-Gadu
17 Summary(pl): Eksperymentalny Klient Gadu-Gadu
22 Group: Applications/Communications
23 Source0: http://www.ekg2.org/archive/%{name}-%{_snap}.tar.gz
24 # Source0-md5: 9da7ba07b95652da03149800509a0c27
25 URL: http://www.ekg2.org/
26 %{?with_aspell:BuildRequires: aspell-devel}
27 BuildRequires: automake
28 BuildRequires: expat-devel
29 BuildRequires: gettext-devel
30 BuildRequires: gnutls-devel >= 1.0.0
31 BuildRequires: gpm-devel
32 BuildRequires: libgadu-devel
33 BuildRequires: libgsm-devel
34 BuildRequires: libjpeg-devel
35 # shouldn't be needed (regenerate ac?)
36 BuildRequires: libstdc++-devel
37 BuildRequires: ncurses-devel
38 BuildRequires: openssl-devel >= 0.9.7d
39 BuildRequires: libltdl-devel
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 A client compatible with Gadu-Gadu and Jabber.
46 Einen client kompatibel zu Gadu-Gadu und Jabber.
49 Esperimentale cliente di Gadu-Gadu.
52 Eksperymentalny Klient Gadu-Gadu. W wersji drugiej obs³uguje zarówno
53 Gadu-Gadu jak i Jabbera. Planowana tak¿e obs³uga ICQ.
56 %setup -q -n %{name}-%{_snap}
59 cp -f /usr/share/automake/config.sub .
60 cp -f /usr/share/automake/config.sub libltdl/
62 --with%{!?with_aspell:out}-aspell
66 rm -rf $RPM_BUILD_ROOT
69 DESTDIR=$RPM_BUILD_ROOT
70 %{!?with_ioctl_daemon:rm $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/ioctld.*}
72 rm -rf docs/{CVS,.cvsignore,Makefile*}
73 mv -f README README-main
75 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.la
80 rm -rf $RPM_BUILD_ROOT
82 %files -f %{name}.lang
83 %defattr(644,root,root,755)
84 %doc NEWS* README-main docs/*
85 %attr(755,root,root) %{_bindir}/*
86 %dir %{_libdir}/%{name}
87 %dir %{_libdir}/%{name}/plugins
88 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
89 %{?with_ioctl_daemon:%attr(4755,root,root) %{_libdir}/ioctld}