irssi/irssi.spec
Ailin Nemui 555c746616 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 07:02:45 +00:00

148 lines
4.2 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package irssi
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%bcond_with socks
Name: irssi
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
BuildRequires: glib2-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
# 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
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: pkgconfig
BuildRequires: xz
Conflicts: %{name}-snapshot
%{perl_requires}
%{?libperl_requires}
%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
%build
export CFLAGS="%{optflags} -fno-strict-aliasing -DGLIB_DISABLE_DEPRECATION_WARNINGS"
export CFLAGS="$CFLAGS -fPIE"
export LDFLAGS="-pie"
%configure \
--disable-silent-rules \
--enable-ipv6 \
--with-bot \
--with-proxy \
%if %{with socks}
--with-socks \
%endif
--enable-dane \
--enable-ssl \
--with-ncurses \
--with-terminfo \
--enable-true-color \
--with-perl=yes \
%if 0%{?suse_version} > 1330
--with-otr=module \
%endif
--with-perl-lib=vendor
make %{?_smp_mflags} all V=1
%install
%make_install docdir=%{_docdir}/%{name} V=1
%perl_process_packlist
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