From d760f48241abdda913d2b99bfbd2bc1c5bee561fa8ff07f4c061a6b449097bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Mon, 30 Aug 2010 20:30:03 +0000 Subject: [PATCH 1/2] Accepting request 46708 from home:elvigia:branches:Archiving Copy from home:elvigia:branches:Archiving/unzip via accept of submit request 46708 revision 2. Request was accepted with message: OBS-URL: https://build.opensuse.org/request/show/46708 OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=11 --- unzip-no-build-date.patch | 82 +++++++++++++++++++++++++++++++++++++++ unzip.changes | 6 +++ unzip.spec | 3 +- 3 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 unzip-no-build-date.patch diff --git a/unzip-no-build-date.patch b/unzip-no-build-date.patch new file mode 100644 index 0000000..fa433e5 --- /dev/null +++ b/unzip-no-build-date.patch @@ -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__ diff --git a/unzip.changes b/unzip.changes index 81eb942..c842977 100644 --- a/unzip.changes +++ b/unzip.changes @@ -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 diff --git a/unzip.spec b/unzip.spec index 40b491e..8c7dbfa 100644 --- a/unzip.spec +++ b/unzip.spec @@ -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,7 +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." make %{?jobs:-j%jobs} -f unix/Makefile LF2=-lrcc linux_noasm From cac0b21fd2a9dcc7743d35693ae5d6fae3e9ff50cb17469e3fb7b1265ed29d7f Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Fri, 3 Sep 2010 11:00:28 +0000 Subject: [PATCH 2/2] Accepting request 46711 from Archiving checked in (request 46711) OBS-URL: https://build.opensuse.org/request/show/46711 OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=12 --- unzip.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unzip.spec b/unzip.spec index 8c7dbfa..e864f9b 100644 --- a/unzip.spec +++ b/unzip.spec @@ -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,7 +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 +Patch11: unzip-no-build-date.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: librcc-devel @@ -63,6 +63,7 @@ Authors: %patch8 %patch10 %patch11 + %build export RPM_OPT_FLAGS="%optflags -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -fstack-protector -I." make %{?jobs:-j%jobs} -f unix/Makefile LF2=-lrcc linux_noasm