Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37737555
en ru br
ALT Linux repos
3.0: 1.3.1-alt1

Group :: Networking/Chat
RPM: gaim

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_enable mozilla_psm
%def_enable perl 1
%def_enable tcl 1
%def_enable gevolution 1

Name: gaim
Version: 1.3.1
Release: alt1

Summary: A GNOME/Gtk+ based multiprotocol instant messaging client
Summary(be_BY.UTF-8): GNOME/Gtk+ кліент абмену хуткімі паведамленьнямі з падтрымкай шматлікіх пратаколаў
Summary(ru_RU.UTF-8): GNOME/Gtk+ клиент мгновенной доставки сообщений с поддержкой множества протоколов
License: GPL
Group: Networking/Chat
Url: http://marko.net/%name/


Source: %name-%version.tar.bz2
Source1: %{name}_icons.tar.bz2
Source2: %name-e-0.9.8.tar.gz
Source3: %name-be.po.bz2

Patch0: %name-0.59.1-desktop.patch
Patch1: %name-plugins.patch
Patch2: %name-0.75-fix.diff
Patch3: %name-0.78-oscar.patch
Patch4: sms_prpl.patch
Patch5: encoding.patch
Patch6: %name-0.79.oscar.encoding.bobuk.patch
Patch7: %name-1.1.1-smileys-alt.patch

%if_enabled perl
BuildRequires:  perl-devel
%endif

%if_enabled tcl
BuildRequires: tcl-devel tk-devel
%endif

%if_enabled mozilla_psm
BuildRequires: mozilla-devel mozilla-psm
%endif

%if_enabled gevolution
BuildRequires: evolution-data-server-devel
%endif

BuildRequires: fontconfig freetype2 gcc-c++ gcc-g77 hostinfo libgpg-error
BuildRequires: ORBit2-devel   gnome-libs-devel zlib-devel pkgconfig
BuildRequires: gnome-vfs2-devel glib2-devel libGConf2-devel libao-devel
BuildRequires: libatk-devel libaudio-devel libaudiofile-devel libbonobo2-devel  
BuildRequires: libgcrypt-devel libgnome-devel libgnutls-devel libpopt-devel
BuildRequires: libgtk+2-devel libgtkspell-devel libpango-devel
BuildRequires: libstartup-notification-devel libstdc++-devel libxml2-devel
BuildRequires: xorg-x11-devel xorg-x11-libs

%description
Gaim allows you to talk to anyone using a variety of messaging
protocols, including AIM (Oscar and TOC), ICQ, IRC, Yahoo!,
MSN Messenger, Jabber, Gadu-Gadu, Napster, and Zephyr.  These
protocols are implemented using a modular, easy to use design.  
To use a protocol, just add an account using the account editor.

Gaim supports many common features of other clients, as well as many
unique features, such as perl scripting, TCL scripting and C plugins.

Gaim is NOT affiliated with or endorsed by America Online, Inc.,
Microsoft Corporation, Yahoo! Inc., or ICQ Inc.

%description -l be_BY.UTF-8
Gaim дазваляе вам карыстацца шматлікімі пратаколамі абмену хуткімі
паведамленьнямі, гэткімі як AIM (Oscar і TOC), ICQ, IRC, Yahoo!,
MSN Messenger, Jabber, Gadu-Gadu, Napster, і Zephyr. Gaim мае модульную
рэалізацыю, што дазваляе лёхка дадаваць новыя пратаколы.
Каб выкарыстоўваць любы з рэалізаваных пратаколаў, трэба толькі
выклікаць рэдактар пратаколаў.

Gaim падтрымлівае шмат розных магчымасьцяў іншых кліентаў, а так сама
свае унікальныя магчымасьці, як напрыклад сцэнары на мовах perl ці TCL,
і утулкі на мове C.

Gaim ніякім чынам НЕ ЗЬВЯЗАНЫ з America Online, Inc.,
Microsoft Corporation, Yahoo! Inc., ці ICQ Inc.

%description -l ru_RU.UTF-8
Gaim позволяет вам пользоваться множеством различных протоколов
систем мгновенной доставки сообщений, такими как AIM (Oscar и TOC),
ICQ, IRC, Yahoo!,MSN Messenger, Jabber, Gadu-Gadu, Napster, и Zephyr.
Gaim имеет модульную реализацию, что позволяет легко добавлять
новые протоколы. Чтобы использовать любой из реализованых протоколов,
необходимо только активизировать его с помощью редактора протоколов.

Gaim поддерживает множество возможностей других подобных клиентов, но также
и свои уникальные возможности, как например сценарии на языках perl и TCL,
и плугины на C.

Gaim никак НЕ СВЯЗАН с America Online, Inc.,
Microsoft Corporation, Yahoo! Inc., или ICQ Inc.

%package devel
Summary: Static library and includes for gaim
Summary(be_BY.UTF-8): Статычныя файлы й файлы загалоўкаў для %name
Summary(ru_RU.UTF-8): Статические файлы и файлы заголовков для %name
Group: Development/Other
Requires: %name = %version

%description devel  
Static library and includes for gaim.

%description devel -l be_BY.UTF-8
Статычныя файлы й файлы загалоўкаў для %name

%description devel -l ru_RU.UTF-8
Статические файлы и файлы заголовков для %name

%if_enabled gevolution
%package gevolution
Summary: Gevolution plugin for gaim
Summary(be_BY.UTF-8): Дадатак для %name які дазваляе доступ да даньняў evolution-data-server
Group: Networking/Chat
Requires: %name = %version

%description gevolution  
Gevolution plugin for gaim.

%description gevolution -l be_BY.UTF-8
Дадатак для %name які дазваляе доступ да даньняў evolution-data-server
%endif

%if_enabled perl
%package perl
Summary: Perl support for gaim
Summary(be_BY.UTF-8): Падтрымка Perl у %name
Group: Networking/Chat
Requires: %name = %version

%description perl  
Perl support for gaim.

%description perl -l be_BY.UTF-8
Падтрымка Perl у %name  
%endif

%if_enabled tcl
%package tcl
Summary: Tcl/Tk support for gaim
Summary(be_BY.UTF-8): Падтрымка Tcl/Tk у %name  
Group: Networking/Chat
Requires: %name = %version

%description tcl  
Tcl/Tk support for gaim.

%description tcl -l be_BY.UTF-8
Падтрымка Tcl/Tk у %name    
%endif


%prep
%setup -q -a1

# new smiley themes path

%patch7 -p1

# belarusian translation

bzcat %SOURCE3 > po/be.po
%__subst 's,\(ALL_LINGUAS=\"\),\1be ,' configure

# new evolution

%__subst 's,libebook-1.0,libebook-1.2 ,' configure
%__subst 's,'libedata-book-1.0,'libedata-book-1.2 ,' configure


%build
./configure --disable-artsc \
--prefix=/usr --enable-nas \
%if_enabled mozilla_psm
--with-nss-includes=/usr/include/nss \
--with-nspr-includes=/usr/include/nspr \
--with-nspr-libs=/usr/lib/mozilla \
--with-nss-libs=/usr/lib/mozilla
%endif

%make_build

%install
%makeinstall bitsdata=%buildroot%_datadir bitssysconf=%buildroot%_sysconfdir
%__mkdir_p %buildroot/%_datadir/applications/

#icons

%__install -pD -m644 %{name}_16.xpm %buildroot%_miconsdir/%name.xpm
%__install -pD -m644 %{name}_32.xpm %buildroot%_iconsdir/%name.xpm
%__install -pD -m644 %{name}_48.xpm %buildroot%_liconsdir/%name.xpm


# Menu

%__mkdir_p %buildroot%_menudir
%__cat >%buildroot%_menudir/%name <<EOF
?package(%name): command="%_bindir/%name" needs="X11" \
icon="%name.xpm" section="/Networking/Instant messaging" \
title="Gaim" longtitle="A multiprotocol Instant Messenger"
EOF

# gaim-e

%if_with gaim-e
cd plugins
gunzip -dc %SOURCE2 2>/dev/null | tar -x
cd gaim-e
%make_install DESTDIR=$RPM_BUILD_ROOT install
cd ../..
%endif

%find_lang %name

%post
%update_menus

%postun
%clean_menus

%files -f %name.lang
%doc ABOUT-NLS AUTHORS ChangeLog HACKING INSTALL NEWS README
%doc doc/CREDITS doc/FAQ doc/*.txt
%dir %_datadir/pixmaps/%name
%dir %_datadir/sounds/%name
%_bindir/*
%_libdir/%name
%exclude %_libdir/%name/*.la
%exclude %_libdir/%name/gevolution.so
%exclude %_libdir/%name/perl.so
%exclude %_libdir/%name/tcl.so
%_libdir/*.so.*
%_menudir/*
%_mandir/man?/*
%_datadir/applications/%name.desktop
%_datadir/pixmaps/*
%_datadir/sounds/*
%_iconsdir/*.xpm
%_iconsdir/*/*.xpm

%if_enabled gevolution
%files gevolution
%_libdir/%name/gevolution.so
%endif

%if_enabled perl
%files perl
%_libdir/%name/perl.so
%endif

%if_enabled tcl
%files tcl
%_libdir/%name/tcl.so
%endif

%files devel
%dir %_includedir/%name
%_includedir/%name/*
%_libdir/*.so
%_libdir/pkgconfig/*.pc

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin