fix FTBFS - missing gcc

Resolves: rhbz#1604928
Version: 4.2.4.4-14
This commit is contained in:
Pavel Raiskup 2018-07-20 08:37:12 +02:00
parent 44aaa39daf
commit e558c407bc

View File

@ -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 <praiskup@redhat.com> - 4.2.4.4-14
- fix FTBFS (missing gcc), rhbz#1604928
- cleanup rpmlint issues
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 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 <pvrabec@redhat.com>
- rebuilt
* Thu Feb 08 2005 Peter Vrabec <pvrabec@redhat.com>
* Thu Feb 10 2005 Peter Vrabec <pvrabec@redhat.com>
- rebuilt
* Tue Oct 05 2004 Than Ngo <than@redhat.com> 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 <notting@redhat.com>
* Fri May 5 2000 Bill Nottingham <notting@redhat.com>
- fix "build" for ia64
* Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
@ -292,7 +301,7 @@ ln -sf compress.1 $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr
* Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com>
* Wed Oct 22 1997 Cristian Gafton <gafton@redhat.com>
- fixed the spec file
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>