Accepting request 52501 from home:gberh:branches:server:irc
Reviewed OK OBS-URL: https://build.opensuse.org/request/show/52501 OBS-URL: https://build.opensuse.org/package/show/server:irc/weechat?expand=0&rev=29
This commit is contained in:
parent
0093d25dbb
commit
d2eea23662
11
weechat-0.3.3-fix-strftime.patch
Normal file
11
weechat-0.3.3-fix-strftime.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -urN weechat-0.3.3.orig/src/plugins/scripts/ruby/weechat-ruby.c weechat-0.3.3/src/plugins/scripts/ruby/weechat-ruby.c
|
||||||
|
--- weechat-0.3.3.orig/src/plugins/scripts/ruby/weechat-ruby.c 2010-06-21 12:33:42.000000000 +0200
|
||||||
|
+++ weechat-0.3.3/src/plugins/scripts/ruby/weechat-ruby.c 2010-11-08 16:33:02.000000000 +0100
|
||||||
|
@@ -32,6 +32,7 @@
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
+#include <time.h>
|
||||||
|
|
||||||
|
#include "../../weechat-plugin.h"
|
||||||
|
#include "../script.h"
|
115
weechat-0.3.3-remove-date-time.patch
Normal file
115
weechat-0.3.3-remove-date-time.patch
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
diff -urN weechat-0.3.3.orig/src/core/wee-backtrace.c weechat-0.3.3/src/core/wee-backtrace.c
|
||||||
|
--- weechat-0.3.3.orig/src/core/wee-backtrace.c 2010-06-20 14:14:48.000000000 +0200
|
||||||
|
+++ weechat-0.3.3/src/core/wee-backtrace.c 2010-11-08 01:20:50.000000000 +0100
|
||||||
|
@@ -164,8 +164,8 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
weechat_backtrace_printf ("======= WeeChat backtrace =======");
|
||||||
|
- weechat_backtrace_printf ("(written by %s, compiled on %s %s)",
|
||||||
|
- PACKAGE_STRING, __DATE__, __TIME__);
|
||||||
|
+ weechat_backtrace_printf ("(written by %s)",
|
||||||
|
+ PACKAGE_STRING);
|
||||||
|
|
||||||
|
#ifdef HAVE_BACKTRACE
|
||||||
|
trace_size = backtrace (trace, BACKTRACE_MAX);
|
||||||
|
diff -urN weechat-0.3.3.orig/src/core/weechat.c weechat-0.3.3/src/core/weechat.c
|
||||||
|
--- weechat-0.3.3.orig/src/core/weechat.c 2010-07-12 10:56:19.000000000 +0200
|
||||||
|
+++ weechat-0.3.3/src/core/weechat.c 2010-11-08 01:20:50.000000000 +0100
|
||||||
|
@@ -98,10 +98,10 @@
|
||||||
|
string_iconv_fprintf (stdout, "\n");
|
||||||
|
string_iconv_fprintf (stdout,
|
||||||
|
/* TRANSLATORS: "%s %s" after "compiled on" is date and time */
|
||||||
|
- _("%s Copyright (C) 2003-2010, compiled on %s %s\n"
|
||||||
|
+ _("%s Copyright (C) 2003-2010\n"
|
||||||
|
"Developed by Sebastien Helleu <flashcode@flashtux.org> "
|
||||||
|
"- %s"),
|
||||||
|
- PACKAGE_STRING, __DATE__, __TIME__, WEECHAT_WEBSITE);
|
||||||
|
+ PACKAGE_STRING, WEECHAT_WEBSITE);
|
||||||
|
string_iconv_fprintf (stdout, "\n\n");
|
||||||
|
string_iconv_fprintf (stdout,
|
||||||
|
_("Usage: %s [option...] [plugin:option...]\n"),
|
||||||
|
diff -urN weechat-0.3.3.orig/src/core/weechat.h weechat-0.3.3/src/core/weechat.h
|
||||||
|
--- weechat-0.3.3.orig/src/core/weechat.h 2010-06-25 13:35:39.000000000 +0200
|
||||||
|
+++ weechat-0.3.3/src/core/weechat.h 2010-11-08 01:20:50.000000000 +0100
|
||||||
|
@@ -62,7 +62,7 @@
|
||||||
|
/* license */
|
||||||
|
|
||||||
|
#define WEECHAT_LICENSE_TEXT \
|
||||||
|
- "WeeChat " PACKAGE_VERSION " Copyright (C) 2003-2010, compiled on " __DATE__ " " __TIME__ \
|
||||||
|
+ "WeeChat " PACKAGE_VERSION " Copyright (C) 2003-2010" \
|
||||||
|
"\nDeveloped by Sebastien Helleu <flashcode@flashtux.org> - " WEECHAT_WEBSITE "\n\n" \
|
||||||
|
"WeeChat is free software; you can redistribute it and/or modify\n" \
|
||||||
|
"it under the terms of the GNU General Public License as published by\n" \
|
||||||
|
diff -urN weechat-0.3.3.orig/src/core/wee-command.c weechat-0.3.3/src/core/wee-command.c
|
||||||
|
--- weechat-0.3.3.orig/src/core/wee-command.c 2010-07-28 11:30:15.000000000 +0200
|
||||||
|
+++ weechat-0.3.3/src/core/wee-command.c 2010-11-08 01:20:50.000000000 +0100
|
||||||
|
@@ -3928,11 +3928,8 @@
|
||||||
|
if (translated_string)
|
||||||
|
{
|
||||||
|
snprintf (string, sizeof (string),
|
||||||
|
- "WeeChat %s [%s %s %s]",
|
||||||
|
- PACKAGE_VERSION,
|
||||||
|
- _("compiled on"),
|
||||||
|
- __DATE__,
|
||||||
|
- __TIME__);
|
||||||
|
+ "WeeChat %s",
|
||||||
|
+ PACKAGE_VERSION);
|
||||||
|
input_data (buffer, string);
|
||||||
|
if (weechat_upgrade_count > 0)
|
||||||
|
{
|
||||||
|
@@ -3948,11 +3945,8 @@
|
||||||
|
else
|
||||||
|
{
|
||||||
|
snprintf (string, sizeof (string),
|
||||||
|
- "WeeChat %s [%s %s %s]",
|
||||||
|
- PACKAGE_VERSION,
|
||||||
|
- "compiled on",
|
||||||
|
- __DATE__,
|
||||||
|
- __TIME__);
|
||||||
|
+ "WeeChat %s",
|
||||||
|
+ PACKAGE_VERSION);
|
||||||
|
input_data (buffer, string);
|
||||||
|
if (weechat_upgrade_count > 0)
|
||||||
|
{
|
||||||
|
@@ -3968,14 +3962,9 @@
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
- gui_chat_printf (NULL, "%sWeeChat %s %s[%s%s %s %s%s]",
|
||||||
|
+ gui_chat_printf (NULL, "%sWeeChat %s %s",
|
||||||
|
GUI_COLOR(GUI_COLOR_CHAT_BUFFER),
|
||||||
|
PACKAGE_VERSION,
|
||||||
|
- GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS),
|
||||||
|
- GUI_COLOR(GUI_COLOR_CHAT_VALUE),
|
||||||
|
- _("compiled on"),
|
||||||
|
- __DATE__,
|
||||||
|
- __TIME__,
|
||||||
|
GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS));
|
||||||
|
if (weechat_upgrade_count > 0)
|
||||||
|
{
|
||||||
|
diff -urN weechat-0.3.3.orig/src/core/wee-log.c weechat-0.3.3/src/core/wee-log.c
|
||||||
|
--- weechat-0.3.3.orig/src/core/wee-log.c 2010-06-22 18:50:11.000000000 +0200
|
||||||
|
+++ weechat-0.3.3/src/core/wee-log.c 2010-11-08 01:20:50.000000000 +0100
|
||||||
|
@@ -114,8 +114,8 @@
|
||||||
|
"with another home using \"--dir\" command line option.\n"));
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
|
- log_printf ("%s (%s %s %s)",
|
||||||
|
- PACKAGE_STRING, _("compiled on"), __DATE__, __TIME__);
|
||||||
|
+ log_printf ("%s",
|
||||||
|
+ PACKAGE_STRING);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
diff -urN weechat-0.3.3.orig/src/plugins/plugin-api.c weechat-0.3.3/src/plugins/plugin-api.c
|
||||||
|
--- weechat-0.3.3.orig/src/plugins/plugin-api.c 2010-06-20 14:19:11.000000000 +0200
|
||||||
|
+++ weechat-0.3.3/src/plugins/plugin-api.c 2010-11-08 12:19:52.000000000 +0100
|
||||||
|
@@ -287,7 +287,7 @@
|
||||||
|
}
|
||||||
|
else if (string_strcasecmp (info_name, "date") == 0)
|
||||||
|
{
|
||||||
|
- return __DATE__;
|
||||||
|
+ return "";
|
||||||
|
}
|
||||||
|
else if (string_strcasecmp (info_name, "dir_separator") == 0)
|
||||||
|
{
|
@ -1,10 +0,0 @@
|
|||||||
--- src/plugins/scripts/ruby/weechat-ruby.c.orig 2010-06-21 12:33:42.000000000 +0200
|
|
||||||
+++ src/plugins/scripts/ruby/weechat-ruby.c 2010-08-08 10:58:29.000000000 +0200
|
|
||||||
@@ -54,6 +54,7 @@
|
|
||||||
#define RSTRING_PTR(s) RSTRING(s)->ptr
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#include <time.h>
|
|
||||||
|
|
||||||
WEECHAT_PLUGIN_NAME(RUBY_PLUGIN_NAME);
|
|
||||||
WEECHAT_PLUGIN_DESCRIPTION("Ruby plugin for WeeChat");
|
|
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 8 11:48:18 UTC 2010 - gber@opensuse.org
|
||||||
|
|
||||||
|
- cleanup
|
||||||
|
* added specfile header
|
||||||
|
* added more accurate summary and description
|
||||||
|
* removed support for obsolete openSUSE versions
|
||||||
|
* split off -lang subpackage
|
||||||
|
* added patch to remove __DATE__ and __TIME__ macros
|
||||||
|
* enabled make output
|
||||||
|
* build with $RPM_OPT_FLAGS
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 11 19:16:10 UTC 2010 - gber@opensuse.org
|
Mon Oct 11 19:16:10 UTC 2010 - gber@opensuse.org
|
||||||
|
|
||||||
|
147
weechat.spec
147
weechat.spec
@ -1,36 +1,44 @@
|
|||||||
|
#
|
||||||
|
# spec file for package weechat (Version 0.3.3)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
||||||
|
#
|
||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
%if 0%{?!_without_lua:1} && 0%{?suse_version:1}0 && 0%{suse_version} < 920
|
Name: weechat
|
||||||
%else
|
Version: 0.3.3
|
||||||
%define with_lua 1
|
Release: 0
|
||||||
%endif
|
Summary: Portable, Fast, Light and Extensible Chat Client
|
||||||
|
Source: http://www.weechat.org/files/src/weechat-%{version}.tar.bz2
|
||||||
Name: weechat
|
Source1: weechat.desktop
|
||||||
Version: 0.3.3
|
Patch1: weechat-0.3.3-fix-strftime.patch
|
||||||
Release: 0
|
Patch2: weechat-0.3.3-remove-date-time.patch
|
||||||
Summary: Portable, Fast, Light and Extensible IRC Client
|
URL: http://www.weechat.org
|
||||||
Source: http://www.weechat.org/files/src/weechat-%{version}.tar.bz2
|
Group: Productivity/Networking/IRC
|
||||||
Source1: weechat.desktop
|
License: GNU General Public License (GPL)
|
||||||
Patch1: weechat-fix-strftime.patch
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||||
URL: http://www.weechat.org
|
BuildRequires: ncurses-devel perl python-devel cmake
|
||||||
Group: Productivity/Networking/IRC
|
BuildRequires: ruby gcc gnutls gnutls-devel glibc-devel aspell-devel
|
||||||
License: GNU General Public License (GPL)
|
BuildRequires: libstdc++-devel gcc-c++
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
BuildRequires: lua-devel ruby-devel
|
||||||
BuildRequires: ncurses-devel perl python-devel cmake
|
|
||||||
BuildRequires: ruby gcc gnutls gnutls-devel glibc-devel aspell-devel
|
|
||||||
BuildRequires: libstdc++-devel gcc-c++
|
|
||||||
%if %{?with_lua:1}0
|
|
||||||
BuildRequires: lua-devel
|
|
||||||
%endif
|
|
||||||
%if 0%{suse_version} >= 1000
|
|
||||||
BuildRequires: ruby-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: tcl-devel
|
BuildRequires: tcl-devel
|
||||||
BuildRequires: lzo-devel libgpg-error libgcrypt
|
BuildRequires: lzo-devel libgpg-error libgcrypt
|
||||||
BuildRequires: libgpg-error-devel libgcrypt-devel
|
BuildRequires: libgpg-error-devel libgcrypt-devel
|
||||||
BuildRequires: autoconf automake libtool pkgconfig
|
BuildRequires: autoconf automake libtool pkgconfig
|
||||||
%if 0%{?suse_version:1}
|
%if 0%{?suse_version:1}
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
%if 0%{?suse_version} >= 1030
|
%if 0%{?suse_version} >= 1030
|
||||||
BuildRequires: licenses
|
BuildRequires: licenses
|
||||||
Requires: licenses
|
Requires: licenses
|
||||||
@ -38,79 +46,87 @@ Requires: licenses
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client
|
WeeChat (Wee Enhanced Environment for Chat) is a fast and light cross-platform
|
||||||
for many operating systems. Everything can be done with a keyboard, and it
|
chat environment. It can be entirely controlled with the keyboard, has a
|
||||||
is customizable and extensible with scripts. Many GUIs are available (Curses,
|
plugin-based architecture and is customizable and extensible with scripts in
|
||||||
GTK, and Qt). It is compliant with RFCs 1459, 2810, 2811, 2812, and 2813.
|
several scripting languages.
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Sebastien Helleu <flashcode@flashtux.org>
|
||||||
|
|
||||||
|
%lang_package
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development Environment for %{name} Plugins
|
Summary: Development Environment for %{name} Plugins
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development environment for authoring %{name} plugins.
|
Development environment for authoring %{name} plugins.
|
||||||
|
|
||||||
%if %{?with_lua:1}0
|
|
||||||
%package lua
|
%package lua
|
||||||
Summary: Lua Scripting Support for %{name}
|
Summary: Lua Scripting Support for %{name}
|
||||||
Group: Productivity/Networking/IRC
|
Group: Productivity/Networking/IRC
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description lua
|
%description lua
|
||||||
Support for %{name} scripts written in the Lua language.
|
Support for %{name} scripts written in the Lua language.
|
||||||
%endif
|
|
||||||
|
|
||||||
%package perl
|
%package perl
|
||||||
Summary: Perl Scripting Support for %{name}
|
Summary: Perl Scripting Support for %{name}
|
||||||
Group: Productivity/Networking/IRC
|
Group: Productivity/Networking/IRC
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description perl
|
%description perl
|
||||||
Support for %{name} scripts written in the Perl language.
|
Support for %{name} scripts written in the Perl language.
|
||||||
|
|
||||||
%package python
|
%package python
|
||||||
Summary: Python Scripting Support for %{name}
|
Summary: Python Scripting Support for %{name}
|
||||||
Group: Productivity/Networking/IRC
|
Group: Productivity/Networking/IRC
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
Support for %{name} scripts written in the Python language.
|
Support for %{name} scripts written in the Python language.
|
||||||
|
|
||||||
%package tcl
|
%package tcl
|
||||||
Summary: Tcl Scripting Support for %{name}
|
Summary: Tcl Scripting Support for %{name}
|
||||||
Group: Productivity/Networking/IRC
|
Group: Productivity/Networking/IRC
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description tcl
|
%description tcl
|
||||||
Support for %{name} scripts written in the Tcl language.
|
Support for %{name} scripts written in the Tcl language.
|
||||||
|
|
||||||
%package ruby
|
%package ruby
|
||||||
Summary: Ruby Scripting Support for %{name}
|
Summary: Ruby Scripting Support for %{name}
|
||||||
Group: Productivity/Networking/IRC
|
Group: Productivity/Networking/IRC
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description ruby
|
%description ruby
|
||||||
Support for %{name} scripts written in the Ruby language.
|
Support for %{name} scripts written in the Ruby language.
|
||||||
|
|
||||||
%package aspell
|
%package aspell
|
||||||
Summary: Aspell Spell-Checking Support for %{name}
|
Summary: Aspell Spell-Checking Support for %{name}
|
||||||
Group: Productivity/Networking/IRC
|
Group: Productivity/Networking/IRC
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description aspell
|
%description aspell
|
||||||
Spell-checking support for %{name}, using the aspell library.
|
Spell-checking support for %{name}, using the aspell library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export CFLAGS="%{optflags}"
|
||||||
%__mkdir build
|
%__mkdir build
|
||||||
pushd build
|
pushd build
|
||||||
cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" -DLIBDIR="%{_libdir}" \
|
cmake \
|
||||||
-DPYTHON_LIBRARY="%{_libdir}/libpython%{py_ver}.so" VERBOSE=1 ..
|
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
||||||
%__make %{?jobs:-j%{jobs}}
|
-DLIBDIR="%{_libdir}" \
|
||||||
|
-DPYTHON_LIBRARY="%{_libdir}/libpython%{py_ver}.so" ..
|
||||||
|
%__make %{?_smp_flags} VERBOSE=1
|
||||||
popd #build
|
popd #build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -132,7 +148,7 @@ test -e "$h" && %__ln_s -f "$h" COPYING
|
|||||||
%clean
|
%clean
|
||||||
%__rm -rf "%{buildroot}"
|
%__rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%files -f "%{name}.lang"
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS ChangeLog COPYING NEWS README
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
||||||
%{_bindir}/weechat-curses
|
%{_bindir}/weechat-curses
|
||||||
@ -148,16 +164,16 @@ test -e "$h" && %__ln_s -f "$h" COPYING
|
|||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
%{_datadir}/pixmaps/%{name}.png
|
%{_datadir}/pixmaps/%{name}.png
|
||||||
|
|
||||||
|
%files -f "%{name}.lang" lang
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/weechat
|
%{_includedir}/weechat
|
||||||
%{_libdir}/pkgconfig/weechat.pc
|
%{_libdir}/pkgconfig/weechat.pc
|
||||||
|
|
||||||
%if %{?with_lua:1}0
|
|
||||||
%files lua
|
%files lua
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/weechat/plugins/lua.so
|
%{_libdir}/weechat/plugins/lua.so
|
||||||
%endif
|
|
||||||
|
|
||||||
%files perl
|
%files perl
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -180,8 +196,3 @@ test -e "$h" && %__ln_s -f "$h" COPYING
|
|||||||
%{_libdir}/weechat/plugins/aspell.so
|
%{_libdir}/weechat/plugins/aspell.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
# Local Variables:
|
|
||||||
# mode: rpm-spec
|
|
||||||
# tab-width: 3
|
|
||||||
# End:
|
|
||||||
|
Loading…
Reference in New Issue
Block a user