From 6f16cec98fcfa53e8966862c8bc7752d05b2514a4ee34b055aea6e0ba8b81fa1 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:40:25 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/uudeview?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + ready | 0 uudeview-0.5.20.tar.bz2 | 3 ++ uudeview.changes | 71 ++++++++++++++++++++++++++ uudeview.patch | 103 ++++++++++++++++++++++++++++++++++++++ uudeview.spec | 108 ++++++++++++++++++++++++++++++++++++++++ 7 files changed, 309 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ready create mode 100644 uudeview-0.5.20.tar.bz2 create mode 100644 uudeview.changes create mode 100644 uudeview.patch create mode 100644 uudeview.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/uudeview-0.5.20.tar.bz2 b/uudeview-0.5.20.tar.bz2 new file mode 100644 index 0000000..4a7cbc4 --- /dev/null +++ b/uudeview-0.5.20.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32aeb25682713eec3e50620a2bc5d04f7a5fa6088f4e906511512bf28f691f1f +size 208240 diff --git a/uudeview.changes b/uudeview.changes new file mode 100644 index 0000000..34a8269 --- /dev/null +++ b/uudeview.changes @@ -0,0 +1,71 @@ +------------------------------------------------------------------- +Wed Jan 25 21:42:29 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Nov 11 14:12:51 CET 2004 - ro@suse.de + +- fixed file list + +------------------------------------------------------------------- +Tue Oct 5 18:39:09 CEST 2004 - max@suse.de + +- Removed the part of the patch that changed uulib/uuscan.c because + it I couldn't find out what it was supposed to fix, and it caused + an endless loop when decoding certain files. [Bug #46777] + +------------------------------------------------------------------- +Fri Mar 26 01:12:07 CET 2004 - ro@suse.de + +- added postfix to neededforbuild + +------------------------------------------------------------------- +Mon Mar 22 17:46:57 CET 2004 - max@suse.de + +- Fixed a problem with insecure temp file handling (Bug #35996). + +- Added -DUSE_NON_CONST to CFLAGS to prevent warnings with Tcl 8.4. + +------------------------------------------------------------------- +Wed Mar 3 16:52:33 CET 2004 - max@suse.de + +- New version: 0.5.20 - fixes a buffer overflow problem. + +------------------------------------------------------------------- +Sun Jan 11 10:48:40 CET 2004 - adrian@suse.de + +- add %defattr + +------------------------------------------------------------------- +Wed Jul 23 13:57:53 CEST 2003 - max@suse.de + +- Added tk-devel to neededforbuild. + +------------------------------------------------------------------- +Thu Jun 12 11:13:37 CEST 2003 - kukuk@suse.de + +- Fix filelist + +------------------------------------------------------------------- +Sun Oct 20 01:09:15 CEST 2002 - olh@suse.de + +- provide libuu.a, for tin + +------------------------------------------------------------------- +Tue Jul 2 18:09:57 CEST 2002 - max@suse.de + +- re-added mininews to neededforbuild + +------------------------------------------------------------------- +Tue Jul 2 17:14:26 CEST 2002 - ro@suse.de + +- added split provides + +------------------------------------------------------------------- +Tue Jul 2 13:56:58 CEST 2002 - max@suse.de + +- Split off from the sharutils package. +- New version: 0.5.18 . +- Now also supports yEnc encoding. + diff --git a/uudeview.patch b/uudeview.patch new file mode 100644 index 0000000..327daf3 --- /dev/null +++ b/uudeview.patch @@ -0,0 +1,103 @@ +--- tcl/uutcl.c ++++ tcl/uutcl.c +@@ -340,7 +340,7 @@ + static void + uutcl_UpdateParameter (Tcl_Interp *interp) + { +- char *cval; ++ const char *cval; + + if ((cval = Tcl_GetVar (interp, "OptionFast", TCL_GLOBAL_ONLY))!=NULL) + UUSetOption (UUOPT_FAST, atoi (cval), NULL); +--- unix/uudeview.c ++++ unix/uudeview.c +@@ -434,7 +434,7 @@ + return 0; + } + +- if ((stdfile = tempnam (NULL, "uu")) == NULL) { ++ if ((stdfile = _FP_tempnam (NULL, "uu")) == NULL) { + fprintf (stderr, "proc_stdin: cannot get temporary file\n"); + return 0; + } +--- uulib/fptools.c ++++ uulib/fptools.c +@@ -83,7 +83,7 @@ + */ + + char * TOOLEXPORT +-_FP_strdup (char *string) ++_FP_strdup (const char *string) + { + char *result; + +@@ -507,5 +507,15 @@ + char * TOOLEXPORT + _FP_tempnam (char *dir, char *pfx) + { +- return _FP_strdup (tmpnam (NULL)); ++ int fd; ++ char fileName[100]; ++ ++ strncpy(fileName, pfx, 90); ++ strcat(fileName, "XXXXXX"); ++ fd = mkstemp(fileName); ++ if (fd == -1) ++ return NULL; ++ close(fd); ++ unlink(fileName); ++ return _FP_strdup (fileName); + } +--- uulib/fptools.h ++++ uulib/fptools.h +@@ -33,7 +33,7 @@ + #endif + + void TOOLEXPORT _FP_free _ANSI_ARGS_((void *)); +-char * TOOLEXPORT _FP_strdup _ANSI_ARGS_((char *)); ++char * TOOLEXPORT _FP_strdup _ANSI_ARGS_((const char *)); + char * TOOLEXPORT _FP_strncpy _ANSI_ARGS_((char *, char *, int)); + void * TOOLEXPORT _FP_memdup _ANSI_ARGS_((void *, int)); + int TOOLEXPORT _FP_stricmp _ANSI_ARGS_((char *, char *)); +--- uulib/uudeview.h ++++ uulib/uudeview.h +@@ -188,7 +188,7 @@ + + int UUEXPORT UUInitialize _ANSI_ARGS_((void)); + int UUEXPORT UUGetOption _ANSI_ARGS_((int, int *, char *, int)); +-int UUEXPORT UUSetOption _ANSI_ARGS_((int, int, char *)); ++int UUEXPORT UUSetOption _ANSI_ARGS_((int, int, const char *)); + char * UUEXPORT UUstrerror _ANSI_ARGS_((int)); + int UUEXPORT UUSetMsgCallback _ANSI_ARGS_((void *, + void (*) (void *, +--- uulib/uulib.c ++++ uulib/uulib.c +@@ -504,7 +504,7 @@ + } + + int UUEXPORT +-UUSetOption (int option, int ivalue, char *cvalue) ++UUSetOption (int option, int ivalue, const char *cvalue) + { + switch (option) { + case UUOPT_FAST: +--- uulib/uunconc.c ++++ uulib/uunconc.c +@@ -1264,7 +1264,7 @@ + else + mode = "wb"; /* otherwise in binary */ + +- if ((data->binfile = tempnam (NULL, "uu")) == NULL) { ++ if ((data->binfile = _FP_tempnam (NULL, "uu")) == NULL) { + UUMessage (uunconc_id, __LINE__, UUMSG_ERROR, + uustring (S_NO_TEMP_NAME)); + return UURET_NOMEM; +@@ -1426,7 +1426,7 @@ + */ + + if (data->uudet == BH_ENCODED && data->binfile) { +- if ((ntmp = tempnam (NULL, "uu")) == NULL) { ++ if ((ntmp = _FP_tempnam (NULL, "uu")) == NULL) { + UUMessage (uunconc_id, __LINE__, UUMSG_ERROR, + uustring (S_NO_TEMP_NAME)); + progress.action = 0; diff --git a/uudeview.spec b/uudeview.spec new file mode 100644 index 0000000..8a91b83 --- /dev/null +++ b/uudeview.spec @@ -0,0 +1,108 @@ +# +# spec file for package uudeview (Version 0.5.20) +# +# Copyright (c) 2004 SUSE LINUX AG, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://www.suse.de/feedback/ +# + +# norootforbuild + +Name: uudeview +BuildRequires: mininews postfix tk-devel xorg-x11-devel +URL: http://www.fpx.de/fp/Software/UUDeview +License: GPL +Group: Productivity/Networking/News/Utilities +Provides: sharutils:/usr/bin/uudeview +Autoreqprov: on +Version: 0.5.20 +Release: 26 +Summary: The Nice and Friendly Decoder +Source: %{name}-%{version}.tar.bz2 +Patch0: %{name}.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +The UUDeview package contains a very smart decoder and an encoder for +Base64 (MIME), uuencoded, xxencoded, Binhex, and yEnc files. Its +ultimate goal is to fully replace the "standard", but dumb uudecode and +uuencode utilities. + + + +Authors: +-------- + Frank Pilhofer + +%prep +%setup -q +%patch0 + +%build +%suse_update_config +autoconf +CFLAGS="$RPM_OPT_FLAGS -DUSE_NON_CONST" \ +./configure --prefix=%_prefix \ + --libdir=%_libdir \ + --disable-minews \ + --enable-tcl=%_libdir \ + --enable-tk=%_libdir +make + +%install +make prefix=%buildroot%_prefix MANDIR=%buildroot%_mandir install +mkdir -p %buildroot%_libdir +mkdir -p %buildroot%_includedir +cp -pf uulib/libuu.a %buildroot%_libdir +cp -pf uulib/uudeview.h %buildroot%_includedir + +%clean +test $RPM_BUILD_ROOT -ef / || rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%_libdir/lib* +%_includedir/* +/usr/bin/uudeview +/usr/bin/uuenview +/usr/bin/uuwish +/usr/bin/xdeview +%doc HISTORY README +%doc %{_mandir}/man1/uudeview.1.gz +%doc %{_mandir}/man1/uuenview.1.gz +%doc %{_mandir}/man1/xdeview.1.gz + +%changelog -n uudeview +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Thu Nov 11 2004 - ro@suse.de +- fixed file list +* Tue Oct 05 2004 - max@suse.de +- Removed the part of the patch that changed uulib/uuscan.c because + it I couldn't find out what it was supposed to fix, and it caused + an endless loop when decoding certain files. [Bug #46777] +* Fri Mar 26 2004 - ro@suse.de +- added postfix to neededforbuild +* Mon Mar 22 2004 - max@suse.de +- Fixed a problem with insecure temp file handling (Bug #35996). +- Added -DUSE_NON_CONST to CFLAGS to prevent warnings with Tcl 8.4. +* Wed Mar 03 2004 - max@suse.de +- New version: 0.5.20 - fixes a buffer overflow problem. +* Sun Jan 11 2004 - adrian@suse.de +- add %%defattr +* Wed Jul 23 2003 - max@suse.de +- Added tk-devel to neededforbuild. +* Thu Jun 12 2003 - kukuk@suse.de +- Fix filelist +* Sun Oct 20 2002 - olh@suse.de +- provide libuu.a, for tin +* Tue Jul 02 2002 - max@suse.de +- re-added mininews to neededforbuild +* Tue Jul 02 2002 - ro@suse.de +- added split provides +* Tue Jul 02 2002 - max@suse.de +- Split off from the sharutils package. +- New version: 0.5.18 . +- Now also supports yEnc encoding.