- release 5 (by relup.sh)
[packages/irssi.git] / irssi.spec
CommitLineData
a30c64ab 1#
d1d19600 2# Conditional build:
16e18b22 3%bcond_without perl # without perl support
2176773f 4%bcond_without dynamic # without dynamic libraries
c1ae1e75 5%bcond_without xmpp # without plugin
e69c54b0 6
531f8279 7%define no_install_post_check_so 1
8
76eb776c 9%define idea_ver 0.1.46
36c9fd1f 10%define xmpp_ver 0.53
804a4110 11%define irssi_perl_version 20180213
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
804a4110 18Version: 1.1.1
3d50ca01 19Release: 5
75a558b0 20License: GPL
d4791b42 21Group: Applications/Communications
f6d84012 22Source0: https://github.com/irssi/irssi/releases/download/%{version}/%{name}-%{version}.tar.gz
804a4110 23# Source0-md5: 8c2c494b2a7e3ab3ea6657f413ec890c
13117eda
AM
24Source1: %{name}.desktop
25Source2: %{name}.png
2cdf9123
JB
26# NXDOMAIN
27#Source3: http://real.irssi.org/files/plugins/idea/%{name}-idea-%{idea_ver}.tar.gz
28Source3: %{name}-idea-%{idea_ver}.tar.gz
e030c78a 29# Source3-md5: c326efe317b8f67593a3cd46d5557280
c1ae1e75 30Source4: http://cybione.org/~irssi-xmpp/files/irssi-xmpp-%{xmpp_ver}.tar.gz
36c9fd1f 31# Source4-md5: 8c9906e4efbd6f3c8bd8420f0ac8fd91
ecd062a6 32Patch0: %{name}-dcc-send-limit.patch
7de6b4cc 33Patch1: %{name}-home_etc.patch
34Patch2: %{name}-idea-listlen.patch
35Patch3: %{name}-gcc4.patch
36Patch4: %{name}-dynamic.patch
37Patch5: %{name}-invalid_free.patch
38Patch6: %{name}-color_support_for_gui_entry.patch
39Patch7: %{name}-libs-nopoison.patch
4f1a737a 40Patch8: am.patch
36c9fd1f
AM
41Patch9: %{name}-idea-glib.patch
42Patch10: %{name}-xmpp.patch
c48a9e4d 43URL: http://www.irssi.org/
13117eda 44BuildRequires: autoconf
a30c64ab 45BuildRequires: automake
2f9c6be9 46BuildRequires: gettext-tools
2cdf9123 47# for idea only
b72c745e 48BuildRequires: glib-devel
9fc42c2d 49BuildRequires: glib2-devel >= 2.24.0
a30c64ab 50BuildRequires: libtool
c1ae1e75 51%{?with_xmpp:BuildRequires: loudmouth-devel}
c694f984 52BuildRequires: ncurses-devel >= 5.0
36c9fd1f 53BuildRequires: openssl-devel >= 0.9.7d
9ad41241 54%{?with_perl:BuildRequires: perl-devel >= 1:5.8.4}
ed5b13fb 55BuildRequires: pkgconfig
4d2cef65 56BuildRequires: popt-devel
6639e834 57%{?with_perl:BuildRequires: rpm-perlprov}
eeb34517 58BuildRequires: rpmbuild(macros) >= 1.315
b9d2203f 59BuildRequires: sed >= 4.0
9fc42c2d 60Requires: glib2 >= 2.24.0
9afd400b 61Provides: perl(Irssi) = %{irssi_perl_version}
071656b5
ER
62Obsoletes: irssi-speech
63Obsoletes: irssi-sql
1da5a0b0 64BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c5c87082 65
eeb34517 66%if %{with dynamic}
67%define filterout_ld -Wl,--as-needed
68%endif
69
738c3ae3 70%description
d4791b42 71Irssi is a textUI IRC client with IPv6 support.
738c3ae3 72
fab8b1be 73%description -l fr.UTF-8
d4791b42 74Irssi est client IRC.
6f85d63f 75
6f275e0f 76%description -l hu.UTF-8
6400c7fe 77Irssi egy szöveges felületű IRC kliens IPv6 támogatással.
6f275e0f 78
fab8b1be 79%description -l pl.UTF-8
d4791b42 80Irssi jest tekstowym klientem IRC ze wsparciem dla IPv6.
73c49657 81
74cc6bc5 82%package plugin-idea
f52ef808 83Summary: Irssi plugin IDEA crypt
6f275e0f 84Summary(hu.UTF-8): Irssi IDEA plugin
d6b5098c 85Summary(pl.UTF-8): Wtyczka do irssi do szyfrowania IDEA
f52ef808 86Group: Applications/Communications
071656b5 87Requires: %{name} = %{version}-%{release}
2cdf9123 88Requires: glib >= 1:1.2.10-13
74cc6bc5 89
90%description plugin-idea
39eceb32 91This package contains IDEA Crypt plugin for Irssi.
92
6f275e0f
ZU
93%description plugin-idea -l hu.UTF-8
94Ez a csomag tartalmazza az IDEA titkosítási plugint Irssi-hez.
95
fab8b1be
JR
96%description plugin-idea -l pl.UTF-8
97Ten pakiet zawiera wtyczkę do Irssi z szyfrowaniem IDEA.
74cc6bc5 98
c1ae1e75
JR
99%package plugin-xmpp
100Summary: Irssi XMPP support plugin
101Summary(pl.UTF-8): Wtyczka do irssi do obsługi XMPP
102Group: Applications/Communications
103Requires: %{name} = %{version}-%{release}
104
105%description plugin-xmpp
106This package contains XMPP support plugin for Irssi.
107
108%description plugin-xmpp -l pl.UTF-8
109Ten pakiet zawiera wtyczkę do Irssi z obsługą XMPP.
110
738c3ae3 111%prep
c1ae1e75 112%setup -q -a3 -a4
51b33c8b 113%patch0 -p1
114%patch1 -p1
972ba5d8 115%patch2 -p1
01baf907 116%patch3 -p1
69fc8ac9 117%if %{with dynamic}
7de6b4cc 118%patch4 -p1
69fc8ac9 119%endif
7de6b4cc 120%patch5 -p1
121%patch6 -p0
122%patch7 -p1
738c3ae3 123
2cdf9123
JB
124echo 'AC_DEFUN([AM_PATH_GLIB],[:])' > glib1.m4
125
9afd400b 126mv irssi-idea{-%{idea_ver},}
c1ae1e75 127mv irssi-xmpp{-%{xmpp_ver},}
4f1a737a 128%patch8 -p1
36c9fd1f
AM
129%patch9 -p0
130%patch10 -p0
9afd400b 131
ec3bc534 132# hack
c7d2e44a 133%{__sed} -i -e 's#\./libtool#%{_bindir}/libtool#g' 'configure.ac'
ec3bc534 134
738c3ae3 135%build
9afd400b
ER
136ver=$(awk '/IRSSI_VERSION_DATE/{print $3}' irssi-version.h)
137if [ "$ver" != "%{irssi_perl_version}" ]; then
138 : update irssi_perl_version to $ver
139 exit 1
140fi
141
64ee8d3e 142%{__libtoolize}
6932dd71 143%{__aclocal} -I .
d0022294 144%{__autoconf}
145%{__automake}
c694f984 146%configure \
c2196b84 147 --disable-silent-rules \
c5c87082 148 --without-socks \
13117eda 149 --with-bot \
be6cd0e4 150 --with-textui \
d4791b42
AM
151 --with-proxy \
152 --with-modules \
d1d19600 153 %{?with_perl:--with-perl=yes} \
154 %{?with_perl:--with-perl-lib=vendor} \
155 %{!?with_perl:--with-perl=no} \
36c9fd1f 156 --enable-true-color
694c1a92 157
c2196b84 158%{__make}
738c3ae3 159
53d15a9c
AM
160# to fool idea configure script
161touch irssi-config
9afd400b 162cd irssi-idea
74cc6bc5 163%{__libtoolize}
164%{__aclocal} -I .
165%{__autoconf}
166%{__automake}
c2196b84
ER
167%configure \
168 --disable-silent-rules
169%{__make}
c1ae1e75 170cd ..
c2196b84 171
c1ae1e75
JR
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 \
c2196b84
ER
180 docdir=%{_datadir}/%{name}-%{version} \
181 DESTDIR=$RPM_BUILD_ROOT
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)
c7d2e44a 216%doc AUTHORS ChangeLog README.md 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.567083 seconds and 4 git commands to generate.