Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1583413
 поиск   регистрация   авторизация 
 
Группа :: Сети/IRC
Пакет: irssi

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

# This spec for backport to M24 is autogenerated. Do not edit it.
%def_disable debmenu

Name: irssi
Version: 0.8.10
Release: alt0.M24.2

Summary: Irssi is an IRC client
License: GPL
Group: Networking/IRC

Packager: Pavlov Konstantin <thresh at altlinux.ru>

Url: http://irssi.org/
Source: http://irssi.org/irssi/files/irssi-%version.tar.bz2
Source1: irssi-icons.tar.bz2
Source2: irssi.desktop
Patch1: %name-0.8.10-perl_scripts.fix.alt.patch
#Patch2: %name-%version-autogen.sh.patch
Patch3: irssi-0.8.10-dcc-free.patch

# Automatically added by buildreq on Sun Jan 08 2006 (-bi)

BuildRequires: gcc-c++ glib2-devel glibc-devel-static libssl-devel libstdc++-devel libtinfo-devel perl-devel pkgconfig python-base python-modules-compiler python-modules-encodings bzip2

BuildRequires: rpm-build-compat >= 0.4

%description
Irssi is a textUI IRC client with IPv6 support written by
Timo Sirainen <a at sicom.fi>.

More information can be found at http://irssi.org

%package devel
Group: Development/C
Summary: Header files and static libs for the development of irssi applications
Requires: %name = %version-%release

%description devel
Header files and static libs for the development of irssi applications.

%package perl
Group: Networking/IRC
Summary: Perl scripts for irssi

%description perl
Perl scripts for irssi.

%prep
%setup -q
%setup -T -D -a1 -q
%patch1 -p1
#%patch2
%patch3 -p1

%build


## ugly hack =/


mkdir ac
cp *.m4 ac/

cat << EOF >> Makefile.am
ACLOCAL_FLAGS = -I ac
EOF

%__autoreconf

%__sed -i 's at $PERL_LDFLAGS -L/usr/lib at $PERL_LDFLAGS -L/usr/%_lib at g' configure

%configure \
--with-modules \
--with-plugins \
--enable-ipv6 \
--without-socks \
--with-terminfo \
--without-ncurses \
--with-perl=module \
--with-glib2 \
--with-perl-lib=vendor \
--with-proxy \
--with-bot \
--with-imlib \
--with-textui
# --disable-static

%make_build

%install
%make_install DESTDIR="%buildroot" install

# Menu entries

mkdir -p %buildroot%_iconsdir

%if_enabled debmenu
mkdir -p %buildroot%_menudir

cat << EOF >%buildroot%_menudir/%name
?package(%name): \
needs="text" \
section="Networking/Chat" \
title="Irssi" \
icon="irssi.png" \
longtitle="A Text-UI based Irc Client" \
section="Networking/IRC" \
command="irssi"
EOF
%else
# freedesktop menu
mkdir -p %buildroot%_datadir/applications
%__install -m 644 %SOURCE2 %buildroot%_datadir/applications/irssi.desktop
%endif


# mdk icons

install -D -m 644 %{name}48.png %buildroot%_liconsdir/%name.png
install -D -m 644 %{name}32.png %buildroot%_iconsdir/%name.png
install -D -m 644 %{name}16.png %buildroot%_miconsdir/%name.png

mv %buildroot%_docdir/%name %buildroot%_docdir/%name-%version
bzip2 ChangeLog

%add_findreq_skiplist %_datadir/irssi/scripts/*

%files
%doc AUTHORS ChangeLog.bz2 README TODO NEWS
%attr(755,root,root) %_bindir/*
%_datadir/irssi
%config(noreplace) %_sysconfdir/irssi.conf
%_liconsdir/*.png
%_miconsdir/*.png
%_iconsdir/*.png
%if_enabled debmenu
%_menudir/irssi
%else
%_datadir/applications/irssi.desktop
%endif
%_mandir/man?/*
%dir %_libdir/irssi
%dir %_libdir/irssi/modules
%_libdir/irssi/modules/*proxy*.so
%_libdir/irssi/modules/*proxy*.so.*

%files perl
%perl_vendor_archlib/Irssi
%perl_vendor_autolib/Irssi
%perl_vendor_archlib/Irssi.pm
%_libdir/irssi/modules/*perl*.so
#%_libdir/irssi/modules/*perl*.la
%_datadir/irssi/scripts

%files devel
%_libdir/irssi/modules/*.a
%_includedir/irssi

#%files -n perl-Irssi


%post
%update_menus

%postun
%clean_menus

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005