irssi/irssi.spec
Ailin Nemui ba50cb7a69 Accepting request 1114914 from home:ailin_nemui:branches:server:irc
- drop perl-ntype.patch, upstreamed
- update to 1.4.5
  + Add workaround for Perl 5.38.0 bug that breaks the Irssi
    locale and glyph rendering (scripts.irssi.org#857, #1498)
  - Fix Perl scripts broken by Perl 5.38 (scripts.irssi.org#851,
    #1474). With input from Leon Timmermans
  - Document workaround to fix linker errors when building with
    meson on Apple (#1435, #1492)
  - Fix meson using wrong filenames on Apple, leading to broken
    Perl support (#1483, #1493)
  - Fix /upgrade not accepting `~' (#1460, #1462). By Lukas Mai 
  - Improve compatibility with Perl5-IDEA (#1465, #1467). By
    Charlie Daffern
  - Fix logic in how own actions are printed for other protocols
    (codeberg!5, #1471). By Andrej Kacian
  - Fix crash on old PowerPC Mac (#1482, #1484)
  - Fix wrong prototype of library function used in terminal
    handling (#1495). By Emil Engler
  - Minor cleanups (#1488, #1497). Includes work by Emil Engler
  - Minor help and documentation fixes (#1458, #1494, #1477,
    #1478). Includes work by KindOne

OBS-URL: https://build.opensuse.org/request/show/1114914
OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=141
2023-10-03 07:56:52 +00:00

127 lines
3.5 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) 2023 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/
#
Name: irssi
Version: 1.4.5
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://keyserver.ubuntu.com/pks/lookup?op=get&search=0x7EE65E3082A5FB06AC7C368D00CCB587DDBEF0E1
Source4: %{name}.keyring
BuildRequires: glib2-devel
BuildRequires: meson
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 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
%build
%meson \
-Ddocdir="%{_docdir}/%{name}" \
-Denable-true-color=yes \
-Dwith-proxy=yes \
-Dwith-perl=yes \
-Dwith-perl-lib=vendor \
%if 0%{?suse_version} > 1330
-Dwith-otr=yes \
%endif
-DPACKAGE_VERSION="%{version}" \
#
%meson_build
%install
%meson_install
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
%{_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/
%{_libdir}/pkgconfig/irssi*.pc
%changelog