weechat/weechat.spec

217 lines
6.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package weechat
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#
Name: weechat
Version: 1.9.1
Release: 0
Summary: Portable, Fast, Light and Extensible Chat Client
License: GPL-3.0+
Group: Productivity/Networking/IRC
Accepting request 323426 from home:mimi_vx:branches:server:irc - Version bump to 1.3: * core: add completion "colors" (issue #481) * core: start/stop search in buffer at current scroll position by default, add key Ctrl+q to stop search and reset scroll (issue #76, issue #393) * core: add option weechat.look.key_grab_delay to set the default delay when grabbing a key with Alt+k * core: add option weechat.look.confirm_upgrade (issue #463) * core: allow Ctrl+c to exit WeeChat when the passphrase is asked on startup (issue #452) * core: allow pointer as list name in evaluation of hdata (issue #450) * core: add signal "signal_sighup" * api: add support of evaluated sub-strings and current date/time in function string_eval_expression() and command /eval * api: add function string_eval_path_home() * alias: add options "add", "addcompletion" and "del" in command /alias, remove command /unalias (issue #458) * irc: add option irc.network.channel_encode (issue #218, issue #482) * irc: add option irc.color.topic_current (issue #475) * irc: evaluate content of server option "nicks" * logger: evaluate content of option logger.file.path (issue #388) * relay: display value of HTTP header "X-Real-IP" for websocket connections (issue #440) * script: rename option script.scripts.dir to script.scripts.path, evaluate content of option (issue #388) * xfer: evaluate content of options xfer.file.download_path and xfer.file.upload_path (issue #388) * many bug fixes OBS-URL: https://build.opensuse.org/request/show/323426 OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=67
2015-08-16 14:06:27 +02:00
Url: http://weechat.org
Accepting request 450441 from home:mimi_vx:branches:server:irc - Update to version 1.7 * New features + core: add option weechat.look.align_multiline_words + core: add optional command prefix in completion templates "commands", "plugins_commands" and "weechat_commands" + core: add optional arguments in completion template, sent to the callback + core: add option "time" in command /debug + api: add info "uptime" (WeeChat uptime) + api: add info "pid" (WeeChat PID) + fifo: add file fifo.conf and option fifo.file.path to customize FIFO pipe path/filename + irc: add server option "usermode" + irc: add tag "self_msg" on self messages * Improvements + core, xfer: display more information on fork errors + core: add a slash before commands completed in arguments of /command, /debug time, /key bind, /key bindctxt, /mute, /repeat, /wait + core: add a warning in header of configuration files to not edit by hand + alias: add a slash before commands completed in arguments of /alias + exec: add option "-oc" in command /exec to execute commands in process output, don’t execute commands by default with "-o" + irc: evaluate content of server option "ssl_fingerprint" + irc: change default value of option irc.network.lag_reconnect from 0 to 300 + trigger: do not hide email in command "/msg nickserv register password email" * Bug fixes + core: fix deadlock when quitting after a signal SIGHUP/SIGQUIT/SIGTERM is received + core: fix display of empty lines in search mode + api: fix crash in function string_expand_home() when the HOME environment variable is not set OBS-URL: https://build.opensuse.org/request/show/450441 OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=75
2017-01-16 10:50:19 +01:00
Source: http://weechat.org/files/src/%{name}-%{version}.tar.xz
Source1: weechat.desktop
Source2: %{name}.keyring
Accepting request 450441 from home:mimi_vx:branches:server:irc - Update to version 1.7 * New features + core: add option weechat.look.align_multiline_words + core: add optional command prefix in completion templates "commands", "plugins_commands" and "weechat_commands" + core: add optional arguments in completion template, sent to the callback + core: add option "time" in command /debug + api: add info "uptime" (WeeChat uptime) + api: add info "pid" (WeeChat PID) + fifo: add file fifo.conf and option fifo.file.path to customize FIFO pipe path/filename + irc: add server option "usermode" + irc: add tag "self_msg" on self messages * Improvements + core, xfer: display more information on fork errors + core: add a slash before commands completed in arguments of /command, /debug time, /key bind, /key bindctxt, /mute, /repeat, /wait + core: add a warning in header of configuration files to not edit by hand + alias: add a slash before commands completed in arguments of /alias + exec: add option "-oc" in command /exec to execute commands in process output, don’t execute commands by default with "-o" + irc: evaluate content of server option "ssl_fingerprint" + irc: change default value of option irc.network.lag_reconnect from 0 to 300 + trigger: do not hide email in command "/msg nickserv register password email" * Bug fixes + core: fix deadlock when quitting after a signal SIGHUP/SIGQUIT/SIGTERM is received + core: fix display of empty lines in search mode + api: fix crash in function string_expand_home() when the HOME environment variable is not set OBS-URL: https://build.opensuse.org/request/show/450441 OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=75
2017-01-16 10:50:19 +01:00
Source3: http://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
Accepting request 432607 from home:mimi_vx:branches:server:irc - update to version 1.6 - removed weechat-doc subpackage, ( BuildRequires dep missing ) * New features: + core: add optional argument "lowest", "highest" or level mask in command /input hotlist_clear + core: add option "cycle" in command /buffer + api: add "extra" argument to evaluate extra variables in function string_eval_expression() + relay: add option relay.network.allow_empty_password + trigger: add support for one-time triggers Improvements + core, irc, xfer: display more information in memory allocation errors + api: remove functions printf_date() and printf_tags() + irc: rename server options "default_msg_{kick|part|quit}" to "msg_{kick|part|quit}", evaluate them + relay: allow escape of comma in command "init" (weechat protocol) Bug fixes + core, irc, xfer: refresh domain name and name server addresses before connection to servers (fix connection to servers after suspend mode) + api: fix return of function string_match() when there are multiple masks in the string + api: fix crash in function network_connect_to() if address is NULL + api: fix connection to servers with hook_connect() on Windows 10 with Windows subsystem for Linux + api: fix crash in function string_split_command() when the separator is not a semicolon + irc: fix socket leak in connection to server + irc: fix display of service notice mask (message 008) + irc: fix NULL pointer dereference in 734 command callback + relay: return an empty hdata when the requested hdata or pointer is not found OBS-URL: https://build.opensuse.org/request/show/432607 OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=74
2016-10-02 19:47:51 +02:00
BuildRequires: pkgconfig
BuildRequires: ruby-devel
BuildRequires: update-desktop-files
Accepting request 432607 from home:mimi_vx:branches:server:irc - update to version 1.6 - removed weechat-doc subpackage, ( BuildRequires dep missing ) * New features: + core: add optional argument "lowest", "highest" or level mask in command /input hotlist_clear + core: add option "cycle" in command /buffer + api: add "extra" argument to evaluate extra variables in function string_eval_expression() + relay: add option relay.network.allow_empty_password + trigger: add support for one-time triggers Improvements + core, irc, xfer: display more information in memory allocation errors + api: remove functions printf_date() and printf_tags() + irc: rename server options "default_msg_{kick|part|quit}" to "msg_{kick|part|quit}", evaluate them + relay: allow escape of comma in command "init" (weechat protocol) Bug fixes + core, irc, xfer: refresh domain name and name server addresses before connection to servers (fix connection to servers after suspend mode) + api: fix return of function string_match() when there are multiple masks in the string + api: fix crash in function network_connect_to() if address is NULL + api: fix connection to servers with hook_connect() on Windows 10 with Windows subsystem for Linux + api: fix crash in function string_split_command() when the separator is not a semicolon + irc: fix socket leak in connection to server + irc: fix display of service notice mask (message 008) + irc: fix NULL pointer dereference in 734 command callback + relay: return an empty hdata when the requested hdata or pointer is not found OBS-URL: https://build.opensuse.org/request/show/432607 OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=74
2016-10-02 19:47:51 +02:00
BuildRequires: pkgconfig(enchant)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(guile-2.0)
BuildRequires: pkgconfig(lua)
BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(python2)
BuildRequires: pkgconfig(tcl)
Requires: ca-certificates
Requires: hicolor-icon-theme
Recommends: %{name}-lang = %{version}
# without scripts it is bit annoying
Recommends: %{name}-perl = %{version}
Recommends: %{name}-python = %{version}
%description
WeeChat (Wee Enhanced Environment for Chat) is a fast and light cross-platform
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 guile
Summary: Guile Scripting Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}
%description guile
Support for %{name} scripts written in the Guile language.
%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 aspell
Summary: Aspell Spell-Checking Support for %{name}
Group: Productivity/Networking/IRC
Requires: %{name} = %{version}
%description aspell
Spell-checking support for %{name}, using the aspell library.
%prep
%setup -q
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE4}")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
Accepting request 323426 from home:mimi_vx:branches:server:irc - Version bump to 1.3: * core: add completion "colors" (issue #481) * core: start/stop search in buffer at current scroll position by default, add key Ctrl+q to stop search and reset scroll (issue #76, issue #393) * core: add option weechat.look.key_grab_delay to set the default delay when grabbing a key with Alt+k * core: add option weechat.look.confirm_upgrade (issue #463) * core: allow Ctrl+c to exit WeeChat when the passphrase is asked on startup (issue #452) * core: allow pointer as list name in evaluation of hdata (issue #450) * core: add signal "signal_sighup" * api: add support of evaluated sub-strings and current date/time in function string_eval_expression() and command /eval * api: add function string_eval_path_home() * alias: add options "add", "addcompletion" and "del" in command /alias, remove command /unalias (issue #458) * irc: add option irc.network.channel_encode (issue #218, issue #482) * irc: add option irc.color.topic_current (issue #475) * irc: evaluate content of server option "nicks" * logger: evaluate content of option logger.file.path (issue #388) * relay: display value of HTTP header "X-Real-IP" for websocket connections (issue #440) * script: rename option script.scripts.dir to script.scripts.path, evaluate content of option (issue #388) * xfer: evaluate content of options xfer.file.download_path and xfer.file.upload_path (issue #388) * many bug fixes OBS-URL: https://build.opensuse.org/request/show/323426 OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=67
2015-08-16 14:06:27 +02:00
find . -name '*.[ch]' | xargs 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 \
-DCMAKE_EXE_LINKER_FLAGS=-Wl,--as-needed -DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -DCMAKE_SHARED_LINKER_FLAGS=-Wl,--as-needed \
-DLIBDIR="%{_libdir}" \
-DPYTHON_LIBRARY="%{_libdir}/libpython%{py_ver}.so" \
-DENABLE_ENCHANT=ON \
-DCA_FILE=%{_sysconfdir}/ssl/ca-bundle.pem
make %{?_smp_mflags}
%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
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
Accepting request 432607 from home:mimi_vx:branches:server:irc - update to version 1.6 - removed weechat-doc subpackage, ( BuildRequires dep missing ) * New features: + core: add optional argument "lowest", "highest" or level mask in command /input hotlist_clear + core: add option "cycle" in command /buffer + api: add "extra" argument to evaluate extra variables in function string_eval_expression() + relay: add option relay.network.allow_empty_password + trigger: add support for one-time triggers Improvements + core, irc, xfer: display more information in memory allocation errors + api: remove functions printf_date() and printf_tags() + irc: rename server options "default_msg_{kick|part|quit}" to "msg_{kick|part|quit}", evaluate them + relay: allow escape of comma in command "init" (weechat protocol) Bug fixes + core, irc, xfer: refresh domain name and name server addresses before connection to servers (fix connection to servers after suspend mode) + api: fix return of function string_match() when there are multiple masks in the string + api: fix crash in function network_connect_to() if address is NULL + api: fix connection to servers with hook_connect() on Windows 10 with Windows subsystem for Linux + api: fix crash in function string_split_command() when the separator is not a semicolon + irc: fix socket leak in connection to server + irc: fix display of service notice mask (message 008) + irc: fix NULL pointer dereference in 734 command callback + relay: return an empty hdata when the requested hdata or pointer is not found OBS-URL: https://build.opensuse.org/request/show/432607 OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=74
2016-10-02 19:47:51 +02:00
%doc AUTHORS.adoc ChangeLog.adoc Contributing.adoc COPYING
%doc README.adoc ReleaseNotes.adoc
%{_bindir}/weechat-curses
%{_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
%{_datadir}/applications/weechat.desktop
%{_datadir}/icons/hicolor/*/apps/weechat.png
%files -f "%{name}.lang" lang
%files devel
%{_includedir}/weechat
%{_libdir}/pkgconfig/weechat.pc
%files guile
%{_libdir}/weechat/plugins/guile.so
%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 aspell
%{_libdir}/weechat/plugins/aspell.so
%changelog