SHA256
1
0
forked from pool/weechat
weechat/weechat.spec
Tomáš Chvátal f16371a9ec Accepting request 769245 from home:oxy:branches:server:irc
- update to 2.7
- New features
  * core: add option weechat.look.nick_color_hash_salt to shuffle nick colors (issue #635)
  * core: add different icons sizes (16x16 to 512x512) (issue #1347)
  * core: add file weechat.desktop
  * core: add reverse of string for screen in evaluation of expressions with "revscr:"
  * core: add length of string (number of chars and on screen) in evaluation of expressions with "length:xxx" and "lengthscr:xxx"
  * core: add calculation of expression in evaluation of expressions with "calc:xxx" (issue #997)
  * core: add optional default path (evaluated) in completion "filename"
  * core: add support of modifiers in evaluation of expressions with "modifier:name,data,string"
  * api: add modifier "color_encode_ansi" (issue #528)
  * api: add modifier "eval_path_home"
  * irc: add filters on raw buffer (issue #1000)
  * irc: add option irc.look.display_pv_warning_address to display a warning in private buffer if the remote nick address has changed (issue #892)
  * irc: add server option "ssl_password" (issue #115, issue #1416)
  * irc: add "user" in output of irc_message_parse (issue #136)
  * irc: add options irc.color.message_kick and irc.color.reason_kick (issue #683, issue #684)
  * logger: add option logger.file.color_lines (issue #528, issue #621)
  * script: add options "-ol" and "-il" in command "/script list" to send translated string with list of scripts loaded, display "No scripts loaded" if no scripts are loaded
  * xfer: add option xfer.file.download_temporary_suffix with default value ".part" (issue #1237)
- Bug fixes
  * core: set buffer name, short name and title only if the value has changed
  * core: fix scrolling up in bare mode when switched to bare mode at the top of the buffer (issue #899, issue #978)
  * core: optimize load of configuration files
  * core: fix window separators not respecting window splits (issue #630)
  * core: fix cursor mode info when prefix_align is none and with words split across lines (issue #610, issue #617, issue #619)
  * core: add support of reverse video in ANSI color codes
  * core: fixed segfault during excessive evaluation in function string_repeat (issue #1400)
  * buflist: fix extra spaces between buffers when conditions are used to hide buffers (regression introduced in version 2.6) (issue #1403)
  * irc: do not automatically open a channel with name "0" (issue #1429)
  * irc: remove option irc.network.channel_encode, add server option "charset_message" to control which part of the IRC message is decoded/encoded to the target charset (issue #832)
  * irc: use path from option xfer.file.upload_path to complete filename in command "/dcc send" (issue #60)
  * logger: fix write in log file if it has been deleted or renamed (issue #123)
  * python: send "bytes" instead of "str" to callbacks in Python 3 when the string is not UTF-8 valid (issue #1389)
  * relay: send message "_buffer_title_changed" to clients only when the title is changed
  * xfer: fix memory leak when a xfer is freed and when the plugin is unloaded
- Tests
  * unit: add tests on GUI color functions
- Build
  * core: fix build on Haiku (issue #1420)
  * core: fix build on Alpine
  * core: remove file FindTCL.cmake
  * core: display an error on missing dependency in CMake (issue #916, issue #956)
  * debian: disable Javascript plugin on Debian Sid and Ubuntu Eoan
  * debian: build with Guile 2.2
  * guile: add support of Guile 2.2, disable /guile eval (issue #1098)
  * python: add detection of Python 3.8

OBS-URL: https://build.opensuse.org/request/show/769245
OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=93
2020-02-02 14:12:00 +00:00

208 lines
6.0 KiB
RPMSpec

#
# spec file for package weechat
#
# Copyright (c) 2020 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/
#
Name: weechat
Version: 2.7
Release: 0
Summary: Multi-protocol extensible Chat Client
License: GPL-3.0-or-later
Group: Productivity/Networking/IRC
URL: https://weechat.org
Source: https://weechat.org/files/src/%{name}-%{version}.tar.xz
Source1: weechat.desktop
Source2: %{name}.keyring
Source3: https://weechat.org/files/src/%{name}-%{version}.tar.xz.asc
Source4: %{name}.changes
BuildRequires: ca-certificates
BuildRequires: cmake
BuildRequires: curl-devel
BuildRequires: gcc-c++
BuildRequires: grep
BuildRequires: hicolor-icon-theme
BuildRequires: libgcrypt-devel
BuildRequires: libgpg-error-devel
BuildRequires: libtool
BuildRequires: lzo-devel
BuildRequires: ncurses-devel
BuildRequires: perl
BuildRequires: pkgconfig
BuildRequires: ruby-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(enchant)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(lua)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(tcl)
Requires: ca-certificates
Requires: hicolor-icon-theme
Recommends: %{name}-lang = %{version}
# without scripts it is a bit annoying
Recommends: %{name}-perl = %{version}
Recommends: %{name}-python = %{version}
Obsoletes: %{name}-guile
%description
WeeChat (Wee Enhanced Environment for Chat) is a
chat environment. It can be entirely controlled with the keyboard, has a
plugin-based architecture and is customizable and extensible with scripts in
several scripting languages.
%lang_package
%package devel
Summary: Development Environment for %{name} Plugins
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
Development environment for authoring %{name} plugins.
%package lua
Summary: Lua Scripting Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}
%description lua
Support for %{name} scripts written in the Lua language.
%package perl
Summary: Perl Scripting Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}
%{?libperl_requires}
%description perl
Support for %{name} scripts written in the Perl language.
%package python
Summary: Python Scripting Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}
%description python
Support for %{name} scripts written in the Python language.
%package tcl
Summary: Tcl Scripting Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}
%description tcl
Support for %{name} scripts written in the Tcl language.
%package ruby
Summary: Ruby Scripting Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}
%description ruby
Support for %{name} scripts written in the Ruby language.
%package spell
Summary: Aspell and Enchant Spell-Checking Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}
Supplements: (%{name} and enchant-2-backend-hunspell)
Obsoletes: %{name}-aspell < %{version}
Provides: %{name}-aspell = %{version}
%description spell
Spell-checking support for %{name}, using the aspell and enchant libraries.
%prep
%setup -q
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE4}")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
find . -name '*.[ch]' -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" "{}" "+"
%build
export CFLAGS="%{optflags}"
# Tests require cpputest package
# no-undefined for perl seem not to work as desired
%cmake \
-DLIBDIR="%{_libdir}" \
-DENABLE_PYTHON=ON \
-DPYTHON_LIBRARY="%{_libdir}/libpython%{py3_ver}m.so" \
-DENABLE_ENCHANT=ON \
-DENABLE_GUILE=OFF \
-DENABLE_JAVASCRIPT=OFF \
-DENABLE_PHP=OFF \
-DCA_FILE=%{_sysconfdir}/ssl/ca-bundle.pem
%make_jobs
%install
%cmake_install
install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Network IRCClient
%find_lang "%{name}" --with-man
%files
%doc AUTHORS.adoc ChangeLog.adoc Contributing.adoc
%doc README.adoc ReleaseNotes.adoc
%license COPYING
%{_bindir}/weechat-curses
%{_bindir}/weechat-headless
%{_bindir}/weechat
%dir %{_libdir}/weechat
%dir %{_libdir}/weechat/plugins
%{_libdir}/weechat/plugins/alias.so
%{_libdir}/weechat/plugins/buflist.so
%{_libdir}/weechat/plugins/charset.so
%{_libdir}/weechat/plugins/exec.so
%{_libdir}/weechat/plugins/fifo.so
%{_libdir}/weechat/plugins/irc.so
%{_libdir}/weechat/plugins/logger.so
%{_libdir}/weechat/plugins/relay.so
%{_libdir}/weechat/plugins/script.so
%{_libdir}/weechat/plugins/trigger.so
%{_libdir}/weechat/plugins/xfer.so
%{_libdir}/weechat/plugins/fset.so
%{_datadir}/applications/weechat.desktop
%{_datadir}/icons/hicolor/*/apps/weechat.png
%files -f "%{name}.lang" lang
%files devel
%{_includedir}/weechat
%{_libdir}/pkgconfig/weechat.pc
%files lua
%{_libdir}/weechat/plugins/lua.so
%files perl
%{_libdir}/weechat/plugins/perl.so
%files python
%{_libdir}/weechat/plugins/python.so
%files tcl
%{_libdir}/weechat/plugins/tcl.so
%files ruby
%{_libdir}/weechat/plugins/ruby.so
%files spell
%{_libdir}/weechat/plugins/spell.so
%changelog