|
|
|
@ -22,10 +22,10 @@ |
|
|
|
## |
|
|
|
## |
|
|
|
|
|
|
|
|
|
|
|
# package versions |
|
|
|
# package versions |
|
|
|
%define V_zip_here 2.32 |
|
|
|
%define V_zip_here 3.00 |
|
|
|
%define V_zip_real 232 |
|
|
|
%define V_zip_real 30 |
|
|
|
%define V_unzip_here 5.52 |
|
|
|
%define V_unzip_here 6.00 |
|
|
|
%define V_unzip_real 552 |
|
|
|
%define V_unzip_real 60 |
|
|
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
# package information |
|
|
|
Name: infozip |
|
|
|
Name: infozip |
|
|
|
@ -38,11 +38,11 @@ Class: BASE |
|
|
|
Group: Archiver |
|
|
|
Group: Archiver |
|
|
|
License: BSD |
|
|
|
License: BSD |
|
|
|
Version: %{V_zip_here}.%{V_unzip_here} |
|
|
|
Version: %{V_zip_here}.%{V_unzip_here} |
|
|
|
Release: 20080101 |
|
|
|
Release: 20130922 |
|
|
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
# list of sources |
|
|
|
Source0: ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/zip%{V_zip_real}.tar.gz |
|
|
|
Source0: ftp://ftp.info-zip.org/pub/infozip/src/zip%{V_zip_real}.tgz |
|
|
|
Source1: ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/unzip%{V_unzip_real}.tar.gz |
|
|
|
Source1: ftp://ftp.info-zip.org/pub/infozip/src/unzip%{V_unzip_real}.tgz |
|
|
|
Patch0: infozip.patch |
|
|
|
Patch0: infozip.patch |
|
|
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
# build information |
|
|
|
@ -57,28 +57,28 @@ PreReq: OpenPKG, openpkg >= 20100101 |
|
|
|
%track |
|
|
|
%track |
|
|
|
prog infozip:unzip = { |
|
|
|
prog infozip:unzip = { |
|
|
|
version = %{V_unzip_real} |
|
|
|
version = %{V_unzip_real} |
|
|
|
url = ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/ |
|
|
|
url = ftp://ftp.info-zip.org/pub/infozip/src/ |
|
|
|
regex = unzip(__VER__)\.tar\.gz |
|
|
|
regex = unzip(__VER__)\.tgz |
|
|
|
} |
|
|
|
} |
|
|
|
prog infozip:zip = { |
|
|
|
prog infozip:zip = { |
|
|
|
version = %{V_zip_real} |
|
|
|
version = %{V_zip_real} |
|
|
|
url = ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/ |
|
|
|
url = ftp://ftp.info-zip.org/pub/infozip/src/ |
|
|
|
regex = [^n]zip(__VER__)\.tar\.gz |
|
|
|
regex = [^n]zip(__VER__)\.tgz |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
%prep |
|
|
|
%setup -q -c |
|
|
|
%setup -q -c |
|
|
|
%setup -q -T -D -a 1 |
|
|
|
%setup -q -T -D -a 1 |
|
|
|
%patch -p0 |
|
|
|
%patch -p0 |
|
|
|
%{l_shtool} subst \ |
|
|
|
|
|
|
|
-e 's;@l_cpp@;%{l_cc} -E;' \ |
|
|
|
|
|
|
|
zip-%{V_zip_here}/unix/configure |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
%build |
|
|
|
( cd zip-%{V_zip_here} |
|
|
|
( cd zip%{V_zip_real} |
|
|
|
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
|
|
|
-e 's;@l_cpp@;%{l_cc} -E;' \ |
|
|
|
|
|
|
|
unix/configure |
|
|
|
%{l_make} %{l_mflags} -f unix/Makefile generic |
|
|
|
%{l_make} %{l_mflags} -f unix/Makefile generic |
|
|
|
) || exit $? |
|
|
|
) || exit $? |
|
|
|
( cd unzip-%{V_unzip_here} |
|
|
|
( cd unzip%{V_unzip_real} |
|
|
|
os=generic |
|
|
|
os=generic |
|
|
|
case "%{l_platform -t}" in |
|
|
|
case "%{l_platform -t}" in |
|
|
|
*-linux* ) os=linux_noasm ;; |
|
|
|
*-linux* ) os=linux_noasm ;; |
|
|
|
@ -91,13 +91,13 @@ PreReq: OpenPKG, openpkg >= 20100101 |
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
%install |
|
|
|
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix} |
|
|
|
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix} |
|
|
|
( cd zip-%{V_zip_here} |
|
|
|
( cd zip%{V_zip_real} |
|
|
|
%{l_make} %{l_mflags} -f unix/Makefile install \ |
|
|
|
%{l_make} %{l_mflags} -f unix/Makefile install \ |
|
|
|
prefix=$RPM_BUILD_ROOT%{l_prefix} \ |
|
|
|
prefix=$RPM_BUILD_ROOT%{l_prefix} \ |
|
|
|
INSTALL="%{l_shtool} install -c" \ |
|
|
|
INSTALL="%{l_shtool} install -c" \ |
|
|
|
INSTALL_D="%{l_shtool} mkdir -f -p -m 755" |
|
|
|
INSTALL_D="%{l_shtool} mkdir -f -p -m 755" |
|
|
|
) || exit $? |
|
|
|
) || exit $? |
|
|
|
( cd unzip-%{V_unzip_here} |
|
|
|
( cd unzip%{V_unzip_real} |
|
|
|
%{l_make} %{l_mflags} -f unix/Makefile install \ |
|
|
|
%{l_make} %{l_mflags} -f unix/Makefile install \ |
|
|
|
prefix=$RPM_BUILD_ROOT%{l_prefix} \ |
|
|
|
prefix=$RPM_BUILD_ROOT%{l_prefix} \ |
|
|
|
INSTALL_D="%{l_shtool} mkdir -f -p -m 755" |
|
|
|
INSTALL_D="%{l_shtool} mkdir -f -p -m 755" |
|
|
|
|