2010-11-09 00:33:01 +01:00
|
|
|
#
|
2012-06-04 09:31:40 +02:00
|
|
|
# spec file for package weechat
|
2010-11-09 00:33:01 +01:00
|
|
|
#
|
2016-03-21 10:04:26 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-11-09 00:33:01 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2007-06-09 00:40:41 +02:00
|
|
|
|
2013-05-21 10:16:54 +02:00
|
|
|
|
2010-11-09 00:33:01 +01:00
|
|
|
Name: weechat
|
2016-05-15 12:42:26 +02:00
|
|
|
Version: 1.5
|
2011-01-16 16:23:34 +01:00
|
|
|
Release: 0
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Portable, Fast, Light and Extensible Chat Client
|
2012-06-04 09:31:40 +02:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Networking/IRC
|
2015-08-16 14:06:27 +02:00
|
|
|
Url: http://weechat.org
|
|
|
|
Source: http://weechat.org/files/src/%{name}-%{version}.tar.bz2
|
2010-11-09 00:33:01 +01:00
|
|
|
Source1: weechat.desktop
|
2016-01-11 08:23:55 +01:00
|
|
|
Source2: %{name}.keyring
|
|
|
|
Source3: %{name}-%{version}.tar.bz2.asc
|
2016-03-21 10:04:26 +01:00
|
|
|
Source4: %{name}.changes
|
2014-11-20 18:10:06 +01:00
|
|
|
BuildRequires: asciidoc
|
2015-08-04 15:33:12 +02:00
|
|
|
BuildRequires: ca-certificates
|
2012-01-08 16:47:19 +01:00
|
|
|
BuildRequires: cmake
|
2012-02-26 16:20:25 +01:00
|
|
|
BuildRequires: curl-devel
|
2015-01-28 11:42:56 +01:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2014-11-20 18:10:06 +01:00
|
|
|
BuildRequires: enchant-devel
|
2012-06-04 09:31:40 +02:00
|
|
|
BuildRequires: gcc-c++
|
2013-05-21 10:16:54 +02:00
|
|
|
BuildRequires: grep
|
2014-06-23 11:25:45 +02:00
|
|
|
BuildRequires: guile-devel
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libgnutls-devel
|
|
|
|
BuildRequires: libgpg-error-devel
|
2012-06-04 09:31:40 +02:00
|
|
|
BuildRequires: libtool
|
2014-11-20 18:10:06 +01:00
|
|
|
BuildRequires: libxslt-tools
|
|
|
|
BuildRequires: lua51-devel
|
2014-06-23 11:25:45 +02:00
|
|
|
BuildRequires: lzo-devel
|
2012-01-08 16:47:19 +01:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: perl
|
2012-06-04 09:31:40 +02:00
|
|
|
BuildRequires: pkg-config
|
2012-01-08 16:47:19 +01:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: ruby-devel
|
2009-09-14 19:11:57 +02:00
|
|
|
BuildRequires: tcl-devel
|
2014-06-23 11:25:45 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2015-08-04 15:33:12 +02:00
|
|
|
Requires: ca-certificates
|
2014-06-23 11:25:45 +02:00
|
|
|
Requires: hicolor-icon-theme
|
2015-01-28 13:28:08 +01:00
|
|
|
Recommends: %{name}-lang = %{version}
|
|
|
|
# without scripts it is bit annoying
|
|
|
|
Recommends: %{name}-perl = %{version}
|
|
|
|
Recommends: %{name}-python = %{version}
|
2014-11-20 18:10:06 +01:00
|
|
|
Suggests: %{name}-doc
|
2014-06-23 11:25:45 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-01-28 11:42:56 +01:00
|
|
|
# Not on SLE12
|
2016-02-18 13:26:55 +01:00
|
|
|
%if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
|
2015-01-28 11:42:56 +01:00
|
|
|
BuildRequires: source-highlight
|
|
|
|
%endif
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description
|
2010-11-09 00:33:01 +01:00
|
|
|
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.
|
|
|
|
|
2010-12-20 16:53:49 +01:00
|
|
|
%lang_package
|
2011-01-16 16:23:34 +01:00
|
|
|
|
2015-01-28 13:28:08 +01:00
|
|
|
# Not on SLE12
|
2016-06-14 15:40:08 +02:00
|
|
|
%if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
|
2014-11-20 18:10:06 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Various documentation files for %{name}.
|
2015-01-28 11:42:56 +01:00
|
|
|
%endif
|
2014-11-20 18:10:06 +01:00
|
|
|
|
2009-09-14 16:00:40 +02:00
|
|
|
%package devel
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Development Environment for %{name} Plugins
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-11-20 18:10:06 +01:00
|
|
|
Requires: %{name} = %{version}
|
2009-09-14 16:00:40 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development environment for authoring %{name} plugins.
|
|
|
|
|
2012-06-04 10:57:36 +02:00
|
|
|
%package guile
|
|
|
|
Summary: Guile Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
2014-11-20 18:10:06 +01:00
|
|
|
Requires: %{name} = %{version}
|
2012-06-04 10:57:36 +02:00
|
|
|
|
|
|
|
%description guile
|
|
|
|
Support for %{name} scripts written in the Guile language.
|
|
|
|
|
2007-06-09 00:40:41 +02:00
|
|
|
%package lua
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Lua Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
2014-11-20 18:10:06 +01:00
|
|
|
Requires: %{name} = %{version}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description lua
|
2009-11-07 01:32:08 +01:00
|
|
|
Support for %{name} scripts written in the Lua language.
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%package perl
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Perl Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
2014-11-20 18:10:06 +01:00
|
|
|
Requires: %{name} = %{version}
|
2013-09-05 18:53:16 +02:00
|
|
|
%{?libperl_requires}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description perl
|
2009-11-07 01:32:08 +01:00
|
|
|
Support for %{name} scripts written in the Perl language.
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%package python
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Python Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
2014-11-20 18:10:06 +01:00
|
|
|
Requires: %{name} = %{version}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description python
|
2009-11-07 01:32:08 +01:00
|
|
|
Support for %{name} scripts written in the Python language.
|
2007-06-09 00:40:41 +02:00
|
|
|
|
2009-09-14 16:00:40 +02:00
|
|
|
%package tcl
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Tcl Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
2014-11-20 18:10:06 +01:00
|
|
|
Requires: %{name} = %{version}
|
2009-09-14 16:00:40 +02:00
|
|
|
|
|
|
|
%description tcl
|
2009-11-07 01:32:08 +01:00
|
|
|
Support for %{name} scripts written in the Tcl language.
|
2009-09-14 16:00:40 +02:00
|
|
|
|
2007-06-09 00:40:41 +02:00
|
|
|
%package ruby
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Ruby Scripting Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
2014-11-20 18:10:06 +01:00
|
|
|
Requires: %{name} = %{version}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description ruby
|
2009-11-07 01:32:08 +01:00
|
|
|
Support for %{name} scripts written in the Ruby language.
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%package aspell
|
2010-11-09 00:33:01 +01:00
|
|
|
Summary: Aspell Spell-Checking Support for %{name}
|
|
|
|
Group: Productivity/Networking/IRC
|
2014-11-20 18:10:06 +01:00
|
|
|
Requires: %{name} = %{version}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%description aspell
|
2009-11-07 01:32:08 +01:00
|
|
|
Spell-checking support for %{name}, using the aspell library.
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2016-03-21 10:04:26 +01:00
|
|
|
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE4}")"
|
2011-10-23 10:32:56 +02:00
|
|
|
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
|
|
|
TIME="\"$(date -d "${modified}" "+%%R")\""
|
2015-08-16 14:06:27 +02:00
|
|
|
find . -name '*.[ch]' | xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
|
2016-03-21 10:04:26 +01:00
|
|
|
DATEF="\"$(date -d "${modified}" "+%%F")\""
|
|
|
|
sed -i "s/date=.*/date=$DATEF/" doc/asciidoc.conf
|
|
|
|
sed -i "s/A2X_EXECUTABLE.*/& -a revdate=$DATEF/" doc/*/CMakeLists.txt
|
|
|
|
YEAR=$(date -d "${modified}" +%%Y)
|
|
|
|
sed -i "s/{sys:date \"+%%Y\"}/${YEAR}/" doc/*/weechat.1.*.asciidoc
|
2007-06-09 00:40:41 +02:00
|
|
|
|
2009-09-14 16:00:40 +02:00
|
|
|
%build
|
2010-11-09 00:33:01 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
2014-11-20 18:10:06 +01:00
|
|
|
# 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 \
|
2010-11-09 00:33:01 +01:00
|
|
|
-DLIBDIR="%{_libdir}" \
|
2012-06-04 10:57:36 +02:00
|
|
|
-DPYTHON_LIBRARY="%{_libdir}/libpython%{py_ver}.so" \
|
2013-10-07 11:58:57 +02:00
|
|
|
-DENABLE_ENCHANT=ON \
|
|
|
|
-DENABLE_DOC=ON \
|
2015-08-04 15:33:12 +02:00
|
|
|
-DENABLE_MAN=ON \
|
|
|
|
-DCA_FILE=%{_sysconfdir}/ssl/ca-bundle.pem
|
2014-11-20 18:10:06 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%install
|
2014-11-20 18:10:06 +01:00
|
|
|
%cmake_install
|
2007-06-09 00:40:41 +02:00
|
|
|
|
2013-05-21 10:16:54 +02:00
|
|
|
install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
2007-06-09 00:40:41 +02:00
|
|
|
%suse_update_desktop_file -r "%{name}" Network IRCClient
|
|
|
|
|
2015-01-28 13:28:08 +01:00
|
|
|
# Not on SLE12
|
2016-02-18 13:26:55 +01:00
|
|
|
%if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
|
2013-10-07 11:58:57 +02:00
|
|
|
mv "%{buildroot}%{_datadir}/doc/weechat" html
|
2015-01-28 11:42:56 +01:00
|
|
|
%endif
|
2013-10-07 11:58:57 +02:00
|
|
|
|
|
|
|
%find_lang "%{name}" --with-man
|
2007-06-09 00:40:41 +02:00
|
|
|
|
2011-03-24 00:55:34 +01:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
2013-05-21 10:16:54 +02:00
|
|
|
%icon_theme_cache_post
|
2011-03-24 00:55:34 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
2013-05-21 10:16:54 +02:00
|
|
|
%icon_theme_cache_postun
|
2014-11-20 18:10:06 +01:00
|
|
|
|
2015-01-28 13:28:08 +01:00
|
|
|
# Not on SLE12
|
2016-02-18 13:26:55 +01:00
|
|
|
%if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
|
2014-11-20 18:10:06 +01:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc html/
|
2015-01-28 11:42:56 +01:00
|
|
|
%endif
|
2011-03-24 00:55:34 +01:00
|
|
|
|
2010-11-09 00:33:01 +01:00
|
|
|
%files
|
2007-06-09 00:40:41 +02:00
|
|
|
%defattr(-,root,root)
|
2014-08-16 15:17:39 +02:00
|
|
|
%doc AUTHORS.asciidoc ChangeLog.asciidoc Contributing.asciidoc COPYING
|
|
|
|
%doc README.asciidoc ReleaseNotes.asciidoc
|
2007-06-09 00:40:41 +02:00
|
|
|
%{_bindir}/weechat-curses
|
2013-10-07 11:58:57 +02:00
|
|
|
%{_bindir}/weechat
|
2007-06-09 00:40:41 +02:00
|
|
|
%dir %{_libdir}/weechat
|
|
|
|
%dir %{_libdir}/weechat/plugins
|
2009-09-14 16:00:40 +02:00
|
|
|
%{_libdir}/weechat/plugins/alias.so
|
|
|
|
%{_libdir}/weechat/plugins/charset.so
|
2014-08-16 15:17:39 +02:00
|
|
|
%{_libdir}/weechat/plugins/exec.so
|
2009-09-14 16:00:40 +02:00
|
|
|
%{_libdir}/weechat/plugins/fifo.so
|
|
|
|
%{_libdir}/weechat/plugins/irc.so
|
|
|
|
%{_libdir}/weechat/plugins/logger.so
|
2011-01-16 16:23:34 +01:00
|
|
|
%{_libdir}/weechat/plugins/relay.so
|
2012-09-30 10:03:33 +02:00
|
|
|
%{_libdir}/weechat/plugins/script.so
|
2014-08-16 15:17:39 +02:00
|
|
|
%{_libdir}/weechat/plugins/trigger.so
|
2009-09-14 16:00:40 +02:00
|
|
|
%{_libdir}/weechat/plugins/xfer.so
|
2013-10-07 11:58:57 +02:00
|
|
|
%{_mandir}/man1/weechat.1*
|
|
|
|
%{_datadir}/applications/weechat.desktop
|
2013-05-21 10:16:54 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/weechat.png
|
2007-06-09 00:40:41 +02:00
|
|
|
|
2010-11-09 00:33:01 +01:00
|
|
|
%files -f "%{name}.lang" lang
|
2014-06-23 11:25:45 +02:00
|
|
|
%defattr(-,root,root)
|
2010-11-09 00:33:01 +01:00
|
|
|
|
2009-09-14 16:00:40 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/weechat
|
|
|
|
%{_libdir}/pkgconfig/weechat.pc
|
|
|
|
|
2012-06-04 10:57:36 +02:00
|
|
|
%files guile
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/guile.so
|
|
|
|
|
2007-06-09 00:40:41 +02:00
|
|
|
%files lua
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/lua.so
|
|
|
|
|
|
|
|
%files perl
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/perl.so
|
|
|
|
|
|
|
|
%files python
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/python.so
|
2009-09-14 16:00:40 +02:00
|
|
|
|
|
|
|
%files tcl
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/tcl.so
|
2007-06-09 00:40:41 +02:00
|
|
|
|
|
|
|
%files ruby
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/ruby.so
|
|
|
|
|
|
|
|
%files aspell
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/weechat/plugins/aspell.so
|
|
|
|
|
|
|
|
%changelog
|