%bcond_without perl # without perl support
%bcond_without ipv6 # without IPv6 support
%bcond_without ssl # without SSL support
-#
-%define _rel rc5
-%define _idea_ver 0.1.46
+%bcond_without dynamic # without dynamic libraries
+
%{?with_perl:%include /usr/lib/rpm/macros.perl}
+
Summary: Irssi is a IRC client
Summary(fr): Irssi est un client IRC
Summary(pl): Irssi - wygodny w u¿yciu klient IRC
Name: irssi
Version: 0.8.10
-Release: 0.%{_rel}
+Release: 3
License: GPL
Group: Applications/Communications
-Source0: http://real.irssi.org/files/%{name}-%{version}-%{_rel}.tar.gz
-# Source0-md5: 7c0b6c1533c85e918f41ded1238e4ca1
+#Source0: http://irssi.org/files/snapshots/%{name}-%{_snap}.tar.gz
+Source0: http://irssi.org/files/%{name}-%{version}.tar.gz
+# Source0-md5: 78140796205c6fa1c43e46d2e79e60aa
Source1: %{name}.desktop
Source2: %{name}.png
-Source3: http://www.irssi.org/files/plugins/idea/%{name}-idea-%{_idea_ver}.tar.gz
+%define _idea_ver 0.1.46
+Source3: http://real.irssi.org/files/plugins/idea/%{name}-idea-%{_idea_ver}.tar.gz
# Source3-md5: c326efe317b8f67593a3cd46d5557280
Patch0: %{name}-dcc-send-limit.patch
Patch1: %{name}-tinfo.patch
Patch2: %{name}-home_etc.patch
Patch3: %{name}.conf.patch
Patch4: %{name}-idea-listlen.patch
+Patch5: %{name}-gcc4.patch
+Patch6: %{name}-dynamic.patch
+Patch7: %{name}-invalid_free.patch
URL: http://www.irssi.org/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
-BuildRequires: glib-devel
+BuildRequires: glib-devel >= 1:1.2.10-13
BuildRequires: glib2-devel >= 2.1.0
BuildRequires: libtool
BuildRequires: ncurses-devel >= 5.0
%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
%{?with_perl:BuildRequires: perl-devel >= 1:5.8.4}
BuildRequires: pkgconfig
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: popt-devel
+Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
Obsoletes: %{name}-speech
Obsoletes: %{name}-sql
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Irssi is a textUI IRC client with IPv6 support.
Ten pakiet zawiera wtyczkê do Irssi z szyfrowaniem IDEA.
%prep
-%setup -q -n %{name}-%{version}-%{_rel} -a3
+%setup -q -a3
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
+%if %{with dynamic}
+%patch6 -p1
+%endif
+%patch7 -p1
%build
rm -f missing
%dir %{_libdir}/irssi
%dir %{_libdir}/irssi/modules
%attr(755,root,root) %{_libdir}/irssi/modules/libirc_proxy.so*
+%if %{with dynamic}
+%attr(755,root,root) %{_libdir}/libirssi*.so.*
+%endif
%{_datadir}/%{name}
%{_desktopdir}/irssi.desktop
%{_pixmapsdir}/*