From 7c9cee6d24597b28cfd92d978404f1401d85098a Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Jan 16 2015 19:39:19 +0000 Subject: Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2 - Build plugins with -fPIC --- diff --git a/weechat-1.0.1-plugins-fPIC.patch b/weechat-1.0.1-plugins-fPIC.patch new file mode 100644 index 0000000..b2a22ac --- /dev/null +++ b/weechat-1.0.1-plugins-fPIC.patch @@ -0,0 +1,11 @@ +--- weechat-1.0.1/src/plugins/CMakeLists.txt.pic 2014-09-28 15:59:19.000000000 +0900 ++++ weechat-1.0.1/src/plugins/CMakeLists.txt 2015-01-17 04:29:38.934291736 +0900 +@@ -39,6 +39,8 @@ + include(CheckFunctionExists) + include(CheckLibraryExists) + ++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") ++ + if(ENABLE_ALIAS) + add_subdirectory(alias) + endif() diff --git a/weechat.spec b/weechat.spec index eb3d4f2..41093eb 100644 --- a/weechat.spec +++ b/weechat.spec @@ -10,7 +10,7 @@ Name: weechat Version: 1.0.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Portable, fast, light and extensible IRC client URL: http://weechat.org @@ -18,6 +18,10 @@ Group: Applications/Communications License: GPLv3 Source: http://weechat.org/files/src/%{name}-%{version}.tar.bz2 +# /usr/bin/ld: CMakeFiles/charset.dir/charset.o: +# relocation R_X86_64_PC32 against symbol `weechat_charset_plugin' +# can not be used when making a shared object; recompile with -fPIC +Patch0: weechat-1.0.1-plugins-fPIC.patch BuildRequires: asciidoc BuildRequires: ca-certificates @@ -62,6 +66,7 @@ This package contains include files and pc file for weechat. %prep %setup -q -n %{name}-%{version} +%patch0 -p1 find doc/ -type f -name 'CMakeLists.txt' \ -exec sed -i -e 's#${PROJECT_NAME}#%{_doc}#g' '{}' \; @@ -115,6 +120,10 @@ popd %changelog +* Sat Jan 17 2015 Mamoru TASAKA - 1.0.1-3 +- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2 +- Build plugins with -fPIC + * Wed Oct 22 2014 Jamie Nguyen - 1.0.1-2 - fix default ca-bundle.crt location (#1151748)