SHA256
1
0
forked from pool/weechat

Accepting request 1073273 from server:irc

OBS-URL: https://build.opensuse.org/request/show/1073273
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/weechat?expand=0&rev=69
This commit is contained in:
Dominique Leuenberger 2023-03-21 16:42:04 +00:00 committed by Git OBS Bridge
commit f808ffadc8
3 changed files with 21 additions and 0 deletions

13
weechat-ruby3.2.patch Normal file
View File

@ -0,0 +1,13 @@
Index: weechat-3.7.1/cmake/FindRuby.cmake
===================================================================
--- weechat-3.7.1.orig/cmake/FindRuby.cmake
+++ weechat-3.7.1/cmake/FindRuby.cmake
@@ -37,7 +37,7 @@ if(PKG_CONFIG_FOUND)
# set specific search path for macOS
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/ruby/lib/pkgconfig")
endif()
- pkg_search_module(RUBY ruby-3.1 ruby-3.0 ruby-2.7 ruby-2.6 ruby-2.5 ruby-2.4 ruby-2.3 ruby-2.2 ruby-2.1 ruby-2.0 ruby-1.9 ruby)
+ pkg_search_module(RUBY ruby-3.2 ruby-3.1 ruby-3.0 ruby-2.7 ruby-2.6 ruby-2.5 ruby-2.4 ruby-2.3 ruby-2.2 ruby-2.1 ruby-2.0 ruby-1.9 ruby)
if(RUBY_FOUND AND ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# FIXME: weird hack: hardcoding the Ruby lib location on macOS
set(RUBY_LDFLAGS "${RUBY_LDFLAGS} -L/usr/local/opt/ruby/lib")

View File

@ -1,4 +1,10 @@
-------------------------------------------------------------------
Mon Mar 6 08:50:05 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Add weechat-ruby3.2.patch: Fix build against Ruby 3.2.
- Add pkgconfig(libzstd) BuildRequires: fix linking of the
binaries.
-------------------------------------------------------------------
Wed Nov 9 15:24:53 UTC 2022 - Andrea Manzini <andrea.manzini@suse.com>
- Update to version 3.7.1:

View File

@ -28,6 +28,7 @@ Source1: weechat.desktop
Source2: https://weechat.org/files/src/%{name}-%{version}.tar.xz.asc
Source3: %{name}.keyring
Source4: %{name}.changes
Patch0: weechat-ruby3.2.patch
BuildRequires: ca-certificates
BuildRequires: cmake
BuildRequires: curl-devel
@ -47,6 +48,7 @@ BuildRequires: update-desktop-files
BuildRequires: pkgconfig(enchant)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(lua)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(tcl)
Requires: ca-certificates