Sisyphus repository
Last update: 25 march 2019 | SRPMs: 17646 | Visits: 13271712
en ru br
ALT Linux repos
5.0: 5.52-alt5
4.1: 5.52-alt5
4.0: 5.52-alt4.M40
3.0: 5.52-alt1

Group :: Archiving/Compression
RPM: unzip

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: unzip
Version: 6.0
Release: alt2.qa1

Packager: Victor Forsyuk <force at>

Summary: An utility for unpacking zip archives
License: distributable (BSD-based)
Group: Archiving/Compression

%define src_ver %(echo %version|sed "s/\\.//"g)
Patch1: unzip-6.0-alt-natspec.patch

# Automatically added by buildreq on Mon Aug 10 2009

BuildRequires: libnatspec-devel

The unzip utility is used to list, test, or extract files from a zip archive.
Zip archives are commonly found on MS-DOS systems. The zip utility, included in
the zip package, creates zip archives. Zip and unzip are both compatible with
archives created by PKWARE(R)'s PKZIP for MS-DOS, but the programs' options and
default behaviors do differ in some respects.

%setup -n unzip%src_ver
%patch1 -p1
ln -s unix/Makefile .

%__subst 's/1L/1/g' man/*.1

# Let configure emit link flag required for our build instead of useless strip option:

%__subst 's/"-s"/"-lnatspec"/' unix/configure
# Tweak to build with our optimizations and defines:
%define _optlevel 3
%__subst 's/CFLAGS_OPT=.-O3./CFLAGS_OPT="%optflags -DNO_WORKING_ISPRINT -DDATE_FORMAT=DF_YMD"/g' unix/configure
# -DNO_WORKING_ISPRINT fixes ALT bug #21137.

# TODO: build with bzip2 compression method support
# We will use `generic' make target instead of ready made `linux' or `linux_noasm`
# This target allows us to use flags and defines produced by unzip's configure
# script at build time instead of hardcoded for linux target.
%make flags
%make_build -e generic
%make test

mkdir -p %buildroot{%_bindir,%_man1dir}
install -p -m755 %name f%name %{name}sfx unix/zipgrep %buildroot%_bindir
install -p -m644 man/*.1 %buildroot%_man1dir/
ln -s unzip %buildroot%_bindir/zipinfo



Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin