mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-01-23 14:32:15 +08:00
zip and unzip
This commit is contained in:
parent
6ecbf20b07
commit
c9225d594e
58
SPECS/unzip.spec
Normal file
58
SPECS/unzip.spec
Normal file
@ -0,0 +1,58 @@
|
||||
%global unzipv 6.0
|
||||
%global nodotunzipv 60
|
||||
|
||||
Name: unzip
|
||||
Version: %{unzipv}
|
||||
Release: %{?repo}0.rc1%{?dist}
|
||||
Summary: List, test, extract files from a .zip archive
|
||||
|
||||
Group: System Environment/Utilities
|
||||
License: Info-ZIP
|
||||
URL: https://infozip.sourceforge.net/UnZip.html
|
||||
Source0: https://downloads.sourceforge.net/infozip/unzip%{nodotunzipv}.tar.gz
|
||||
Patch0: https://www.linuxfromscratch.org/patches/blfs/11.3/unzip-6.0-consolidated_fixes-1.patch
|
||||
|
||||
BuildRequires: libbz2-devel
|
||||
|
||||
%description
|
||||
UnZip is an extraction utility for archives compressed in .zip format
|
||||
(also called "zipfiles"). Although highly compatible both with PKWARE's
|
||||
PKZIP and PKUNZIP utilities for MS-DOS and with Info-ZIP's own Zip
|
||||
program, our primary objectives have been portability and non-MSDOS
|
||||
functionality.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}%{nodotunzipv}
|
||||
%patch 0 -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} -f unix/Makefile generic
|
||||
|
||||
|
||||
%install
|
||||
make prefix=%{buildroot}%{_prefix} \
|
||||
MANDIR=%{buildroot}%{_mandir}/man1 \
|
||||
-f unix/Makefile install
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%attr(0755,root,root) %{_bindir}/funzip
|
||||
%attr(0755,root,root) %{_bindir}/unzip
|
||||
%attr(0755,root,root) %{_bindir}/unzipsfx
|
||||
%attr(0755,root,root) %{_bindir}/zipgrep
|
||||
%attr(0755,root,root) %{_bindir}/zipinfo
|
||||
%attr(0644,root,root) %{_mandir}/man1/funzip.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/unzip.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/unzipsfx.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/zipgrep.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/zipinfo.1*
|
||||
%license LICENSE COPYING.OLD
|
||||
%doc BUGS COPYING.OLD LICENSE README ToDo
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon May 1 2023 Michael A. Peters <anymouseprophet@gmail.com> - 6.0-0.rc1
|
||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
61
SPECS/zip.spec
Normal file
61
SPECS/zip.spec
Normal file
@ -0,0 +1,61 @@
|
||||
%global zipv 3.0
|
||||
%global nodotzipv 30
|
||||
|
||||
Name: zip
|
||||
Version: %{zipv}
|
||||
Release: %{?dist}0.rc1%{?dist}
|
||||
Summary: Utilities for creating .zip archives
|
||||
|
||||
Group: System Environment/Utilities
|
||||
License: Info-ZIP
|
||||
URL: https://infozip.sourceforge.net/Zip.html
|
||||
Source0: https://downloads.sourceforge.net/infozip/zip%{nodotzipv}.tar.gz
|
||||
|
||||
BuildRequires: libbz2-devel
|
||||
|
||||
%description
|
||||
Zip is useful for packaging a set of files for distribution, for archiving
|
||||
files, and for saving disk space by temporarily compressing unused files
|
||||
or directories. Zip puts one or more compressed files into a single ZIP
|
||||
archive, along with information about the files (name, path, date, time
|
||||
of last modification, protection, and check information to verify file
|
||||
integrity). An entire directory structure can be packed into a ZIP
|
||||
archive with a single command.
|
||||
|
||||
Zip has one compression method (deflation) and can also store files
|
||||
without compression. Zip automatically chooses the better of the two
|
||||
for each file. Compression ratios of 2:1 to 3:1 are common for text
|
||||
files.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}%{nodotzipv}
|
||||
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} -f unix/Makefile generic_gcc
|
||||
|
||||
|
||||
%install
|
||||
make prefix=%{buildroot}%{_prefix} \
|
||||
MANDIR=%{buildroot}%{_mandir}/man1 \
|
||||
-f unix/Makefile install
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%attr(0755,root,root) %{_bindir}/zip
|
||||
%attr(0755,root,root) %{_bindir}/zipcloak
|
||||
%attr(0755,root,root) %{_bindir}/zipnote
|
||||
%attr(0755,root,root) %{_bindir}/zipsplit
|
||||
%attr(0644,root,root) %{_mandir}/man1/zip.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/zipcloak.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/zipnote.1*
|
||||
%attr(0644,root,root) %{_mandir}/man1/zipsplit.1*
|
||||
%license LICENSE
|
||||
%doc BUGS CHANGES LICENSE README* TODO WHATSNEW
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon May 1 2023 Michael A. Peters <anymouseprophet@gmail.com> - 3.0-0.rc1
|
||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
Loading…
Reference in New Issue
Block a user