- no more separated libtinfo(w)
[packages/irssi.git] / irssi.spec
CommitLineData
a30c64ab 1#
d1d19600 2# Conditional build:
16e18b22 3%bcond_without perl # without perl support
4%bcond_without ipv6 # without IPv6 support
f5036096 5%bcond_without ssl # without SSL support
2176773f 6%bcond_without dynamic # without dynamic libraries
e69c54b0 7
531f8279 8%define no_install_post_check_so 1
9
76eb776c 10%define idea_ver 0.1.46
3eea52d0 11%define irssi_perl_version 20100403
9afd400b 12%{?with_perl:%include /usr/lib/rpm/macros.perl}
75a558b0 13Summary: Irssi is a IRC client
d6b5098c 14Summary(fr.UTF-8): Irssi est un client IRC
6f275e0f 15Summary(hu.UTF-8): Irssi egy IRC kliens
d6b5098c 16Summary(pl.UTF-8): Irssi - wygodny w użyciu klient IRC
75a558b0 17Name: irssi
3eea52d0 18Version: 0.8.15
65bb74ab 19Release: 9
75a558b0 20License: GPL
d4791b42 21Group: Applications/Communications
73da6ec1
ER
22#Source0: http://www.irssi.org/files/snapshots/%{name}-%{_snap}.tar.gz
23Source0: http://www.irssi.org/files/%{name}-%{version}.tar.gz
3eea52d0 24# Source0-md5: 870db8e319f640c2bf446c30d0c24ef6
13117eda
AM
25Source1: %{name}.desktop
26Source2: %{name}.png
2cdf9123
JB
27# NXDOMAIN
28#Source3: http://real.irssi.org/files/plugins/idea/%{name}-idea-%{idea_ver}.tar.gz
29Source3: %{name}-idea-%{idea_ver}.tar.gz
e030c78a 30# Source3-md5: c326efe317b8f67593a3cd46d5557280
ecd062a6 31Patch0: %{name}-dcc-send-limit.patch
7de6b4cc 32Patch1: %{name}-home_etc.patch
33Patch2: %{name}-idea-listlen.patch
34Patch3: %{name}-gcc4.patch
35Patch4: %{name}-dynamic.patch
36Patch5: %{name}-invalid_free.patch
37Patch6: %{name}-color_support_for_gui_entry.patch
38Patch7: %{name}-libs-nopoison.patch
c48a9e4d 39URL: http://www.irssi.org/
13117eda 40BuildRequires: autoconf
a30c64ab 41BuildRequires: automake
a0e32961 42BuildRequires: gettext-devel
2cdf9123 43# for idea only
b72c745e 44BuildRequires: glib-devel
9fc42c2d 45BuildRequires: glib2-devel >= 2.24.0
a30c64ab 46BuildRequires: libtool
c694f984 47BuildRequires: ncurses-devel >= 5.0
4f6fa20a 48%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
9ad41241 49%{?with_perl:BuildRequires: perl-devel >= 1:5.8.4}
ed5b13fb 50BuildRequires: pkgconfig
4d2cef65 51BuildRequires: popt-devel
6639e834 52%{?with_perl:BuildRequires: rpm-perlprov}
eeb34517 53BuildRequires: rpmbuild(macros) >= 1.315
b9d2203f 54BuildRequires: sed >= 4.0
9fc42c2d 55Requires: glib2 >= 2.24.0
9afd400b 56Provides: perl(Irssi) = %{irssi_perl_version}
071656b5
ER
57Obsoletes: irssi-speech
58Obsoletes: irssi-sql
1da5a0b0 59BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c5c87082 60
eeb34517 61%if %{with dynamic}
62%define filterout_ld -Wl,--as-needed
63%endif
64
738c3ae3 65%description
d4791b42 66Irssi is a textUI IRC client with IPv6 support.
738c3ae3 67
fab8b1be 68%description -l fr.UTF-8
d4791b42 69Irssi est client IRC.
6f85d63f 70
6f275e0f 71%description -l hu.UTF-8
6400c7fe 72Irssi egy szöveges felületű IRC kliens IPv6 támogatással.
6f275e0f 73
fab8b1be 74%description -l pl.UTF-8
d4791b42 75Irssi jest tekstowym klientem IRC ze wsparciem dla IPv6.
73c49657 76
74cc6bc5 77%package plugin-idea
f52ef808 78Summary: Irssi plugin IDEA crypt
6f275e0f 79Summary(hu.UTF-8): Irssi IDEA plugin
d6b5098c 80Summary(pl.UTF-8): Wtyczka do irssi do szyfrowania IDEA
f52ef808 81Group: Applications/Communications
071656b5 82Requires: %{name} = %{version}-%{release}
2cdf9123 83Requires: glib >= 1:1.2.10-13
74cc6bc5 84
85%description plugin-idea
39eceb32 86This package contains IDEA Crypt plugin for Irssi.
87
6f275e0f
ZU
88%description plugin-idea -l hu.UTF-8
89Ez a csomag tartalmazza az IDEA titkosítási plugint Irssi-hez.
90
fab8b1be
JR
91%description plugin-idea -l pl.UTF-8
92Ten pakiet zawiera wtyczkę do Irssi z szyfrowaniem IDEA.
74cc6bc5 93
738c3ae3 94%prep
0b1e4c7a 95%setup -q -a3
51b33c8b 96%patch0 -p1
97%patch1 -p1
972ba5d8 98%patch2 -p1
01baf907 99%patch3 -p1
69fc8ac9 100%if %{with dynamic}
7de6b4cc 101%patch4 -p1
69fc8ac9 102%endif
7de6b4cc 103%patch5 -p1
104%patch6 -p0
105%patch7 -p1
738c3ae3 106
2cdf9123
JB
107echo 'AC_DEFUN([AM_PATH_GLIB],[:])' > glib1.m4
108
9afd400b
ER
109mv irssi-idea{-%{idea_ver},}
110
ec3bc534 111# hack
63875850 112%{__sed} -i -e 's#\./libtool#%{_bindir}/libtool#g' 'configure.in'
ec3bc534 113
738c3ae3 114%build
9afd400b
ER
115ver=$(awk '/IRSSI_VERSION_DATE/{print $3}' irssi-version.h)
116if [ "$ver" != "%{irssi_perl_version}" ]; then
117 : update irssi_perl_version to $ver
118 exit 1
119fi
120
64ee8d3e 121%{__libtoolize}
6932dd71 122%{__aclocal} -I .
d0022294 123%{__autoconf}
124%{__automake}
c694f984 125%configure \
c5c87082 126 --without-socks \
13117eda 127 --with-bot \
be6cd0e4 128 --with-textui \
d4791b42 129 --with-proxy \
cb029a46 130 --with-terminfo \
d4791b42 131 --with-modules \
d1d19600 132 %{?with_perl:--with-perl=yes} \
133 %{?with_perl:--with-perl-lib=vendor} \
134 %{!?with_perl:--with-perl=no} \
135 %{?with_ipv6:--enable-ipv6} \
f5036096
AG
136 --enable-nls \
137 --%{?with_ssl:en}%{!?with_ssl:dis}able-ssl
694c1a92 138
feabde7d 139%{__make}
738c3ae3 140
53d15a9c
AM
141# to fool idea configure script
142touch irssi-config
9afd400b 143cd irssi-idea
74cc6bc5 144%{__libtoolize}
145%{__aclocal} -I .
146%{__autoconf}
147%{__automake}
148%configure
74cc6bc5 149%{__make}
150
738c3ae3
AF
151%install
152rm -rf $RPM_BUILD_ROOT
16afed53 153install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
1352901f 154%{__make} install \
155 DESTDIR=$RPM_BUILD_ROOT \
f29dbe19 156 docdir=%{_datadir}/%{name}-%{version}
bed6758a 157
76eb776c
ER
158# scripts packaged by irssi-scripts.spec
159rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/*
160
161cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
162cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
d4791b42 163
9afd400b 164%{__make} -C irssi-idea install \
74cc6bc5 165 DESTDIR=$RPM_BUILD_ROOT
166
565dd6a6
AM
167# -devel?
168rm $RPM_BUILD_ROOT%{_libdir}/lib*.{so,la,a}
169rm -r $RPM_BUILD_ROOT%{_includedir}/irssi
76eb776c
ER
170# cleanup
171rm $RPM_BUILD_ROOT%{_libdir}/irssi/modules/lib*.{la,a}
96dd21e9 172%if %{with perl}
76eb776c
ER
173rm $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
174rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/.packlist
175rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/Irc/.packlist
176rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/TextUI/.packlist
177rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Irssi/UI/.packlist
96dd21e9 178%endif
76eb776c 179rm -r $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
565dd6a6 180
738c3ae3 181%clean
bed6758a 182rm -rf $RPM_BUILD_ROOT
738c3ae3 183
be6cd0e4 184%files
75a558b0 185%defattr(644,root,root,755)
0d89b8d9 186%doc AUTHORS ChangeLog README TODO NEWS docs/*.{txt,html}
76eb776c
ER
187%attr(755,root,root) %{_bindir}/botti
188%attr(755,root,root) %{_bindir}/irssi
c5c87082 189%dir %{_libdir}/irssi
d4791b42 190%dir %{_libdir}/irssi/modules
74cc6bc5 191%attr(755,root,root) %{_libdir}/irssi/modules/libirc_proxy.so*
69fc8ac9 192%if %{with dynamic}
193%attr(755,root,root) %{_libdir}/libirssi*.so.*
194%endif
76eb776c
ER
195%dir %{_datadir}/%{name}
196%dir %{_datadir}/%{name}/scripts
197%{_datadir}/%{name}/help
198%{_datadir}/%{name}/themes
16afed53 199%{_desktopdir}/irssi.desktop
76eb776c 200%{_pixmapsdir}/irssi.png
c84e79dc 201%{_sysconfdir}/irssi.conf
76eb776c 202%{_mandir}/man1/irssi.1*
c84e79dc 203
d1d19600 204%if %{with perl}
c84e79dc 205%{perl_vendorarch}/*.pm
206%dir %{perl_vendorarch}/Irssi
207%{perl_vendorarch}/Irssi/*.pm
208
209%dir %{perl_vendorarch}/auto/Irssi
210%{perl_vendorarch}/auto/Irssi/*.bs
211%attr(755,root,root) %{perl_vendorarch}/auto/Irssi/*.so
212
213%dir %{perl_vendorarch}/auto/Irssi/Irc
214%{perl_vendorarch}/auto/Irssi/Irc/*.bs
215%attr(755,root,root) %{perl_vendorarch}/auto/Irssi/Irc/*.so
216
217%dir %{perl_vendorarch}/auto/Irssi/TextUI
218%{perl_vendorarch}/auto/Irssi/TextUI/*.bs
219%attr(755,root,root) %{perl_vendorarch}/auto/Irssi/TextUI/*.so
220
221%dir %{perl_vendorarch}/auto/Irssi/UI
222%{perl_vendorarch}/auto/Irssi/UI/*.bs
223%attr(755,root,root) %{perl_vendorarch}/auto/Irssi/UI/*.so
224%endif
74cc6bc5 225
226%files plugin-idea
227%defattr(644,root,root,755)
228%attr(755,root,root) %{_libdir}/irssi/modules/libidea.so
This page took 0.233033 seconds and 4 git commands to generate.