From 85c5aa32012f9578adfc8c8aba9c7dddde5839a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Fri, 13 Oct 2023 16:45:53 +0200 Subject: [PATCH] fix FTBFS in Fedora Rawhide Resolves: rhbz#2243829 --- lynx.spec | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lynx.spec b/lynx.spec index 81b03c5..4680698 100644 --- a/lynx.spec +++ b/lynx.spec @@ -3,7 +3,7 @@ Summary: A text-based Web browser Name: lynx Version: 2.9.0 -Release: %{devrel}.1%{?dist}.1 +Release: %{devrel}.2%{?dist} License: GPL-2.0-only Source0: https://invisible-mirror.net/archives/lynx/tarballs/lynx%{version}%{devrel}.tar.bz2 @@ -64,6 +64,9 @@ sed -e 's,^STARTFILE:.*,STARTFILE:file:/usr/share/doc/HTML/en-US/index.html,' -i %endif %build +# Fix compilation on F40 +CFLAGS="-D_GNU_SOURCE $CFLAGS" + %configure --libdir=/etc \ --disable-font-switch \ --disable-rpath-hack \ @@ -96,15 +99,14 @@ sed -e 's,^STARTFILE:.*,STARTFILE:file:/usr/share/doc/HTML/en-US/index.html,' -i --with-zlib \ ac_cv_path_RLOGIN=/usr/bin/rlogin -make -C po -make %{?_smp_mflags} +%make_build # remove zero-length tests files to silence rpmlint rm -fv test/X test/nobody %install chmod -x samples/mailto-form.pl -make install DESTDIR=$RPM_BUILD_ROOT +%make_install # remove unneeded files with incompatible encoding rm -f docs/{OS-390.announce,README.jp} @@ -125,7 +127,7 @@ EOF %files -f %{name}.lang %license COPYING -%doc docs README INSTALLATION samples +%doc docs README samples %doc test lynx.hlp lynx_help %{_bindir}/lynx %{_mandir}/man1/lynx.1.* @@ -134,6 +136,9 @@ EOF %config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg %changelog +* Fri Oct 13 2023 Lukáš Zaoral - 2.9.0-dev.12.2 +- fix FTBFS in Fedora Rawhide (rhbz#2243829) + * Thu Jul 20 2023 Fedora Release Engineering - 2.9.0-dev.12.1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild