Change sources of ncompress
This commit is contained in:
parent
a7351294ef
commit
25a7c2905d
@ -1,41 +1,10 @@
|
||||
Summary: Fast compression and decompression utilities
|
||||
Name: ncompress
|
||||
Version: 4.2.4.4
|
||||
Release: 21%{?dist}
|
||||
Version: 5.0
|
||||
Release: 1%{?dist}
|
||||
License: Public Domain
|
||||
URL: http://ncompress.sourceforge.net/
|
||||
Source: http://prdownloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
|
||||
|
||||
# allow to build ncompress
|
||||
# ~> downstream
|
||||
Patch0: ncompress-4.2.4.4-make.patch
|
||||
|
||||
# from dist-git commit 0539779d937
|
||||
# (praiskup: removed redundant part as -DNOFUNCDEF is defined)
|
||||
# ~> downstream
|
||||
Patch1: ncompress-4.2.4.4-lfs.patch
|
||||
|
||||
# exit when too long filename is given (do not segfault)
|
||||
# ~> #unknown
|
||||
# ~> downstream
|
||||
Patch2: ncompress-4.2.4.4-filenamelen.patch
|
||||
|
||||
# permit files > 2GB to be compressed
|
||||
# ~> #126775
|
||||
Patch3: ncompress-4.2.4.4-2GB.patch
|
||||
|
||||
# do not fail to compress on ppc/s390x
|
||||
# ~> #207001
|
||||
Patch4: ncompress-4.2.4.4-endians.patch
|
||||
|
||||
# use memmove instead of memcpy
|
||||
# ~> 760657
|
||||
# ~> downstream
|
||||
Patch5: ncompress-4.2.4.4-memmove.patch
|
||||
|
||||
# silence gcc warnings
|
||||
# ~> downstream
|
||||
Patch6: ncompress-4.2.4.4-silence-gcc.patch
|
||||
URL: https://github.com/vapier/%{name}
|
||||
Source: https://github.com/vapier/%{name}/archive/refs/tags/v%{version}.tar.gz
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
@ -53,29 +22,7 @@ which are compatible with the original UNIX compress utility.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
# configure build system
|
||||
# ~> downstream
|
||||
%patch0 -p1 -b .configure-buildsystem
|
||||
|
||||
%ifarch sparc m68k armv4l ppc s390 s390x ppc64 sparc64
|
||||
ARCH_FLAGS="$ARCH_FLAGS -DBYTEORDER=1234"
|
||||
%endif
|
||||
|
||||
%ifarch alpha ia64
|
||||
ARCH_FLAGS="$ARCH_FLAGS -DNOALLIGN=0"
|
||||
%endif
|
||||
|
||||
sed "s/\$(ARCH_FLAGS)/$ARCH_FLAGS/" Makefile.def > Makefile
|
||||
|
||||
%patch1 -p1 -b .lfs
|
||||
%patch2 -p1 -b .filenamelen
|
||||
%patch3 -p1 -b .2GB
|
||||
%patch4 -p1 -b .endians
|
||||
%patch5 -p1 -b .memmove
|
||||
%patch6 -p1 -b .silence-gcc
|
||||
|
||||
%autosetup -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
make CFLAGS="%{optflags} %{?nc_endian} %{?nc_align} %{build_ldflags}"
|
||||
@ -94,10 +41,16 @@ ln -sf compress.1 $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1
|
||||
%{_bindir}/compress
|
||||
%{_bindir}/uncompress
|
||||
%{_mandir}/man1/*
|
||||
%doc LZW.INFO README
|
||||
%doc LZW.INFO README.md
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed May 18 2022 Ondrej Sloup <osloup@redhat.com> - 5.0-1
|
||||
- Use autosetup
|
||||
- Change source links
|
||||
- Remove patch files
|
||||
- Rebase to the latest upstream version (rhbz#1924029)
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.4.4-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user