diff --git a/lftp-4.9.2-cdefs.patch b/lftp-4.9.2-cdefs.patch new file mode 100644 index 0000000..c4a9ed6 --- /dev/null +++ b/lftp-4.9.2-cdefs.patch @@ -0,0 +1,13 @@ +diff --git a/lib/libc-config.h.old b/lib/libc-config.h +index 1300c3a..7537bab 100644 +--- a/lib/libc-config.h.old ++++ b/lib/libc-config.h +@@ -156,7 +156,7 @@ + #undef __warndecl + + /* Include our copy of glibc . */ +-#include ++#include + + /* __inline is too pessimistic for non-GCC. */ + #undef __inline diff --git a/lftp.spec b/lftp.spec index a6bc533..28854d0 100644 --- a/lftp.spec +++ b/lftp.spec @@ -1,7 +1,7 @@ Summary: A sophisticated file transfer program Name: lftp Version: 4.9.2 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3+ Source0: http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz URL: http://lftp.yar.ru/ @@ -11,6 +11,7 @@ BuildRequires: desktop-file-utils BuildRequires: make Patch1: lftp-4.0.9-date_fmt.patch +Patch2: lftp-4.9.2-cdefs.patch %description LFTP is a sophisticated ftp/http file transfer program. Like bash, it has job @@ -30,6 +31,9 @@ Utility scripts for use with lftp. %setup -q %patch1 -p1 -b .date_fmt +%ifarch ppc64le +%patch2 -p1 -b .cdefs +%endif #sed -i.rpath -e '/lftp_cv_openssl/s|-R.*lib||' configure sed -i.norpath -e \ @@ -92,6 +96,9 @@ desktop-file-install \ %changelog +* Mon Feb 07 2022 Michal Ruprich - 4.9.2-5 +- Fix for FTBFS(rhbz#2045780) + * Thu Jan 20 2022 Fedora Release Engineering - 4.9.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild