weechat/weechat.spec
Ondřej Súkup 664003c9ca Accepting request 559147 from home:mimi_vx:branches:server:irc
- update to 2.0.1
* python: fix arguments status/gnutls_rc/sock in hook_connect() callback
* python: fix argument fd in hook_fd() callback
* core: add flag "input_get_empty" in buffer
* core: add signals "buffer_filters_enabled" and "buffer_filters_disabled"
* core: support loading of plugins from path in environment
    variable "WEECHAT_EXTRA_LIBDIR"
* alias: add infolist "alias_default" (list of default aliases)
* buflist: add two new bar items ("buflist2" and "buflist3") using the same
    format configuration options
* buflist: add option buflist.look.add_newline 
* fset: new plugin "fset" (fast set of WeeChat and plugins options)
* core: make value optional in command /buffer set 
* core: allow floating point and hexadecimal numbers in comparison of evaluated values
* core: add option weechat.look.save_config_with_fsync
* api: add support of prefix "quiet:" in function key_unbind() to quietly remove keys
* api: add argument "recurse_subdirs" in function exec_on_files()
* script: add local variable "filter" in the script buffer
* core: do not change the chat prefix size when a filtered line is added
* core: fix display of nicks in nicklist when they are in a group with sub-groups
* core, plugins: check return code of strftime function
* core: fix cast of time_t (to "long long" instead of "long")
* core: call the config hook when options are renamed or removed
* api: change type of arguments status/gnutls_rc/sock in hook_connect() callback
    from string to integer (in scripts)
* api: change type of argument fd in hook_fd() callback from
    string to integer (in scripts)
* buflist: remove recursive evaluation of extra variables
* guile: return integer (0/1) instead of boolean in API functions
* guile: fix return value of static strings in API functions

OBS-URL: https://build.opensuse.org/request/show/559147
OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=82
2017-12-21 17:23:12 +00:00

212 lines
6.1 KiB
RPMSpec

#
# 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: 2.0.1
Release: 0
Summary: Portable, Fast, Light and Extensible Chat Client
License: GPL-3.0+
Group: Productivity/Networking/IRC
URL: http://weechat.org
Source: http://weechat.org/files/src/%{name}-%{version}.tar.xz
Source1: weechat.desktop
Source2: %{name}.keyring
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
BuildRequires: pkgconfig
BuildRequires: ruby-devel
BuildRequires: update-desktop-files
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")\""
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_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 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
%{_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 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