ncompress/ncompress.spec
2019-09-30 11:09:28 -04:00

79 lines
2.0 KiB
RPMSpec

Name: ncompress
Version: 4.2.4.4
Release: 18
Summary: A fast, simple LZW file compressor
License: Public Domain
URL: http://ncompress.sourceforge.net/
Source0: https://github.com/vapier/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: %{name}-4.2.4.4-make.patch
Patch1: %{name}-4.2.4.4-lfs.patch
Patch2: %{name}-4.2.4.4-filenamelen.patch
Patch3: %{name}-4.2.4.4-2GB.patch
Patch4: %{name}-4.2.4.4-endians.patch
Patch5: %{name}-4.2.4.4-memmove.patch
Patch6: %{name}-4.2.4.4-silence-gcc.patch
Patch6000: ncompress-compression-with-9-bits-don-t-work.patch
BuildRequires: git gcc glibc-devel
%description
Compress is a fast, simple LZW file compressor. Compress does not have the highest
compression rate, but it is one of the fastest programs to compress data. Compress
is the defacto standard in the UNIX community for compressing files.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
make CFLAGS="%{optflags} %{build_ldflags}"
%install
install -D -p compress %{buildroot}%{_bindir}/compress
ln -sf compress %{buildroot}%{_bindir}/uncompress
install -D -p compress.1 %{buildroot}%{_mandir}/man1/compress.1
ln -sf compress.1 %{buildroot}%{_mandir}/man1/uncompress.1
%files
%defattr(-,root,root)
%doc LZW.INFO
%attr(755,root,root) %{_bindir}/compress
%{_bindir}/uncompress
%files help
%defattr(-,root,root)
%doc README Changes
%{_mandir}/man1/*.gz
%changelog
* Sat Sep 21 2019 shenyangyang<shenyangyang4@huawei.com> - 4.2.4.4-18
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise description
* Thu Aug 22 2019 shenyangyang<shenyangyang4@huawei.com> - 4.2.4.4-17
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:strenthen spec
* Wed Aug 21 2019 fangyufa<fangyufa1@huawei.com> - 4.2.4.4-16
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify name of patch
* Fri May 3 2019 hexiaowen<hexiaowen@huawei.com> - 4.2.4.4-15
- Type:bugfix
- ID:NA
- SUG:restart
- DESC:compression with 9 bits don't work
* Wed Aug 22 2018 openEuler Buildteam <buildteam@openeuler.org> - 4.2.4.4-14
- Package init