Hello community, here is the log from the commit of package xgrabsc for openSUSE:Factory checked in at 2013-07-19 17:39:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xgrabsc (Old) and /work/SRC/openSUSE:Factory/.xgrabsc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xgrabsc" Changes: -------- New Changes file: --- /dev/null 2013-07-15 01:04:09.588030756 +0200 +++ /work/SRC/openSUSE:Factory/.xgrabsc.new/xgrabsc.changes 2013-07-19 17:39:31.000000000 +0200 @@ -0,0 +1,147 @@ +------------------------------------------------------------------- +Tue Mar 27 11:56:17 UTC 2012 - [email protected] + +- license update: HPND + This SPDX recognised license most closely resembles the rights and + obligations of this package^s license + +------------------------------------------------------------------- +Thu Dec 9 15:29:24 UTC 2010 - [email protected] + +- drop bogus libgcc and libstdc++ BuildRequires + +------------------------------------------------------------------- +Mon Nov 8 14:31:21 UTC 2010 - [email protected] + +- remove support for pre-9.1 + +------------------------------------------------------------------- +Fri Nov 27 09:09:21 UTC 2009 - [email protected] + +- Update patches to apply with fuzz=0 + +------------------------------------------------------------------- +Thu Oct 15 22:24:22 CEST 2009 - [email protected] + +- Fixed memory leak (bnc #542498) + +------------------------------------------------------------------- +Fri Aug 22 14:58:46 CEST 2008 - [email protected] + +- fixed changed include dir of ncurses (new_ncurses.patch) + +------------------------------------------------------------------- +Mon Dec 17 16:26:25 CET 2007 - [email protected] + +- do not use xrdb in buildsystem + +------------------------------------------------------------------- +Fri Mar 30 00:51:34 CEST 2007 - [email protected] + +- added ncurses-devel to buildreq + +------------------------------------------------------------------- +Thu Jul 27 17:01:58 CEST 2006 - [email protected] + +- builds also with new X.org 7.x, checks the version of X.org +- building with icecream + +------------------------------------------------------------------- +Wed Jan 25 21:43:09 CET 2006 - [email protected] + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Tue Oct 11 17:14:23 CEST 2005 - [email protected] + +- fixed segfault on x86_64 arch: explicit declarations of system functions was missing (#116956) + +------------------------------------------------------------------- +Fri Apr 29 13:13:37 CEST 2005 - [email protected] + +- fix build with gcc4 + +------------------------------------------------------------------- +Thu Sep 23 16:59:04 CEST 2004 - [email protected] + +- change the desktop file to something usable under X Window (#45814) + +------------------------------------------------------------------- +Wed May 19 17:54:51 CEST 2004 - [email protected] + +- added return values to non-void functions + +------------------------------------------------------------------- +Sat Jan 10 21:41:22 CET 2004 - [email protected] + +- build as user + +------------------------------------------------------------------- +Fri Aug 15 16:03:57 CEST 2003 - [email protected] + +- add desktop file + +------------------------------------------------------------------- +Tue Nov 12 17:28:32 CET 2002 - [email protected] + +- fixed neededforbuild which is broken with renamed XFree86 package + +------------------------------------------------------------------- +Mon May 21 14:23:53 CEST 2001 - [email protected] + +- skip compressing colormap in xgrabsc +- create default resource for click and ppm +- fix bug #8542 + +------------------------------------------------------------------- +Mon Nov 20 09:45:35 CET 2000 - [email protected] + +- support for openmotif + +------------------------------------------------------------------- +Wed Oct 18 16:56:57 CEST 2000 - [email protected] + +- write patch to work on display > 8bpp and use lesstiff + +------------------------------------------------------------------- +Mon May 29 13:51:30 CEST 2000 - [email protected] + +- filled Group: tag + +------------------------------------------------------------------- +Wed May 24 18:18:46 CEST 2000 - [email protected] + +- using gpp preprocessor instead of xrdb for X resource file + +------------------------------------------------------------------- +Mon Apr 3 17:38:43 CEST 2000 - [email protected] + +- added buildroot + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - [email protected] + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Fri Oct 24 13:12:38 MEST 1997 - @suse.de + +- back to xrdb since build is prepared for that + +------------------------------------------------------------------- +Wed Oct 22 12:00:55 MEST 1997 - [email protected] + +- ready for autobuild + using myxrdb instead of xrdb + +---------------------------------------------------------------------------- +Thu Sep 5 12:44:11 MET DST 1996 - [email protected] + +changed to new version 2.41 +copy also READMEs and textfiles to /usr/doc/packages/xgrabsc +changed install pathes from /usr/bin/X11 and similar to /usr/X11R6/bin etc +changed default paper size to A4 +pkgmake compile now does a make clean before compiling to avoid nasty +side effects +xgrabsc HAS TO BE compiled under X11 + New: ---- xgrabsc-2.41-gcc4.patch xgrabsc-2.41-implicit_decl.patch xgrabsc-2.41-memoryleak.patch xgrabsc-2.41-new_ncurses.patch xgrabsc-2.41-no_xrdb.patch xgrabsc-2.41.patch xgrabsc-2.41.tar.bz2 xgrabsc.changes xgrabsc.desktop xgrabsc.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xgrabsc.spec ++++++ # # spec file for package xgrabsc # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: xgrabsc Url: ftp://ftp.x.org/contrib/applications/ BuildRequires: ncurses-devel BuildRequires: openmotif BuildRequires: openmotif-devel BuildRequires: update-desktop-files BuildRequires: xorg-x11 Version: 2.41 Release: 0 Summary: A Screen Grabber for the X Window System. License: HPND Group: System/X11/Utilities Source: xgrabsc-%{version}.tar.bz2 Source1: xgrabsc.desktop Patch: xgrabsc-%{version}.patch Patch1: xgrabsc-%{version}-gcc4.patch Patch2: xgrabsc-%{version}-implicit_decl.patch Patch3: xgrabsc-%{version}-no_xrdb.patch Patch4: xgrabsc-%{version}-new_ncurses.patch # PATCH-FIX-OPENSUSE xgrabsc-2.41-memoryleak.patch bnc#542498 Patch5: xgrabsc-%{version}-memoryleak.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define _xorg7libs %_lib %define _xorg7libs32 lib %define _xorg7bin bin %define _xorg7_mandir %_mandir %define _xorg7pixmaps include %define _xorg7libshare share %description You need screenshots? xgrab and xgrabsc are powerful tools to save screenshots in files (ps, xpm, and more) or to print them. xgrabsc is invoked from a shell and sends the rectangle grabbed on the screen to standard output. xgrab is a menu-driven front-end to xgrabsc. This program works only in PPM, XPM, and non-color PostScript formats for display larger then 8 bits per pixel deep. Documentation may be obtained by typing man xgrab and man xgrabsc. The author's original comments can be found in /usr/share/doc/packages/xgrabsc. %prep %setup -q %patch %patch1 -p1 %patch2 %patch3 # ncurses include dir changed after 11.0 %if %suse_version > 1100 %patch4 %endif %patch5 %build xmkmf make clean make %{?jobs:-j%jobs} %install make install install.man DESTDIR=$RPM_BUILD_ROOT %suse_update_desktop_file -i %name Utility DesktopUtility %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc Acks Bugs README README.2_4 %doc %{_xorg7_mandir}/man1/*.gz %config /usr/%{_xorg7libshare}/X11/app-defaults/XGrab /usr/share/applications/*.desktop /usr/%{_xorg7bin}/xgrab /usr/%{_xorg7bin}/xgrabsc %changelog ++++++ xgrabsc-2.41-gcc4.patch ++++++ Index: xgrabsc-2.41/convert.c =================================================================== --- xgrabsc-2.41.orig/convert.c +++ xgrabsc-2.41/convert.c @@ -22,8 +22,7 @@ /* * convert a pixmap image into a bitmap image */ -pixmap2bitmap(image) - imageInfo *image; +void pixmap2bitmap(imageInfo * image) { XImage *ximage = image->ximage; int x, y; @@ -140,9 +139,7 @@ static byte DitherBits[GRAYS][4] = { /* halftone or dither a color image, changing it into a monochrome * image */ -pixmap2halftone(image, dither) - imageInfo *image; - ditherType dither; /* type of dithering to perform */ +void pixmap2halftone(imageInfo * image, ditherType dither) { XImage *ximage = image->ximage; XImage *newImage; Index: xgrabsc-2.41/process.c =================================================================== --- xgrabsc-2.41.orig/process.c +++ xgrabsc-2.41/process.c @@ -230,8 +230,7 @@ reverseColors(image) * Compress the colors used in an XImage so that all pixel values are * adjacent. Alters the rgb color tables and the XImage data values. */ -compressColormap(image) - imageInfo *image; +void compressColormap(imageInfo * image) { XImage *ximage = image->ximage; long map[MAX_CELLS]; Index: xgrabsc-2.41/write.c =================================================================== --- xgrabsc-2.41.orig/write.c +++ xgrabsc-2.41/write.c @@ -21,8 +21,7 @@ /* swap the bits in a byte */ -swapbits(b) - byte b; +byte swapbits(byte b) { byte b2; @@ -128,9 +127,7 @@ writeint(intValue, outfile) } -writeSimple(image, outfile) - imageInfo *image; - FILE *outfile; +void writeSimple(imageInfo * image, FILE * outfile) { dw width, height, hasColormap, colormapSize; int i, w, h; @@ -1210,9 +1207,7 @@ writeColorPS(image, outfile, encode, enc * Write an image in 'puzzle' format, suitable for loading with * "puzzle -picture". */ -writePuzzle(image, outfile) - imageInfo *image; - FILE *outfile; +void writePuzzle(imageInfo *image, FILE *outfile) { XImage *ximage = image->ximage; int nc, width, height, w, h, cidx; @@ -1253,10 +1248,7 @@ writePuzzle(image, outfile) -writeXWD(image, outfile, xyformat) - imageInfo *image; - FILE *outfile; - int xyformat; +void writeXWD(imageInfo *image, FILE *outfile, int xyformat) { XImage *ximage = image->ximage; XWDFileHeader header; @@ -1374,9 +1366,7 @@ writeXWD(image, outfile, xyformat) * use it. */ -writeXYPixmap(image, outfile) - imageInfo *image; - FILE *outfile; +void writeXYPixmap(imageInfo *image, FILE *outfile) { XImage *ximage = image->ximage; int w, h; @@ -1432,9 +1422,7 @@ writeXYPixmap(image, outfile) * Write a color image out in Pixmap format. * Supported output formats are xpm1 (original xpm), xpm2 and xpm3 */ -writeZPixmap(xpmFormat, image, outfile) - imageInfo *image; - FILE *outfile; +void writeZPixmap(int xpmFormat, imageInfo *image, FILE *outfile) { XImage *ximage = image->ximage; int nc, width, height, w, h, cidx, cpp; @@ -1597,9 +1585,7 @@ fprintf(outfile, "/* pixels */\n"); /* * Write a color image out in PPM, a portable bitmap format. */ -writePPM(image, outfile) - imageInfo *image; - FILE *outfile; +void writePPM(imageInfo *image, FILE *outfile) { XImage *ximage = image->ximage; int nc, width, height, w, h, cidx; ++++++ xgrabsc-2.41-implicit_decl.patch ++++++ Index: xgrabsc.c =================================================================== --- xgrabsc.c.orig +++ xgrabsc.c @@ -34,6 +34,8 @@ */ #include "xgrabsc.h" +#include <stdlib.h> +#include <menu.h> @@ -626,7 +628,7 @@ xgrabsc(argc, argv, env) case sourceKey: childWindow = #ifdef SELECTION_MASK - getWindowWhenKeyIsPressed(SELECTION_MASK) + getWindowWhenKeyIsPressed(SELECTION_MASK); #else getWindowWhenKeyIsPressed(ControlMask); #endif Index: xgrabxaw.c =================================================================== --- xgrabxaw.c.orig +++ xgrabxaw.c @@ -23,6 +23,7 @@ #include "config.h" #include <stdio.h> +#include <stdlib.h> #include <ctype.h> #include <X11/Intrinsic.h> #include <X11/StringDefs.h> Index: xgrabxm.c =================================================================== --- xgrabxm.c.orig +++ xgrabxm.c @@ -22,6 +22,7 @@ #include "config.h" #include <stdio.h> +#include <stdlib.h> #include <ctype.h> #include <X11/Intrinsic.h> #include <X11/StringDefs.h> ++++++ xgrabsc-2.41-memoryleak.patch ++++++ Index: write.c =================================================================== --- write.c.orig +++ write.c @@ -1575,8 +1575,11 @@ fprintf(outfile, "/* pixels */\n"); /* write end */ fputs("};\n", outfile); + free(pix_red); + free(pix_green); + free(pix_blue); - return 0; + return 0; } ++++++ xgrabsc-2.41-new_ncurses.patch ++++++ Index: xgrabsc.c =================================================================== --- xgrabsc.c.orig +++ xgrabsc.c @@ -35,7 +35,7 @@ #include "xgrabsc.h" #include <stdlib.h> -#include <menu.h> +#include <ncurses/menu.h> ++++++ xgrabsc-2.41-no_xrdb.patch ++++++ Index: Imakefile =================================================================== --- Imakefile.orig +++ Imakefile @@ -78,7 +78,7 @@ XGrab.ad: ADName ADName: ADSource rm -f ADName - $(XRDB) -n ADSource >ADName + /lib/cpp --traditional ADSource | grep -v "^\!" | grep -v '^$$' | grep -v "^#" > ADName clean:: $(RM) xgrabxaw_ad.h xgrabxm_ad.h xgrabxaw xgrabxm XGrab.ad xgrab_ad.h ++++++ xgrabsc-2.41.patch ++++++ ++++ 737 lines (skipped) ++++++ xgrabsc.desktop ++++++ [Desktop Entry] Type=Application Exec=xgrab Name=xgrab -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
