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