From e558c407bc1ddd97fd95d8f4917e81c43705d93b Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 20 Jul 2018 08:37:12 +0200 Subject: [PATCH] fix FTBFS - missing gcc Resolves: rhbz#1604928 Version: 4.2.4.4-14 --- ncompress.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/ncompress.spec b/ncompress.spec index a4401a5..06a1a7c 100644 --- a/ncompress.spec +++ b/ncompress.spec @@ -1,9 +1,8 @@ Summary: Fast compression and decompression utilities Name: ncompress Version: 4.2.4.4 -Release: 13%{?dist} +Release: 14%{?dist} License: Public Domain -Group: Applications/File URL: http://ncompress.sourceforge.net/ Source: http://prdownloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz @@ -38,6 +37,7 @@ Patch5: ncompress-4.2.4.4-memmove.patch # ~> downstream Patch6: ncompress-4.2.4.4-silence-gcc.patch +BuildRequires: gcc BuildRequires: glibc-devel %description @@ -50,6 +50,7 @@ compressed files. Install ncompress if you need compression/decompression utilities which are compatible with the original UNIX compress utility. + %prep %setup -q @@ -74,9 +75,11 @@ sed "s/\$(ARCH_FLAGS)/$ARCH_FLAGS/" Makefile.def > Makefile %patch5 -p1 -b .memmove %patch6 -p1 -b .silence-gcc + %build make CFLAGS="%{optflags} %{?nc_endian} %{?nc_align} %{build_ldflags}" + %install mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 @@ -85,13 +88,19 @@ ln -sf compress $RPM_BUILD_ROOT/%{_bindir}/uncompress install -p -m644 compress.1 $RPM_BUILD_ROOT%{_mandir}/man1 ln -sf compress.1 $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1 + %files %{_bindir}/compress %{_bindir}/uncompress %{_mandir}/man1/* %doc LZW.INFO README + %changelog +* Fri Jul 20 2018 Pavel Raiskup - 4.2.4.4-14 +- fix FTBFS (missing gcc), rhbz#1604928 +- cleanup rpmlint issues + * Fri Jul 13 2018 Fedora Release Engineering - 4.2.4.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild @@ -201,7 +210,7 @@ ln -sf compress.1 $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1 * Fri Mar 18 2005 Peter Vrabec - rebuilt -* Thu Feb 08 2005 Peter Vrabec +* Thu Feb 10 2005 Peter Vrabec - rebuilt * Tue Oct 05 2004 Than Ngo 4.2.4-40 @@ -273,7 +282,7 @@ ln -sf compress.1 $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1 - update URL - use %%{_mandir} -* Wed May 5 2000 Bill Nottingham +* Fri May 5 2000 Bill Nottingham - fix "build" for ia64 * Mon Feb 7 2000 Bill Nottingham @@ -292,7 +301,7 @@ ln -sf compress.1 $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1 * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr -* Wed Oct 21 1997 Cristian Gafton +* Wed Oct 22 1997 Cristian Gafton - fixed the spec file * Mon Jun 02 1997 Erik Troan