SHA256
1
0
forked from pool/unzip

Accepting request 46711 from Archiving

Copy from Archiving/unzip based on submit request 46711 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/46711
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/unzip?expand=0&rev=16
This commit is contained in:
OBS User autobuild 2010-09-03 11:00:28 +00:00 committed by Git OBS Bridge
commit 870338bb42
3 changed files with 91 additions and 1 deletions

82
unzip-no-build-date.patch Normal file
View File

@ -0,0 +1,82 @@
Index: cmsmvs/vmmvs.c
===================================================================
--- cmsmvs/vmmvs.c.orig 2005-01-26 23:03:28.000000000 -0300
+++ cmsmvs/vmmvs.c 2010-08-30 14:15:34.271732500 -0400
@@ -664,14 +664,6 @@ void version(__G)
/* Add compile environment */
platform,
-
- /* Add timestamp */
-#ifdef __DATE__
- " on " __DATE__
-#ifdef __TIME__
- " at " __TIME__
-#endif
-#endif
".\n", "",
liblvlmsg
);
Index: macos/source/sxunzip.c
===================================================================
--- macos/source/sxunzip.c.orig 2001-02-09 21:55:34.000000000 -0300
+++ macos/source/sxunzip.c 2010-08-30 14:18:39.555731949 -0400
@@ -123,7 +123,7 @@ static char UnZipVersionLocal[50];
memset(UnZipVersionLocal,0,sizeof(UnZipVersionLocal));
-sprintf(UnZipVersionLocal, "[%s %s]", __DATE__, __TIME__);
+sprintf(UnZipVersionLocal, "[Unknown]");
return UnZipVersionLocal;
}
Index: macos/source/macos.c
===================================================================
--- macos/source/macos.c.orig 2007-12-23 14:15:36.000000000 -0300
+++ macos/source/macos.c 2010-08-30 14:29:28.405735321 -0400
@@ -937,14 +937,11 @@ void version(__G)
ZCONST char Far CompiledWith[] =
"Compiled with %s%s for %s%s%s%s.\n\n"; */
-char DateTime[50];
-
#ifdef __MWERKS__
char CompVer[10];
sprintf(CompVer, "%x", __MWERKS__);
#endif
- sprintf(DateTime,"%s %s",__DATE__, __TIME__);
sprintf((char *)slide, LoadFarString(CompiledWith),
@@ -960,13 +957,7 @@ sprintf(CompVer, "%x", __MWERKS__);
#else
" PowerPC Processor",
#endif
-
-#ifdef __DATE__
-
- "\n compile time: ", DateTime, ""
-#else
"", "", ""
-#endif
);
(*G.message)((zvoid *)&G, slide, (ulg)strlen((char *)slide), 0);
Index: amiga/amiga.c
===================================================================
--- amiga/amiga.c.orig 2007-12-23 12:52:22.000000000 -0300
+++ amiga/amiga.c 2010-08-30 14:30:10.528753108 -0400
@@ -1002,12 +1002,7 @@ void version(__G)
sprintf(buf2,"unknown version");
# endif
#endif
-
-#ifdef __DATE__
- sprintf(buf4," on %s",__DATE__);
-#else
strcpy(buf4," unknown date");
-#endif
/******
#ifdef __TIME__

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 30 19:44:17 UTC 2010 - cristian.rodriguez@opensuse.org
- Do not include build host specific info like build dates In
binaries.
-------------------------------------------------------------------
Fri Jun 25 18:21:34 CEST 2010 - pth@suse.de

View File

@ -24,7 +24,7 @@ Provides: crunzip
Obsoletes: crunzip
AutoReqProv: on
Version: 6.00
Release: 1
Release: 2
%define fileversion 60
Summary: A program to unpack compressed files
Source: %{name}%{fileversion}.tar.bz2
@ -36,6 +36,7 @@ Patch4: unzip-5.52-filename_too_long.patch
Patch5: unzip-no_file_name_translation.patch
Patch8: unzip-open_missing_mode.patch
Patch10: unzip-5.52-use_librcc.patch
Patch11: unzip-no-build-date.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: librcc-devel
@ -61,6 +62,7 @@ Authors:
%patch5
%patch8
%patch10
%patch11
%build
export RPM_OPT_FLAGS="%optflags -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -fstack-protector -I."