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_without xosd # Don't build xosd plugin
7 %bcond_with ioctl_daemon # With (suid-root) ioctl daemon
9 %if %{with yesterday_snapshot}
10 %define _snap %(date +%%Y%%m%%d -d yesterday)
12 %define _snap 20041110
15 Summary: A client compatible with Gadu-Gadu
16 Summary(de): Einen client kompatibel zu Gadu-Gadu
17 Summary(it): Esperimentale cliente di Gadu-Gadu
18 Summary(pl): Eksperymentalny Klient Gadu-Gadu
23 Group: Applications/Communications
24 Source0: http://www.ekg2.org/archive/%{name}-%{_snap}.tar.gz
25 # Source0-md5: 172ba865b4f77265b68a4bf62d74812e
26 URL: http://www.ekg2.org/
27 %{?with_aspell:BuildRequires: aspell-devel}
28 BuildRequires: autoconf
29 BuildRequires: automake
30 BuildRequires: expat-devel
31 BuildRequires: gettext-devel
32 BuildRequires: gnutls-devel >= 1.0.0
33 BuildRequires: gpm-devel
34 BuildRequires: libgadu-devel
35 BuildRequires: libgsm-devel
36 BuildRequires: libjpeg-devel
37 BuildRequires: libltdl-devel
38 BuildRequires: libtool
39 BuildRequires: ncurses-devel
40 BuildRequires: openssl-devel >= 0.9.7d
41 BuildRequires: sed >= 4.0
42 %{?with_xosd:BuildRequires: xosd-devel}
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 A client compatible with Gadu-Gadu and Jabber.
49 Einen client kompatibel zu Gadu-Gadu und Jabber.
52 Esperimentale cliente di Gadu-Gadu.
55 Eksperymentalny Klient Gadu-Gadu. W wersji drugiej obs³uguje zarówno
56 Gadu-Gadu jak i Jabbera. Planowana tak¿e obs³uga ICQ.
59 %setup -q -n %{name}-%{_snap}
61 sed -i -e 's/AC_LIBLTDL_CONVENIENCE/AC_LIBLTDL_INSTALLABLE/' configure.ac
64 %{__libtoolize} --ltdl
76 --with%{!?with_aspell:out}-aspell \
77 --with%{!?with_xosd:out}-xosd
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
86 %{!?with_ioctl_daemon:rm $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/ioctld.*}
88 rm -rf docs/{CVS,.cvsignore,Makefile*}
89 mv -f README README-main
91 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.la
96 rm -rf $RPM_BUILD_ROOT
98 %files -f %{name}.lang
99 %defattr(644,root,root,755)
100 %doc NEWS* README-main docs/*
101 %attr(755,root,root) %{_bindir}/*
102 %dir %{_libdir}/%{name}
103 %dir %{_libdir}/%{name}/plugins
104 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
105 %{?with_ioctl_daemon:%attr(4755,root,root) %{_libdir}/ioctld}