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