diff --git a/enchant-0.4.3.patch b/enchant-0.4.3.patch new file mode 100644 index 0000000..f320ed5 --- /dev/null +++ b/enchant-0.4.3.patch @@ -0,0 +1,41 @@ +diff -up weechat-0.4.3/src/plugins/aspell/weechat-aspell.c.orig weechat-0.4.3/src/plugins/aspell/weechat-aspell.c +--- weechat-0.4.3/src/plugins/aspell/weechat-aspell.c.orig 2014-04-09 11:51:10.699477733 -0500 ++++ weechat-0.4.3/src/plugins/aspell/weechat-aspell.c 2014-04-09 11:42:24.537253180 -0500 +@@ -990,12 +990,13 @@ weechat_aspell_buffer_closed_cb (void *d + /* + * Display infos about external libraries used. + */ +- ++/* + int + weechat_aspell_debug_libs_cb (void *data, const char *signal, + const char *type_data, void *signal_data) + { + /* make C compiler happy */ ++/* + (void) data; + (void) signal; + (void) type_data; +@@ -1012,9 +1013,9 @@ weechat_aspell_debug_libs_cb (void *data + weechat_printf (NULL, " %s: aspell (?)", ASPELL_PLUGIN_NAME); + #endif + #endif /* USE_ENCHANT */ +- ++/* + return WEECHAT_RC_OK; +-} ++}*/ + + /* + * Initializes aspell plugin. +@@ -1066,8 +1067,8 @@ weechat_plugin_init (struct t_weechat_pl + &weechat_aspell_window_switch_cb, NULL); + weechat_hook_signal ("buffer_closed", + &weechat_aspell_buffer_closed_cb, NULL); +- weechat_hook_signal ("debug_libs", +- &weechat_aspell_debug_libs_cb, NULL); ++ /*weechat_hook_signal ("debug_libs", ++ &weechat_aspell_debug_libs_cb, NULL);*/ + + return WEECHAT_RC_OK; + } diff --git a/weechat.spec b/weechat.spec index 370cedb..f162148 100644 --- a/weechat.spec +++ b/weechat.spec @@ -4,12 +4,16 @@ Name: weechat Summary: Portable, fast, light and extensible IRC client Version: 0.4.3 -Release: 1%{?dist} +Release: 2%{?dist} Source: http://weechat.org/files/src/%{name}-%{version}.tar.bz2 URL: http://weechat.org Group: Applications/Communications License: GPLv3 +%if 0%{?rhel} +Patch0: enchant-0.4.3.patch +%endif + BuildRequires: cmake BuildRequires: docbook-style-xsl BuildRequires: enchant-devel @@ -49,7 +53,9 @@ This package contains include files and pc file for weechat. %prep %setup -q -n %{name}-%{version} - +%if 0%{?rhel} +%patch0 -p 1 +%endif %build mkdir build @@ -93,6 +99,11 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/*.pc %changelog +* Wed Apr 09 2014 Russell Golden - 0.4.3-2 +- Build and patch for el6 + - This is a _nasty_ hack intended solely to get the binary working. + - The binary does seem to work whether or not aspell is enabled. + * Sun Feb 16 2014 Jamie Nguyen - 0.4.3-1 - update to upstream release 0.4.3