Package irssi: Specfile

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
Name: irssi
Version: 1.2.2
Release: alt1

Summary: Modular text mode IRC client with Perl scripting
License: GPLv2+
Group: Networking/IRC
Url: https://irssi.org/
# https://github.com/irssi/irssi.git
# git://git.altlinux.org/gears/i/irssi.git
Source: %name-%version.tar
Source1: %name.desktop
Patch1: irssi-1.2.0-alt-link-libs.patch
Patch2: irssi-1.2.0-alt-strict-subs-syntax.patch
Patch3: irssi-1.2.0-alt-lfs.patch

BuildRequires: elinks glib2-devel libssl-devel libtinfo-devel perl-devel
# OTR
BuildRequires:	pkgconfig(libotr)
# utf8proc
BuildRequires:	libutf8proc-devel

%description
Irssi is a modular textUI IRC client with Perl scripting.

%package devel
Summary: Header files for irssi plugins development
Group: Development/C
Requires: %name = %EVR

%description devel
This package contains header files for the development of irssi plugins.

%package perl
Group: Networking/IRC
Summary: Perl scripts for irssi
Requires: %name = %EVR

%description perl
This package contains perl scripts for irssi.

%package otr
Group: Networking/IRC
Summary: LibOTR support for irssi
Requires: %name-perl = %EVR

%description	otr
Off-the-Record (OTR) Messaging support for irssi.

%prep
%setup -n %name-%version
%patch1 -p1
%patch2 -p1
%patch3 -p1

# no use to run autoreconf twice.
sed -i 's/^autoreconf.*/%autoreconf || exit/' autogen.sh

# workaround the absence of irssi.git
sed -i 's/^git log /: &/' autogen.sh
# git log -1 --pretty=format:%%ai %version > date-%version
echo '2019-08-29 02:25:21 +0200' > date-1.2.2
sed -i 's/^DATE=.*/DATE="$(cat date-%version)"/' utils/irssi-version.sh

%build
NOCONFIGURE=1 ./autogen.sh

%add_optflags -fpie
export LDFLAGS=-pie
%configure \
	--disable-silent-rules \
	--disable-static \
	--enable-ipv6 \
	--without-ncurses \
	--without-socks \
	--with-bot \
	--with-otr \
	--with-perl=module \
	--with-perl-lib=vendor \
	--with-proxy \
	--with-terminfo \
	--with-textui \
	--enable-true-color \
	#

%make_build

%install
%makeinstall_std

%define irssi_modules_dir %_libdir/irssi/modules
rm %buildroot%irssi_modules_dir/lib*.la

install -pm644 AUTHORS NEWS %buildroot%_docdir/irssi/

install -pDm644 irssi-icon.png %buildroot%_iconsdir/irssi.png
install -pDm644 %SOURCE1 %buildroot%_desktopdir/irssi.desktop

%add_findreq_skiplist %_datadir/irssi/scripts/*
# ldv: this is required for the strict check, do not disable!
export RPM_LD_PRELOAD_irssi=%buildroot%_bindir/irssi
export RPM_FILES_TO_LD_PRELOAD_irssi='%irssi_modules_dir/lib*.so %perl_vendor_autolib/Irssi/*.so'
export RPM_LD_PRELOAD_libperl_core='%buildroot%irssi_modules_dir/libperl_core.so'
export RPM_FILES_TO_LD_PRELOAD_libperl_core='%irssi_modules_dir/libfe_perl.so %perl_vendor_autolib/Irssi/*.so'
%set_verify_elf_method strict
%define _unpackaged_files_terminate_build 1

%files
%config(noreplace) %_sysconfdir/irssi.conf
%_bindir/*
%_datadir/irssi/
%exclude %_datadir/irssi/scripts/
%dir %_libdir/irssi
%dir %irssi_modules_dir
%irssi_modules_dir/libirc_proxy.so
%_iconsdir/*.png
%_desktopdir/*.desktop
%_mandir/man?/*
%_docdir/irssi/

%files perl
%dir %_datadir/irssi/
%_datadir/irssi/scripts/
%perl_vendor_archlib/Irssi*
%perl_vendor_autolib/Irssi
%dir %_libdir/irssi/
%dir %irssi_modules_dir/
%irssi_modules_dir/*perl*.so

%files devel
%_includedir/irssi/

%files otr
%_libdir/%name/modules/libotr_core.so


%changelog
* Tue Dec 08 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.2-alt1
- Updated to upstream version 1.2.2 (Fixes: CVE-2019-13045, CVE-2019-15717).

* Wed Apr 22 2020 Dmitry V. Levin <ldv@altlinux.org> 1.2.0-alt2
- Really fixed build by fixing LFS in irssi-otr and
  re-enabling "%%set_verify_elf_method strict".

* Sat Apr 04 2020 Igor Vlasenko <viy@altlinux.ru> 1.2.0-alt1
- NMU
- disabled "%%set_verify_elf_method strict" to "fix build" (required for perl rebuild)
- updated to 1.2.0

* Thu Jan 24 2019 Igor Vlasenko <viy@altlinux.ru> 0.8.21-alt1.2
- rebuild with new perl 5.28.1

* Wed Aug 29 2018 Grigory Ustinov <grenka@altlinux.org> 0.8.21-alt1.1.2
- NMU: Rebuild with new openssl 1.1.0.

* Fri Dec 15 2017 Igor Vlasenko <viy@altlinux.ru> 0.8.21-alt1.1.1
- rebuild with new perl 5.26.1

* Fri Feb 03 2017 Igor Vlasenko <viy@altlinux.ru> 0.8.21-alt1.1
- rebuild with new perl 5.24.1

* Tue Jan 17 2017 Ivan Zakharyaschev <imz@altlinux.org> 0.8.21-alt1
- 0.8.21 (security release).

* Tue Jan 03 2017 Dmitry V. Levin <ldv@altlinux.org> 0.8.20-alt1
- 0.8.15 -> 0.8.20.

* Wed Nov 25 2015 Igor Vlasenko <viy@altlinux.ru> 0.8.15-alt5.1.1
- rebuild with new perl 5.22.0

* Tue Dec 09 2014 Igor Vlasenko <viy@altlinux.ru> 0.8.15-alt5.1
- rebuild with new perl 5.20.1

* Fri Aug 30 2013 Vladimir Lettiev <crux@altlinux.ru> 0.8.15-alt5
- built for perl 5.18

* Tue Sep 04 2012 Vladimir Lettiev <crux@altlinux.ru> 0.8.15-alt4
- rebuilt for perl-5.16

* Mon Oct 10 2011 Alexey Tourbin <at@altlinux.ru> 0.8.15-alt3.1
- rebuilt for perl-5.14

* Thu Mar 17 2011 Vladimir V. Kamarzin <vvk@altlinux.org> 0.8.15-alt3
- Revert buggy patch applied in 0.8.15-alt2

* Fri Nov 05 2010 Vladimir Lettiev <crux@altlinux.ru> 0.8.15-alt2.1
- rebuilt with perl 5.12

* Wed Oct 06 2010 Vladimir V. Kamarzin <vvk@altlinux.org> 0.8.15-alt2
- Apply patch for fix recoding of channel names
- Rebuild with libssl.so.10 and libcrypto.so.10

* Mon Apr 19 2010 Vladimir V. Kamarzin <vvk@altlinux.org> 0.8.15-alt1
- 0.8.15 (Closes: #23317). Security fixes:
  + CVE-2010-1155 (poor verification the hostname of the server when
    using SSL connections)
  + CVE-2010-1156 (A NULL-pointer dereference error in
    src/core/nicklist.c can be exploited to cause a crash)

* Sat Nov 14 2009 Repocop Q. A. Robot <repocop@altlinux.org> 0.8.14-alt1.qa1
- NMU (by repocop): the following fixes applied:
  * pixmap-in-deprecated-location for irssi
  * postclean-05-filetriggers for spec file

* Tue Oct 06 2009 Vladimir V. Kamarzin <vvk@altlinux.org> 0.8.14-alt1
- 0.8.14 (Closes: #19627)

* Wed Sep 23 2009 Vladimir V. Kamarzin <vvk@altlinux.org> 0.8.12-alt6
- Add raorn's script for xchat-like nick colorization

* Thu Jun 18 2009 Vladimir V. Kamarzin <vvk@altlinux.org> 0.8.12-alt5
- cherry-picked upstream fix for CVE-2009-1959

* Tue May 19 2009 Vladimir V. Kamarzin <vvk@altlinux.org> 0.8.12-alt4
- Fix building with fresh toolchain

* Thu Apr 16 2009 Vladimir V. Kamarzin <vvk@altlinux.org> 0.8.12-alt3
- Applied upstream fix for ignoring DNS not found errors when considering
  reconnect (Closes: #17866)
- Add dependency on main irssi package to -perl subpackage
- Remove obsolete %%update_menus/%%clean_menus macros

* Tue Nov 06 2007 Pavlov Konstantin <thresh@altlinux.ru> 0.8.12-alt2
- 0.8.12 release.

* Fri Sep 21 2007 Pavlov Konstantin <thresh@altlinux.ru> 0.8.12-alt1.RC1
- 0.8.12 RC1.
- Minor spec cleanup.

* Fri Apr 27 2007 Pavlov Konstantin <thresh@altlinux.ru> 0.8.11-alt1
- 0.8.11 release.

* Sun Mar 11 2007 Pavlov Konstantin <thresh@altlinux.ru> 0.8.11-alt0.rc1
- 0.8.11 rc1.
- Removed dcc-free patch (#3), applied upstream.

* Fri Aug 18 2006 Pavlov Konstantin <thresh@altlinux.ru> 0.8.10-alt3
- Package docs properly.
- Added patch4 to build irssi with system libpopt (closes #8264).

* Wed Mar 01 2006 Pavlov Konstantin <thresh@altlinux.ru> 0.8.10-alt2
- backported dcc-free patch from trunk (closes #9105).

* Fri Feb 03 2006 Pavlov Konstantin <thresh@altlinux.ru> 0.8.10-alt1
- Adopting package.
- Moved out INSTALL file.
- Bzip2'ed ChangeLog (closes #8989).
- Added _disable/_enable the debian menu file, defaults to disable.
- When debian menu is disabled, freedesktop menu file is getting installed.

* Sun Jan 08 2006 Pavlov Konstantin <thresh@altlinux.ru> 0.8.10-alt0.4.2
- NMU (yet another one).
- Fixed #8726.
- Spec cleanups ($RPM_BUILD_ROOT to %%buildroot)
- Fixed building on current Sisyphus.

* Tue Dec 20 2005 Pavlov Konstantin <thresh@altlinux.ru> 0.8.10-alt0.4.1
- NMU.
- 0.8.10 release.
- Removed gcc-g77 from buildrequires.
- Removed versioned dependancy on libtool.
- Updated patch: irssi-0.8.10-perl_scripts.fix.alt.patch.

* Tue Jun 23 2005 Nazar Yurpeak <phoenix@altlinux.org> 0.8.10-alt0.4
- Updated BuildRequires
- Fixed bug #6920

* Tue Oct 05 2004 Nazar Yurpeak <phoenix@altlinux.org> 0.8.10-alt0.3
- CVS 0.8.10-rc5

* Mon Aug 23 2004 Nazar Yurpeak <phoenix@altlinux.org> 0.8.10-alt0.2
- CVS Aug 23 2004

* Mon Jul 16 2004 Nazar Yurpeak <phoenix@altlinux.org> 0.8.10-alt0.1
- CVS 0.8.10-rc4

* Mon May 31 2004 Nazar Yurpeak <phoenix@altlinux.org> 0.8.9-alt3
- Updated BuildRequires

* Thu May 27 2004 Nazar Yurpeak <phoenix@altlinux.org> 0.8.9-alt2
- fixed perl scripts

* Mon May 10 2004 ALT QA Team Robot <qa-robot@altlinux.org> 0.8.9-alt1.1
- Rebuilt with openssl-0.9.7d.

* Thu Jan 22 2004 Nazar Yurpeak <phoenix@altlinux.org> 0.8.9-alt1
- 0.8.9
- temprorary removed perl scripts

* Wed Dec 10 2003 Nazar Yurpeak <phoenix@altlinux.org> 0.8.8-alt1
- 0.8.8

* Tue Aug 12 2003 Rider <rider@altlinux.ru> 0.8.6-alt4
- fix bug #0002794 (menu group changed to Chat)

* Tue Jan 21 2003 Rider <rider@altlinux.ru> 0.8.6-alt3
- fix russian summary

* Thu Jan 16 2003 Rider <rider@altlinux.ru> 0.8.6-alt2
- build with perl
- updated build requires
- build with glib2

* Fri Nov 22 2002 Rider <rider@altlinux.ru> 0.8.6-alt1
- new version
- remove perl core dump fix (included to mainstream)

* Wed Oct 09 2002 Rider <rider@altlinux.ru> 0.8.5-alt3
- removed perl scripts

* Tue Oct 08 2002 Rider <rider@altlinux.ru> 0.8.5-alt2
- requires & buildrequires fix

* Sat Oct 05 2002 Rider <rider@altlinux.ru> 0.8.5-alt1
- new version
- update specfile from MDK
- build without perl

* Wed Apr 03 2002 Dmitry V. Levin <ldv@alt-linux.org> 0.7.98.4-alt4
- Build without bind-devel.

* Sat Feb 09 2002 Rider <rider@altlinux.ru> 0.7.98.4-alt3
- 0.7.98.4
- removed menu entry

* Thu Jul 26 2001 Dmitry V. Levin <ldv@altlinux.ru> 0.7.98.3-alt3
- Rebuilt with new perl.

* Mon Jun 25 2001 Dmitry V. Levin <ldv@altlinux.ru> 0.7.98.3-alt2
- Specfile minor cleanup.
- Rebuilt with perl-5.6.1

* Mon May 14 2001 Sergie Pugachev <fd_rag@altlinux.ru> 0.7.98.3-alt1
- new version

* Sun Jan 14 2001 AEN <aen@logic.ru>
- RE adaptation

* Thu Nov 16 2000 David BAUDENS <baudens@mandrakesoft.com> 0.7.96-2mdk
- Fix again build for archs <> than i386

* Mon Nov 13 2000 Daouda Lo <daouda@mandrakesoft.com> 0.7.96-1mdk
- big release ;-)
- build with bot , perl , mysql support
- text based support
- provides all icons
- mv from /usr/doc to /usr/share/doc

* Fri Sep 29 2000 Daouda Lo <daouda@mandrakesoft.com> 0.7.20.1-10mdk
- icons should be transparents.
- include menu entry in the body of spec file.
- more macrozifications.

* Mon Sep 25 2000 Daouda Lo <daouda@mandrakesoft.com> 0.7.20.1-9mdk
- add 32*32 icon for menu & replace gif icons format by xpm format.

* Wed Sep 20 2000 David BAUDENS <baudens@mandrakesoft.com> 0.7.20.1-8mdk
- %%config(noreplace)
- Remove stupid hard coded PATH in Menu entry
- Macros
- Use %%_tmppath for BuidRoot
- Spec clean up
- Remove french Description and Summary
- Fix typos in longtile (Menu entry)

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.7.20.1-7mdk
- automatically added BuildRequires

* Tue Apr 11 2000 Daouda Lo <daouda@mandrakesoft.com> 0.7.20.1-6mdk
- change icons
- clean spec.

* Fri Apr 04 2000 Daouda Lo <daouda@mandrakesoft.com> 0.7.20.1-5mdk
- add icons

* Sat Apr 1 2000 Daouda Lo <daouda@mandrakesoft.com> 0.7.20.1-3mdk
- add menu entry

* Sat Mar 25 2000 Daouda Lo <daouda@mandrakesoft.com> 0.7.20.1-2mdk
- group fix

* Thu Dec 02 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- 0.7.20.1

* Thu Nov 04 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- Clean up the file section (removes xmms conflict)

* Sun Oct 31 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- 0.7.18 :
    - Authors Note :
    There's still a small bug in 0.7.18 irssi, if you
    use GtkText to print text it won't scroll down
    automatically. Solution: Use irssi text widget..
- update URL & src url
- Enable SMP check/build & add bzip2 macro

* Mon Aug 23 1999 Thierry Vignaud <tvignaud@mandrakesoft.com>
- 0.7.14

* Mon Jul 26 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- Rebuild (4mdk)

* Thu Jul 15 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- --sysconfdir=/etc

* Tue May 11 1999 Alexandre Dussart <adussart@mandrakesoft.com>
- Make Mandrake compliant again

* Fri Apr 30 1999 GaÌl Duval <gael@linux-mandrake.com>
- lipstick

* Fri Apr 16 1999 Alexandre Dussart <adussart@mandrakesoft.com>
- Mandrake compliant
- Change Group to Internet

* Mon Mar 29 1999 JT Traub <jtraub@dragoncat.net>
- Updated to 0.7.6.
- text mode client re-added.

* Thu Mar 25 1999 JT Traub <jtraub@dragoncat.net>
- Updated sources

* Sat Mar 13 1999 JT Traub <jtraub@dragoncat.net>
- Updated to 0.7.4 sources
- Added the irssi-text bin to the package.

* Mon Feb 22 1999 JT Traub <jtraub@dragoncat.net>
- Made spec file compliant with RHCN guidelines.

* Sun Feb 13 1999 JT Traub <jtraub@dragoncat.net>
- Updated to 0.6.0 sources.
- Cleaned up spec file to make it relocatable on install

* Sun Feb 7 1999  JT Traub <jtraub@dragoncat.net>
- Updated sources to 0.5.0
- removed obsolete patch lines

* Sat Feb 3 1999  JT Traub <jtraub@dragoncat.net>
- Updated sources to 0.4.0
- Deleted old patch line

* Sat Jan 30 1999  JT Traub <jtraub@dragoncat.net>
- Updated sources to 0.3.6
- Updated spec to install the .desktop file.
- Removed the now obsolete patch lines

* Wed Jan 27 1999  JT Traub <jtraub@dragoncat.net>
- Upgraded to 0.3.5

* Sun Jan 24 1999  JT Traub <jtraub@dragoncat.net>
- First attempt at building this