Compare commits

..

85 commits

Author SHA1 Message Date
LuK1337
626f673e8d
Update to 4.10.0 2026-08-02 11:49:00 +02:00
LuK1337
7b3122737c
Update to 4.9.5 2026-07-28 09:43:32 +02:00
Python Maint
d9be79b453 Rebuilt for Python 3.15.0b4 ABI change 2026-07-24 12:56:51 +02:00
Jitka Plesnikova
7c0dce3d64 Perl 5.44 rebuild 2026-07-23 17:34:56 +02:00
Python Maint
65d9493e21 Rebuilt for Python 3.15.0b4 ABI change 2026-07-22 10:15:43 +02:00
LuK1337
c92b4c02c2
Update to 4.9.4 2026-07-19 15:51:36 +02:00
Fedora Release Engineering
3345c1effa Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:45:30 +00:00
LuK1337
7b9ea9886c
Update to 4.9.3 2026-07-05 17:36:00 +02:00
LuK1337
0959b32972
Update to 4.9.2 2026-06-07 12:13:33 +02:00
Python Maint
0d98fd8362 Rebuilt for Python 3.15 2026-06-03 21:19:46 +02:00
LuK1337
f022dee127
Update to 4.9.1 2026-05-31 18:12:42 +02:00
LuK1337
ba0dc67367
Update to 4.9.0 2026-03-29 18:02:58 +02:00
LuK1337
656a588795
Drop unnecessary -DPREFIX cmake arg
This is technically already done via the -DCMAKE_INSTALL_PREFIX.
2026-03-29 15:56:27 +02:00
LuK1337
83c238c317
Update to 4.8.2 2026-03-09 15:54:56 +01:00
Fedora Release Engineering
d6f132c881 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 20:11:12 +00:00
3672ba3b51 Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_4.0 2026-01-08 19:51:35 +09:00
LuK1337
8d129f91cc
Update to 4.8.1 2025-12-01 19:51:12 +01:00
LuK1337
979b564bc3
Update to 4.8.0 2025-12-01 19:50:46 +01:00
LuK1337
c71d759f2a
Update to 4.7.2 2025-11-23 11:45:40 +01:00
LuK1337
755eb84966
Update to 4.7.1 2025-08-16 23:42:39 +02:00
Fedora Release Engineering
6a2e2cbebc Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 20:21:56 +00:00
LuK1337
2dd1425631
Update to 4.7.0 2025-07-19 14:31:49 +02:00
Jitka Plesnikova
ece8498317 Perl 5.42 rebuild 2025-07-07 16:42:25 +02:00
Python Maint
c085568ef0 Rebuilt for Python 3.14 2025-06-02 21:24:46 +02:00
LuK1337
dd870bc995
Update to 4.6.3 2025-05-11 11:38:38 +02:00
LuK1337
2c21d68f48
Update to 4.6.2 2025-04-18 22:10:13 +02:00
LuK1337
5a8625ca7e
Update to 4.6.1 2025-04-09 14:45:54 +02:00
LuK1337
313ca390c4
Update to 4.6.0 2025-03-23 11:46:23 +01:00
LuK1337
9d9eaacd1b
Update to 4.5.2 2025-02-20 23:46:49 +01:00
LuK1337
5405b82ade
Cherry pick #2229, #2230 from upstream 2025-01-26 09:34:51 +01:00
Fedora Release Engineering
05f2564cc5 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:54:23 +00:00
fb7bf368f6 Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.4 2025-01-08 15:14:36 +09:00
LuK1337
d76f31c399
Update to 4.5.1 2024-12-23 09:41:22 +01:00
LuK1337
608cec8d10
Update to 4.5.0 2024-12-15 10:56:07 +01:00
LuK1337
93fb4d2f56
Fix leftover cmake3 macro usage 2024-12-02 11:08:12 +01:00
LuK1337
ad8db69a91
Sort BuildRequires alphabetically 2024-12-02 11:07:10 +01:00
LuK1337
39c21a6c97
Use guile30-devel unconditionally 2024-12-02 11:06:55 +01:00
LuK1337
fcde101efd
Remove __cmake_in_source_build undefine 2024-12-02 11:01:56 +01:00
LuK1337
c45e579cff
Enable tests unconditionally 2024-12-02 11:01:46 +01:00
LuK1337
aee96642ad
Enable docs unconditionally 2024-12-02 11:00:03 +01:00
LuK1337
cdb39906f1
Remove hacks for unversioned docs 2024-12-02 10:59:44 +01:00
LuK1337
5a255adb11
Update to 4.4.4 2024-11-30 11:38:27 +01:00
LuK1337
7ba867d893
Switch away from cmake3 2024-11-30 11:38:27 +01:00
LuK1337
1a5df1bb3c
Replace -- -V in ctest3 args with --verbose
+ /usr/bin/ctest --test-dir redhat-linux-build --output-on-failure --force-new-ctest-process -j24 -- -V
CMake Error: Unknown argument: --
CMake Error: Run 'ctest --help' for all supported options.
2024-11-30 11:38:27 +01:00
LuK1337
a57df78225
Update to 4.4.3 2024-10-30 13:40:06 +01:00
LuK1337
05ce0675ef
Update to 4.4.2 2024-09-08 14:43:06 +02:00
LuK1337
d143639445
Update to 4.4.1 2024-08-19 21:47:41 +02:00
LuK1337
b542f8a6f9
Remove autogenerated license comment 2024-08-02 15:45:38 +02:00
LuK1337
9891fae0a1
Fix guile30-devel build guard
It's only available as of Fedora 35.
2024-08-02 15:44:17 +02:00
Peter Robinson
33d334710c Build against guile 3.0 2024-07-30 19:54:23 +01:00
Miroslav Suchý
69f6e36555 convert GPLv3 license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-29 14:45:35 +02:00
Fedora Release Engineering
0f14e1b4cc Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 09:15:01 +00:00
LuK1337
83ecf2238c
Update to 4.3.5 2024-07-17 02:14:00 +02:00
LuK1337
29cd67e21b
Update to 4.3.4 2024-07-03 22:57:17 +02:00
LuK1337
b43efb79fa
Verify source code with GPG 2024-06-22 22:58:28 +02:00
LuK1337
053b24483d
Use https for source URL 2024-06-22 22:55:22 +02:00
LuK1337
4f720c1ff4
Update to 4.3.3 2024-06-22 11:58:35 +02:00
Jitka Plesnikova
635a8d9d48 Perl 5.40 rebuild 2024-06-12 13:00:13 +02:00
Python Maint
2693d84853 Rebuilt for Python 3.13 2024-06-07 21:58:19 +02:00
LuK1337
f57538105b
Cherry-pick #2132 from upstream
Fixes tests in fedora-41-aarch64 chroot environment.
2024-06-07 13:06:49 +02:00
Python Maint
0d87425e85 Rebuilt for Python 3.13 2024-06-07 09:52:01 +02:00
LuK1337
187e2f1f78
Update to 4.3.2 2024-06-07 09:12:13 +02:00
LuK1337
a92676098e
Update to 4.3.1 2024-05-31 16:47:12 +02:00
LuK1337
a96ee958e3
Replace local -fPIC patch with an upstrem equivalent 2024-05-28 08:35:25 +02:00
LuK1337
03ad5a98b6
Remove unnecessary cmake option
Has been removed since v3.2-rc1.
2024-05-28 08:03:23 +02:00
LuK1337
fd5abe9290
Fix i386 build 2024-05-26 15:59:35 +02:00
LuK1337
5473dfe70a
Update to 4.3.0 2024-05-26 14:14:40 +02:00
LuK1337
578fee31b6
Update to 4.2.2 2024-04-08 20:01:04 +02:00
Fedora Release Engineering
692b7c2dff Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 08:36:13 +00:00
LuK1337
6d09b4a005 Update to 4.2.1 2024-01-22 19:31:01 +01:00
f7ef6c761e Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.3 2024-01-03 22:16:57 +09:00
LuK1337
9c9bcd7844 Update to 4.1.2 2023-12-04 15:56:39 +01:00
LuK1337
c4f0b62181 Update to 4.1.1 2023-10-27 19:47:10 +02:00
LuK1337
b231cc7442 Update to 4.1.0
* Reenable tests on s390x, because those work now since
  https://github.com/weechat/weechat/pull/2021
* Remove unnecessary cmake/FindPython.cmake edit
* Unset ENABLE_JAVASCRIPT (and remove v8-devel dependency) since it's
  off by default
2023-10-15 23:49:12 +02:00
LuK1337
96405f014a Update to 4.0.5 2023-09-24 18:38:53 +02:00
LuK1337
2c450d8b63 Revert "Reenable PHP plugins support"
Looks like php-embed is not working properly at the moment.

This reverts commit 1465126ece.
2023-08-23 23:09:26 +02:00
LuK1337
1465126ece Reenable PHP plugins support 2023-08-22 16:22:26 +02:00
LuK1337
045b4c8b8c Update to 4.0.4
* Unset ENABLE_PYTHON3 while at it, since it's the default.
* Set ENABLE_DOC_INCOMPLETE=ON since we are disabling PHP plugin
  support.
2023-08-22 16:22:26 +02:00
Fedora Release Engineering
b7ad32ac83 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 18:06:51 +00:00
Jitka Plesnikova
c1ad3ecc71 Perl 5.38 rebuild 2023-07-11 15:48:31 +02:00
Python Maint
dc1b183986 Rebuilt for Python 3.12 2023-06-13 21:39:17 +02:00
e76eafd35e Backport upstream patch to fix test suite crash on gui_chat_printf_y_date_tags with glibc 2.37 (bug 2170010) 2023-02-24 15:09:01 +09:00
Fedora Release Engineering
384e8258be Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:44:06 +00:00
eda131c2d5 Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.2 2023-01-04 15:23:42 +09:00
a215e4f9a5
Restore compatibility with EPEL 7
- use %cmake3 rather than %cmake macros
- conditionally disable tests on EPEL < 8

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
2022-10-06 17:27:05 -05:00
7 changed files with 75 additions and 135 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/weechat-*.tar.xz
/weechat-*.tar.xz.asc

View file

@ -0,0 +1,51 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
xsFNBFCCu4cBEADNDLretQkViqptiL275IKrc+VaGvUAIfFZoNTZHYrBAGCFNU++
bXMqVxXM6QFhyXDbVSTAbl0gdmMPEQzi3ErtatyMsH3PDhU6mxLjwc61/P2JWNVf
4JGgEaqM/Gb0KEFnOWHGH1IDGMAxCL/duch8D3XrODOxqxCVLn/yFpjCANr9sXfh
V+K05KIvTE3ar8SZjVDH3APmdFYv2KSs01aoR+Zj0MIdJKgBIPUKod8VodH03RTu
ob4I1jocMad56hsMJk3NE179xxDA+DN7muIzv2yY+bw2EId+PhmvArKWgwFOvhmU
TTYNA5UOzC9jvzxVI/4g1ERImXXGdYBX9SllY5hqkk36EFch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lop7rHKhrhZ+6eenPIAcoVUEK1aef57VItcSmT3IAMbrkMZaCX8MEQW
GMdBt/gOfPmkmmGwEvFqkyBoerHYmgaB4SOFwjWgrgMBiuihUGZZfdJviF+NB687
67/ikvot/ACSOzsB2BslNh6jGPwOUdRE4b/B1CtDm7Ukb+w1RbumQCtO1M64mh9w
bPp8bnjvS5OW1E0gEqZFoXNJPYUV35IubWeOL2+LPltJE5p9nzTtvyXG2aJhlnW5
SpN7b/OD0wSu0STxdbmUTJ1WFz7P8HhmT1d5cRS8Q/5IjwWJRAyoyY/CBEYjz+Fs
eFF2jvxWceJHsTo7KhKLVAcB5tAqAdbpkbEF65FDzsFQz5Ql+C3TiQaNHRrHyrUl
g/NqrZmPiNTvjp3Mh5yj5e8mkOR/96YuHjF72YWnybVCt5+olFrr9v0+uCJU168O
bZlCOWLXBLOqK0Z0
=MySb
-----END PGP PUBLIC KEY BLOCK-----

View file

@ -1 +1,2 @@
SHA512 (weechat-3.6.tar.xz) = a6451e821244d47cbd10255287d67815d8d37b000ee031c1f1ebb3af6a42c6997ee7b8468bf42530d8b3162b7f9e8e557a549ce4059668c3a94ff9dc1d70ad06
SHA512 (weechat-4.10.0.tar.xz) = bba7597bbc83ffe6a4bf59dfbdb03d622a1f0c023bc27f1d417610e2ab84dea7ca68e03b0a6de276464bc35e69ff8b733de3f965142938423db978a2abdf98ae
SHA512 (weechat-4.10.0.tar.xz.asc) = 8a8dd8e18e3a27c785b54c2ad573e494d1d49b9f98268e208e34767b4ef702c045c4723ddf03527c33088aa81778cddab02a9b8ded3c8fb33cdad72484b44717

View file

@ -1,11 +0,0 @@
--- 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()

View file

@ -1,23 +0,0 @@
diff -ruN weechat-3.4/tests/tests.cpp weechat-3.4-disable-memleak-detection/tests/tests.cpp
--- weechat-3.4/tests/tests.cpp 2021-12-17 23:57:32.000000000 -0800
+++ weechat-3.4-disable-memleak-detection/tests/tests.cpp 2022-01-14 16:36:08.330205164 -0800
@@ -49,6 +49,7 @@
}
#include "CppUTest/CommandLineTestRunner.h"
+#include "CppUTest/MemoryLeakWarningPlugin.h"
#define LOCALE_TESTS "en_US.UTF-8"
@@ -330,6 +331,11 @@
return 1;
}
+ /* this fails on basically every test right now
+ * see https://cpputest.github.io/manual.html#turning-memory-leak-detection-off-and-on
+ */
+ MemoryLeakWarningPlugin::turnOffNewDeleteOverloads();
+
/* clean WeeChat home */
dir_exec_on_files (WEECHAT_TESTS_HOME, 1, 1, &exec_on_files_cb, NULL);

View file

@ -1,12 +0,0 @@
diff -ruN weechat-3.4/tests/CMakeLists.txt weechat-3.4-tests-fPIC/tests/CMakeLists.txt
--- weechat-3.4/tests/CMakeLists.txt 2021-12-17 23:57:32.000000000 -0800
+++ weechat-3.4-tests-fPIC/tests/CMakeLists.txt 2022-01-14 15:34:23.072801796 -0800
@@ -22,6 +22,8 @@
remove_definitions(-DHAVE_CONFIG_H)
include_directories(${CPPUTEST_INCLUDE_DIRS} ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR})
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+
# unit tests (core)
set(LIB_WEECHAT_UNIT_TESTS_CORE_SRC
unit/core/test-core-arraylist.cpp

View file

@ -1,93 +1,44 @@
%ifnarch s390x
%bcond_without check
%else
# some tests fail on s390x
%bcond_with check
%endif
%if 0%{?fedora} || 0%{?rhel} < 8
%bcond_without docs
%else
# TODO: package rubygem-asciidoctor
%bcond_with docs
%endif
%if 0%{?rhel} && 0%{?rhel} < 9
%undefine __cmake_in_source_build
%endif
%global __provides_exclude_from ^%{_libdir}/weechat/plugins/.*$
%if %{?_pkgdocdir:1}0
%if 0%{?rhel}
%global _doc %{name}-%{version}
%else
%global _doc %{name}
%endif
%else
%global _doc %{name}-%{version}
%global _pkgdocdir %{_docdir}/%{_doc}
%endif
Name: weechat
Version: 3.6
Version: 4.10.0
Release: %autorelease
Summary: Portable, fast, light and extensible IRC client
Group: Applications/Communications
URL: http://weechat.org
License: GPLv3
License: GPL-3.0-only
Source: http://weechat.org/files/src/%{name}-%{version}.tar.xz
# /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
Patch1: weechat-3.4-tests-fPIC.patch
# this fails on too many tests, we want to let them finish anyway
Patch2: weechat-3.4-disable-memleak-detection.patch
Source: https://weechat.org/files/src/%{name}-%{version}.tar.xz
Source1: https://weechat.org/files/src/%{name}-%{version}.tar.xz.asc
Source2: https://keys.openpgp.org/vks/v1/by-fingerprint/A9AB5AB778FA5C3522FD0378F82F4B16DEC408F8
BuildRequires: gcc
%if %{with check}
BuildRequires: cpputest-devel
BuildRequires: glibc-langpack-en
%endif
%if %{with docs}
BuildRequires: asciidoctor
%endif
BuildRequires: ca-certificates
BuildRequires: cjson-devel
BuildRequires: cmake
BuildRequires: cpputest-devel
BuildRequires: docbook-style-xsl
BuildRequires: enchant-devel
BuildRequires: enchant2-devel
BuildRequires: gcc
BuildRequires: gettext
BuildRequires: glibc-langpack-en
BuildRequires: gnupg2
BuildRequires: gnutls-devel
%if 0%{?fedora} >= 30 || 0%{?rhel} > 8
BuildRequires: guile22-devel
%else
BuildRequires: guile-devel
%endif
BuildRequires: guile30-devel
BuildRequires: libcurl-devel
BuildRequires: libgcrypt-devel
BuildRequires: libzstd-devel
BuildRequires: lua-devel
BuildRequires: ncurses-devel
BuildRequires: perl-ExtUtils-Embed
BuildRequires: perl-devel
BuildRequires: perl-ExtUtils-Embed
BuildRequires: pkgconfig
BuildRequires: python3-devel
BuildRequires: ruby
BuildRequires: ruby-devel
BuildRequires: source-highlight
BuildRequires: tcl-devel
BuildRequires: libzstd-devel
%ifarch %{ix86} x86_64 %{arm}
# https://bugzilla.redhat.com/show_bug.cgi?id=1338728
# https://github.com/weechat/weechat/issues/360
%if 0%{?rhel} && 0%{?rhel} < 8
BuildRequires: v8-devel
%endif
%endif
BuildRequires: zlib-devel
%if 0%{?rhel}
BuildRequires: cmake3
%endif
Requires: hicolor-icon-theme
@ -110,34 +61,19 @@ This package contains include files and pc file for weechat.
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -p1 -n %{name}-%{version}
find doc/ -type f -name 'CMakeLists.txt' \
-exec sed -i -e 's#${PROJECT_NAME}#%{_doc}#g' '{}' \;
sed -i 's/NAMES python3.7/NAMES python%{python3_version}m python%{python3_version}/' cmake/FindPython.cmake
%build
%cmake3 \
-DPREFIX=%{_prefix} \
%cmake \
-DLIBDIR=%{_libdir} \
-DENABLE_ENCHANT=ON \
-DENABLE_PYTHON3=ON \
-DENABLE_PHP=OFF \
%if %{with check}
-DENABLE_TESTS=ON \
%else
-DENABLE_TESTS=OFF \
%endif
%if %{with docs}
-DENABLE_DOC=ON \
-DENABLE_DOC_INCOMPLETE=ON \
-DENABLE_MAN=ON \
%else
-DENABLE_DOC=OFF \
-DENABLE_MAN=OFF \
%endif
-DENABLE_JAVASCRIPT=OFF \
-DCA_FILE=/etc/pki/tls/certs/ca-bundle.crt \
%{nil}
%cmake_build
@ -148,14 +84,13 @@ sed -i 's/NAMES python3.7/NAMES python%{python3_version}m python%{python3_versio
%find_lang %name
%if %{with check}
%ctest -- -V
%endif
%check
%ctest --verbose
%files -f %{name}.lang
%doc AUTHORS.adoc ChangeLog.adoc Contributing.adoc
%doc README.adoc ReleaseNotes.adoc
%doc AUTHORS.md CHANGELOG.md CONTRIBUTING.md
%doc README.md UPGRADING.md
%license COPYING
%{_bindir}/%{name}-curses
%{_bindir}/%{name}
@ -168,13 +103,11 @@ sed -i 's/NAMES python3.7/NAMES python%{python3_version}m python%{python3_versio
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%{_datadir}/icons/hicolor/512x512/apps/%{name}.png
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%if 0%{?fedora} || 0%{?rhel} < 8
%{_pkgdocdir}/weechat_*.html
%{_mandir}/man1/weechat.1*
%{_mandir}/*/man1/weechat.1*
%{_mandir}/man1/%{name}-headless.1*
%{_mandir}/*/man1/%{name}-headless.1*
%endif
%files devel
%dir %{_includedir}/%{name}