irssi/irssi.spec

150 lines
4.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package irssi
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
- update to 0.8.17 + Document that SSL connections aren't properly handled during /UPGRADE. See Github PR #39. + Synchronize scripts with scripts.irssi.org. + Performance enhancement of the nicklist as well as the window_item_find function. See Github PR #24. + Disallow unloading of static modules. + Allow UTF-8 characters in /bind. See Github PR #18. + Split overlong outgoing messages instead of silently truncating them. Adds two new options: 'split_line_end' and 'split_line_start'. - 'split_line_end' contains a string added to the end of line fragments. - 'split_line_start' contains a string added to the beginning of line fragments. See Github PR #29. + Added special /ignore NO_ACT level to ignore only activity (see /help ignore). + Support for 256 and true color terminals (see Github PR #48). + Support for italics (see Github PR #58). + Rewrote many help files. - Fixed various compiler warnings and use of deprecated functions. - Fixed Perl API usage and added PERL_NO_GET_CONTEXT to reduce code size. - Fixed format_get_text Perl API. See Github PR #23. - Fixed gui_printtext_after and term_refresh_*() visibility. See Github PR #22. - Fixed issue where UTF-8 characters was corrupted once for every 32k text. See Github PR #12. - Fixed redrawing issue with right-aligned statusbar. - Fixed use-after-free bug with cached settings values. See Github PR #147. - disable irssi-0.8.15_ssl_proxy.patch for now - disable irssi-0.8.15-ssl-passphrase.patch as it collides with the new upstream implementation. OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=58
2014-10-17 15:29:52 +02:00
%bcond_with socks
Name: irssi
Accepting request 884404 from home:ailin_nemui:branches:server:irc - update to 1.2.3 - Fix the compilation of utf8proc (#1021) - Fix wrong call to free. By Zero King (#1076) - Fix a colour reset in true colour themes when encountering mIRC colours (#1059) - Fix memory leak on malformed CAP requests (#1120) - Fix an erroneous free of SASL data. Credit to Oss-Fuzz (#1128, #1130) - Re-set the TLS flag when reconnecting (#1027, #1134) - Fix the scrollback getting stuck after /clear (#1115, #1136) - Fix the input of Ctrl+C as the first character (#1153, #1154) - Fix crash on quit during unloading of modules on certain platforms (#1167) - Fix Irssi freezing input after Ctrl+Space on GLib >2.62 (#1180, #1183) - Fix layout of IDCHANs. By Lauri Tirkkonen (#1197) - Fix crash when server got reconnected before it was properly connected (#1210, #1211) - Fix multiple identical active caps (#1249) - Minor help corrections (#1156, #1213, #1214, #1255) - Remove erroneous colour in the colorless theme. Reported and fixed by Nutchanon Wetchasit (#1220, #1221) - Fix invalid bounds calculation when editing the text entry. Found and fixed by Sergey Valentey (#1269) - Fix passing of negative size in buffer writes. Found and fixed by Sergey Valentey (#1270) - Fix Irssi freezing on slow hardware and fast DCC transfers (#159, #1271) - Fix compilation on Solaris (#1291) - Fix null pointer dereference when receiving broken JOIN record. Credit to Oss-Fuzz (#1292) - Fix crash on /connect to some sockets (#1239, #1298) - Fix Irssi rendering on Apple ARM. By Misty De Méo (#1267, #1268, #1290) - Fix crash on /lastlog with broken lines (#1281, #1299) - Fix memory leak when receiving bogus SASL authentication data. Found and fixed by Sergey Valentey (#1293) OBS-URL: https://build.opensuse.org/request/show/884404 OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=120
2021-04-11 09:02:45 +02:00
Version: 1.2.3
Release: 0
Summary: Modular IRC Client
License: GPL-2.0-or-later
Group: Productivity/Networking/IRC
URL: http://www.irssi.org
Source: https://github.com/irssi/irssi/releases/download/%{version}/irssi-%{version}.tar.xz
Source1: irssi.desktop
Source2: irssi.png
Source3: https://github.com/irssi/irssi/releases/download/%{version}/irssi-%{version}.tar.xz.asc
# https://sks-keyservers.net/pks/lookup?op=get&search=0x00CCB587DDBEF0E1
Source4: %{name}.keyring
Source99: irssi-rpmlintrc
# PATCH-FIX-OPENSUSE irssi-0.8.16_missing_prototype_warnings.patch
Patch1: irssi-0.8.16_missing_prototype_warnings.patch
Patch2: irssi-1.2.3-add-libera.patch
BuildRequires: glib2-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: pkgconfig
BuildRequires: xz
Conflicts: %{name}-snapshot
%{perl_requires}
%{?libperl_requires}
# the OTR module is optional but the libotr version is too old
%if 0%{?suse_version} > 1330
BuildRequires: libotr-devel
%endif
%if 0%{?suse_version} > 1330 && 0%{?sle_version} == 0
BuildRequires: utf8proc-devel
%endif
%if %{with socks}
BuildRequires: dante-devel
%endif
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%description
Irssi is a modular IRC client that currently only has a text mode
user interface. However, 8090%% of the code is not text mode
specific, so other UIs could be created. Irssi is not IRC specific;
there are SILC and ICB modules available.
Irssi is not using the ircII code.
%package devel
#
Summary: Development package for irssi
Group: Development/Languages/C and C++
Requires: %{name} = %{version}
Requires: dante-devel
%description devel
This package contains the development files for irssi. It allows to
compile plugins for the irssi package.
%prep
%setup -q
%patch1
%patch2 -p1
%build
export CFLAGS="%{optflags} -fno-strict-aliasing -DGLIB_DISABLE_DEPRECATION_WARNINGS"
export CFLAGS="$CFLAGS -fPIE"
export LDFLAGS="-pie"
%configure \
--disable-silent-rules \
- update to 0.8.17 + Document that SSL connections aren't properly handled during /UPGRADE. See Github PR #39. + Synchronize scripts with scripts.irssi.org. + Performance enhancement of the nicklist as well as the window_item_find function. See Github PR #24. + Disallow unloading of static modules. + Allow UTF-8 characters in /bind. See Github PR #18. + Split overlong outgoing messages instead of silently truncating them. Adds two new options: 'split_line_end' and 'split_line_start'. - 'split_line_end' contains a string added to the end of line fragments. - 'split_line_start' contains a string added to the beginning of line fragments. See Github PR #29. + Added special /ignore NO_ACT level to ignore only activity (see /help ignore). + Support for 256 and true color terminals (see Github PR #48). + Support for italics (see Github PR #58). + Rewrote many help files. - Fixed various compiler warnings and use of deprecated functions. - Fixed Perl API usage and added PERL_NO_GET_CONTEXT to reduce code size. - Fixed format_get_text Perl API. See Github PR #23. - Fixed gui_printtext_after and term_refresh_*() visibility. See Github PR #22. - Fixed issue where UTF-8 characters was corrupted once for every 32k text. See Github PR #12. - Fixed redrawing issue with right-aligned statusbar. - Fixed use-after-free bug with cached settings values. See Github PR #147. - disable irssi-0.8.15_ssl_proxy.patch for now - disable irssi-0.8.15-ssl-passphrase.patch as it collides with the new upstream implementation. OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=58
2014-10-17 15:29:52 +02:00
--enable-ipv6 \
--with-bot \
--with-proxy \
%if %{with socks}
- update to 0.8.17 + Document that SSL connections aren't properly handled during /UPGRADE. See Github PR #39. + Synchronize scripts with scripts.irssi.org. + Performance enhancement of the nicklist as well as the window_item_find function. See Github PR #24. + Disallow unloading of static modules. + Allow UTF-8 characters in /bind. See Github PR #18. + Split overlong outgoing messages instead of silently truncating them. Adds two new options: 'split_line_end' and 'split_line_start'. - 'split_line_end' contains a string added to the end of line fragments. - 'split_line_start' contains a string added to the beginning of line fragments. See Github PR #29. + Added special /ignore NO_ACT level to ignore only activity (see /help ignore). + Support for 256 and true color terminals (see Github PR #48). + Support for italics (see Github PR #58). + Rewrote many help files. - Fixed various compiler warnings and use of deprecated functions. - Fixed Perl API usage and added PERL_NO_GET_CONTEXT to reduce code size. - Fixed format_get_text Perl API. See Github PR #23. - Fixed gui_printtext_after and term_refresh_*() visibility. See Github PR #22. - Fixed issue where UTF-8 characters was corrupted once for every 32k text. See Github PR #12. - Fixed redrawing issue with right-aligned statusbar. - Fixed use-after-free bug with cached settings values. See Github PR #147. - disable irssi-0.8.15_ssl_proxy.patch for now - disable irssi-0.8.15-ssl-passphrase.patch as it collides with the new upstream implementation. OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=58
2014-10-17 15:29:52 +02:00
--with-socks \
%endif
- update to 0.8.17 + Document that SSL connections aren't properly handled during /UPGRADE. See Github PR #39. + Synchronize scripts with scripts.irssi.org. + Performance enhancement of the nicklist as well as the window_item_find function. See Github PR #24. + Disallow unloading of static modules. + Allow UTF-8 characters in /bind. See Github PR #18. + Split overlong outgoing messages instead of silently truncating them. Adds two new options: 'split_line_end' and 'split_line_start'. - 'split_line_end' contains a string added to the end of line fragments. - 'split_line_start' contains a string added to the beginning of line fragments. See Github PR #29. + Added special /ignore NO_ACT level to ignore only activity (see /help ignore). + Support for 256 and true color terminals (see Github PR #48). + Support for italics (see Github PR #58). + Rewrote many help files. - Fixed various compiler warnings and use of deprecated functions. - Fixed Perl API usage and added PERL_NO_GET_CONTEXT to reduce code size. - Fixed format_get_text Perl API. See Github PR #23. - Fixed gui_printtext_after and term_refresh_*() visibility. See Github PR #22. - Fixed issue where UTF-8 characters was corrupted once for every 32k text. See Github PR #12. - Fixed redrawing issue with right-aligned statusbar. - Fixed use-after-free bug with cached settings values. See Github PR #147. - disable irssi-0.8.15_ssl_proxy.patch for now - disable irssi-0.8.15-ssl-passphrase.patch as it collides with the new upstream implementation. OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=58
2014-10-17 15:29:52 +02:00
--enable-dane \
--enable-ssl \
--with-ncurses \
--with-terminfo \
--enable-true-color \
--with-perl=yes \
Accepting request 673496 from home:ailin_nemui:branches:server:irc - update to 1.2.0 * Improved the /STATUSBAR commands (#858) * /SET no longer shows `=' between setting and value (#886) * /CUBES removed from default config (available as script) (#956) * /1 /2 /3 ... removed from default config (available as new setting window_number_commands) (#958) * Always redraw the screen on resize. By David Phillips (#896) * Private notices intended for channels are now displayed on the channel (new setting notice_channel_context) (#959) + Imported the "Off-the-record" module into Irssi tree (#854, #589, #196) + Initial support for sideways split windows (#697, #431, #224, #807, FS#310, #947, #955, #989) + Change the implementation of `wcwidth'. This is used to calculate the width of emojis on your terminal screen (#917, #720) + Make the wcwidth functions available from Perl (#973): string_width(str) string_chars_for_width(str, width) wcwidth(char) + Added completion_keep_word setting (#979) + Allow activity_hide_targets to hide activity in itemless windows (#967, #997, #1001, #1003) + Added activity_hide_visible setting (#990) + Allow hiding of lines through the /IGNORE system (#901, #900, #892, #890, #884, #937) + Add window_default_hidelevel setting. By Doug Freed (#941) + Add activity_hide_window_hidelevel setting, defaulting to ON (#938) + Add autolog_only_saved_channels setting, to autolog only channels that are in the config (#968) + Add format support for the input line. By Ben Paxton, originally by Jonas Hurrelmann (#764, FS#621, #1004) use Irssi::TextUI; gui_input_set_extent(pos, text) gui_input_set_extents(pos, len, left, right) gui_input_clear_extents(pos, len) gui_input_get_extent(pos) gui_input_get_text_and_extents() gui_input_set_text_and_extents(...) + Parsing of IRCv3 CAP 3.2 (#775, #869) + Show CAP-related events in the user interface (#918, #916, #870, #704) + Continue using separators when addressing multiple nicks with tab completion. By Manish Goregaokar (#822) + Bind Shift-tab by default. By Niklas Luokkala (#830, #829) + Fuzzing more things (#913, #780, #813) - Disconnect SASL properly in case the SASL module got unloaded from server (#931, #629, #618, #616) - Fix backward completion jumping to the first instead of last word (#979) - Improve empty topic handling (#961, #905, #911, #897, #888) - Prevent config truncation when no space left. By dequis and Lukas Waymann (#922, #925, #910, #909, #906, #871, #817) - Also time-out servers in lookup phase (#866, #130) - Fix build with LibreSSL 2.7. By Dorian Harmans (#865) - Fix a crash when appending to a textbuffer without line. Reported by Jari Matilainen (#862) - Fix segfault on sending large messages (#803, #796, #802) - Fix segfault on invalid statusbar config (#993, #994) - Fix random memory writes on restoring queries of foreign protocols (#999, #1000) - Make default keybinds deletable (#859, #507) - Fix freeze when resizing Irssi very small (#946) - Compare channels case-insensitively, avoiding confusions with the config file (#857, #856) - Fix DCC GET on Android. By Martin Staron (#844) - Improve rawlog performance (#957) - Fix nick escaping erroneously escaping quotes (#978, #974, #709) - Protect against theme recursion, improve padding performance, limit alignment padding. Credit to Oss-Fuzz (#835, #851, #850, #846, #848) - Fix recursive loop in replaces (#833, GL#23) - Fix headers for compilation of C modules (#939) - Documentation. By Zero King (#814). (#852) - Sync NEWS, docs, scripts (#849, #855) - Build system (#868, #867, #985, #988) - Fix build on IBM i and AIX. By Calvin Buckley (#975) - Misc fixes (#840, #839, #843, #953, #962). Tests (#806, #875, #905, #964, #1011). Fuzzing (#929). OBS-URL: https://build.opensuse.org/request/show/673496 OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=109
2019-02-11 23:51:43 +01:00
%if 0%{?suse_version} > 1330
--with-otr=module \
%endif
- update to 0.8.17 + Document that SSL connections aren't properly handled during /UPGRADE. See Github PR #39. + Synchronize scripts with scripts.irssi.org. + Performance enhancement of the nicklist as well as the window_item_find function. See Github PR #24. + Disallow unloading of static modules. + Allow UTF-8 characters in /bind. See Github PR #18. + Split overlong outgoing messages instead of silently truncating them. Adds two new options: 'split_line_end' and 'split_line_start'. - 'split_line_end' contains a string added to the end of line fragments. - 'split_line_start' contains a string added to the beginning of line fragments. See Github PR #29. + Added special /ignore NO_ACT level to ignore only activity (see /help ignore). + Support for 256 and true color terminals (see Github PR #48). + Support for italics (see Github PR #58). + Rewrote many help files. - Fixed various compiler warnings and use of deprecated functions. - Fixed Perl API usage and added PERL_NO_GET_CONTEXT to reduce code size. - Fixed format_get_text Perl API. See Github PR #23. - Fixed gui_printtext_after and term_refresh_*() visibility. See Github PR #22. - Fixed issue where UTF-8 characters was corrupted once for every 32k text. See Github PR #12. - Fixed redrawing issue with right-aligned statusbar. - Fixed use-after-free bug with cached settings values. See Github PR #147. - disable irssi-0.8.15_ssl_proxy.patch for now - disable irssi-0.8.15-ssl-passphrase.patch as it collides with the new upstream implementation. OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=58
2014-10-17 15:29:52 +02:00
--with-perl-lib=vendor
%make_build all
%install
Accepting request 565895 from home:avindra - update to 1.1.0 * Changes + Colour is now re-set when reaching a comma, matching mIRC behaviour + Irssi now shows the initial nick and name on first start + lynx is no longer required to run autogen.sh + The command history no longer permits wrapping around + /foreach now correctly sends arguments as commands, stopping you from embarassing AMSGs + /server does not connect to servers anymore, use /server connect to change servers + The net_ip_compare API function is now deprecated, and the previously deprecated net_connect has been removed * Additions + Add an option to ignore all channels or ignore all queries using /set activity_hide_targets + Add a startup warning if the TERM var is wrong inside tmux / screen + Add option to hide certain levels from the textbuffer using / window hidelevel + Irssi now has its first unit test (for mode parsing) + Added access to global command history when using window history, and a binding to erase entries from the command history (erase_history_entry) + -alternate_nick is now available as a network specific property + On FreeBSD, Irssi now supports Capsicum sandbox (/capsicum enter) + Filenames (directories) ending with a / now tab-complete + UTF-8 should now work in regular expressions when using GRegex (the default) + Nicks are now properly escaped on completion + /server add -port now works + Add a setting key_timeout to make key sequences automatically re-set when not finished + Warn users about expired client certificates, as servers may refuse them + Add a new net_start_ssl function for StartTLS. This is available from ABI 8 and can be used by protocol modules + The %# code is now stored in the textbuffer, so for example web scripts can make use of it + Add new setting break_wide which can be used to enable breaking of wide characters (for east-asian users) + Add fuzzing code * Fixes + Netsplits show properly again + Do not error on blank lines when using /exec -o + Detect used nickname as reported by server + Prevent use after free error during the execution of some commands + Fix MODE parameter parsing when colon was used at a place Irssi didn't expect + Fixed code to compile with -Werror=declaration-after-statement + Clang-format is now supported for git-clang-format + Fix use after free when changing the network of hilights + Fix positioning error when tab-completing non-ascii strings + In-development issues + Clarify Alis in /help list + Improve /lastlog performance from O(N^2) to O(N) + Fix a segfault on "script destroyed" signal + Fix early ISON error + Documentation improvements + Minor cleanups + Fix space issue in glib-2.0.m4 - cleanup with spec-cleaner - drop regex-patch-653.patch * fixed upstream in 79bbca4644cad7f2dee89c7ac6b8f9acc2c8b427 OBS-URL: https://build.opensuse.org/request/show/565895 OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=100
2018-01-16 07:48:02 +01:00
%make_install docdir=%{_docdir}/%{name} V=1
%perl_process_packlist
Accepting request 673496 from home:ailin_nemui:branches:server:irc - update to 1.2.0 * Improved the /STATUSBAR commands (#858) * /SET no longer shows `=' between setting and value (#886) * /CUBES removed from default config (available as script) (#956) * /1 /2 /3 ... removed from default config (available as new setting window_number_commands) (#958) * Always redraw the screen on resize. By David Phillips (#896) * Private notices intended for channels are now displayed on the channel (new setting notice_channel_context) (#959) + Imported the "Off-the-record" module into Irssi tree (#854, #589, #196) + Initial support for sideways split windows (#697, #431, #224, #807, FS#310, #947, #955, #989) + Change the implementation of `wcwidth'. This is used to calculate the width of emojis on your terminal screen (#917, #720) + Make the wcwidth functions available from Perl (#973): string_width(str) string_chars_for_width(str, width) wcwidth(char) + Added completion_keep_word setting (#979) + Allow activity_hide_targets to hide activity in itemless windows (#967, #997, #1001, #1003) + Added activity_hide_visible setting (#990) + Allow hiding of lines through the /IGNORE system (#901, #900, #892, #890, #884, #937) + Add window_default_hidelevel setting. By Doug Freed (#941) + Add activity_hide_window_hidelevel setting, defaulting to ON (#938) + Add autolog_only_saved_channels setting, to autolog only channels that are in the config (#968) + Add format support for the input line. By Ben Paxton, originally by Jonas Hurrelmann (#764, FS#621, #1004) use Irssi::TextUI; gui_input_set_extent(pos, text) gui_input_set_extents(pos, len, left, right) gui_input_clear_extents(pos, len) gui_input_get_extent(pos) gui_input_get_text_and_extents() gui_input_set_text_and_extents(...) + Parsing of IRCv3 CAP 3.2 (#775, #869) + Show CAP-related events in the user interface (#918, #916, #870, #704) + Continue using separators when addressing multiple nicks with tab completion. By Manish Goregaokar (#822) + Bind Shift-tab by default. By Niklas Luokkala (#830, #829) + Fuzzing more things (#913, #780, #813) - Disconnect SASL properly in case the SASL module got unloaded from server (#931, #629, #618, #616) - Fix backward completion jumping to the first instead of last word (#979) - Improve empty topic handling (#961, #905, #911, #897, #888) - Prevent config truncation when no space left. By dequis and Lukas Waymann (#922, #925, #910, #909, #906, #871, #817) - Also time-out servers in lookup phase (#866, #130) - Fix build with LibreSSL 2.7. By Dorian Harmans (#865) - Fix a crash when appending to a textbuffer without line. Reported by Jari Matilainen (#862) - Fix segfault on sending large messages (#803, #796, #802) - Fix segfault on invalid statusbar config (#993, #994) - Fix random memory writes on restoring queries of foreign protocols (#999, #1000) - Make default keybinds deletable (#859, #507) - Fix freeze when resizing Irssi very small (#946) - Compare channels case-insensitively, avoiding confusions with the config file (#857, #856) - Fix DCC GET on Android. By Martin Staron (#844) - Improve rawlog performance (#957) - Fix nick escaping erroneously escaping quotes (#978, #974, #709) - Protect against theme recursion, improve padding performance, limit alignment padding. Credit to Oss-Fuzz (#835, #851, #850, #846, #848) - Fix recursive loop in replaces (#833, GL#23) - Fix headers for compilation of C modules (#939) - Documentation. By Zero King (#814). (#852) - Sync NEWS, docs, scripts (#849, #855) - Build system (#868, #867, #985, #988) - Fix build on IBM i and AIX. By Calvin Buckley (#975) - Misc fixes (#840, #839, #843, #953, #962). Tests (#806, #875, #905, #964, #1011). Fuzzing (#929). OBS-URL: https://build.opensuse.org/request/show/673496 OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=109
2019-02-11 23:51:43 +01:00
rm %{buildroot}%{_libdir}/irssi/modules/lib*.{a,la}
install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
install -D -m0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/pixmaps/irssi.png"
%if 0%{?suse_version}
%suse_update_desktop_file -r "%{name}" Network IRCClient
%endif
%files
%config(noreplace) %{_sysconfdir}/irssi.conf
%{_bindir}/botti
%{_bindir}/irssi
# modules
%dir %{_libdir}/irssi
%dir %{_libdir}/irssi/modules
%{_libdir}/irssi/modules/*.so*
# scripts & themes
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
#perl
%dir %{perl_vendorarch}/Irssi
%{perl_vendorarch}/Irssi.pm
%{perl_vendorarch}/Irssi/*
%{perl_vendorarch}/auto/Irssi
# docs
%dir %{_defaultdocdir}/irssi
%docdir %{_defaultdocdir}/irssi/
%doc %{_defaultdocdir}/irssi/*
%{_mandir}/man1/*.1%{?ext_man}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/irssi.png
%files devel
%{_includedir}/irssi/
%changelog