Group :: Monitoramento
RPM: xcolors
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: xcolors_1.5a-2.diff
Download
Download
--- xcolors-1.5a.orig/xcolors.c
+++ xcolors-1.5a/xcolors.c
@@ -285,29 +285,35 @@
prev_r = prev_g = prev_b = -1;
save_colorname[0] = '\0';
- while (4 == fscanf(rgb, "%d %d %d %[^\n]\n", &r, &g, &b, colorname)) {
- if (startcolor)
- if (l_strcasecmp(colorname, startcolor))
- continue; /* haven't reached starting point yet */
- else
- startcolor = (char *)NULL;
- if (r != prev_r || g != prev_g || b != prev_b) {
- if (nearcolor.flags) {
- double ourdist =
- sqrt((double)((nearcolor.red-r)*(nearcolor.red-r)
+ while (!feof(rgb)) {
+ char str[1024];
+
+ fgets(str, 1024L, rgb);
+ if (*str != '!') /* comment */ {
+ sscanf(str, "%d %d %d %[^\n]\n", &r, &g, &b, colorname);
+ if (startcolor)
+ if (l_strcasecmp(colorname, startcolor))
+ continue; /* haven't reached starting point yet */
+ else
+ startcolor = (char *)NULL;
+ if (r != prev_r || g != prev_g || b != prev_b) {
+ if (nearcolor.flags) {
+ double ourdist =
+ sqrt((double)((nearcolor.red-r)*(nearcolor.red-r)
+ (nearcolor.green-g)*(nearcolor.green-g)
+ (nearcolor.blue-b)*(nearcolor.blue-b)));
- if (ourdist > ddist)
- continue;
- }
- if (save_colorname[0] != '\0') /* skip first time through */
- if (!do_color(parent, save_colorname))
- return;
- prev_r = r;
- prev_g = g;
- prev_b = b;
+ if (ourdist > ddist)
+ continue;
+ }
+ if (save_colorname[0] != '\0') /* skip first time through */
+ if (!do_color(parent, save_colorname))
+ return;
+ prev_r = r;
+ prev_g = g;
+ prev_b = b;
+ }
+ strcpy(save_colorname, colorname);
}
- strcpy(save_colorname, colorname);
}
if (save_colorname[0] != '\0')
(void)do_color(parent, save_colorname);
--- xcolors-1.5a.orig/debian/dirs
+++ xcolors-1.5a/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
--- xcolors-1.5a.orig/debian/menu
+++ xcolors-1.5a/debian/menu
@@ -0,0 +1,8 @@
+?package(xcolors):\
+ needs="X11" \
+ section="Apps/Tools" \
+ hints="Selectors,Color" \
+ title="xcolors" \
+ command="/usr/X11R6/bin/xcolors"
+
+
--- xcolors-1.5a.orig/debian/control
+++ xcolors-1.5a/debian/control
@@ -0,0 +1,13 @@
+Source: xcolors
+Section: x11
+Priority: optional
+Maintainer: Fredrik Hallenberg <hallon@debian.org>
+Standards-Version: 3.1.1
+Build-Depends: xlibs-dev, xutils, debhelper, libxaw7-dev
+
+Package: xcolors
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: display all X11 color names and colors
+ Reads the rgb.txt file that defines the color names the X server
+ knows and displays the colors found.
--- xcolors-1.5a.orig/debian/rules
+++ xcolors-1.5a/debian/rules
@@ -0,0 +1,81 @@
+#!/usr/bin/make -f
+# Sample debian.rules file - for GNU Hello (1.3).
+# Copyright 1994,1995 by Ian Jackson.
+# I hereby give you perpetual unlimited permission to copy,
+# modify and relicense this file, provided that you do not remove
+# my name from the file itself. (I assert my moral right of
+# paternity under the Copyright, Designs and Patents Act 1988.)
+# This file may have to be extensively modified
+
+# There used to be `source' and `diff' targets in this file, and many
+# packages also had `changes' and `dist' targets. These functions
+# have been taken over by dpkg-source, dpkg-genchanges and
+# dpkg-buildpackage in a package-independent way, and so these targets
+# are obsolete.
+
+
+CFLAGS = -g -O2
+LDFLAGS = -s
+STRIP=strip
+CC = gcc
+
+package=xcolors
+
+build:
+ $(checkdir)
+ xmkmf
+ make CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
+ touch build
+
+clean:
+ $(checkdir)
+ if test -f Makefile; then make clean; fi
+ rm -f build Makefile.bak Makefile
+ rm -rf *~ debian/tmp debian/*~ debian/files*
+
+binary-indep: checkroot build
+ $(checkdir)
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+binary-arch: checkroot build
+ $(checkdir)
+ -rm -rf debian/tmp
+ install -d debian/tmp debian/tmp/DEBIAN
+# cp debian/{postinst,prerm} debian/tmp/DEBIAN/.
+# chmod +x debian/tmp/DEBIAN/{postinst,prerm}
+# $(MAKE) CFLAGS=-O2 LDFLAGS=-s INSTALL_PROGRAM='install -c -s' \
+# prefix=debian/tmp/usr install
+# gzip -9v debian/tmp/usr/info/*
+ test -f build || make -f debian/rules build
+ make install install.man DESTDIR=debian/tmp
+# rm debian/tmp/usr/X11R6/lib/X11/app-defaults
+ dh_installdocs
+ dh_installchangelogs
+ dh_installmenu
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+define checkdir
+ test -f $(package).c -a -f debian/rules
+endef
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+checkroot:
+ $(checkdir)
+ test root = "`whoami`"
+
+.PHONY: binary binary-arch binary-indep clean checkroot
--- xcolors-1.5a.orig/debian/prerm.debhelper
+++ xcolors-1.5a/debian/prerm.debhelper
@@ -0,0 +1,65 @@
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/xcolors ]; then
+ rm -f /usr/doc/xcolors
+fi
+# End automatically added section
--- xcolors-1.5a.orig/debian/conffiles
+++ xcolors-1.5a/debian/conffiles
@@ -0,0 +1 @@
+/etc/X11/app-defaults/Xcolors
--- xcolors-1.5a.orig/debian/changelog
+++ xcolors-1.5a/debian/changelog
@@ -0,0 +1,76 @@
+xcolors (1.5a-2) unstable; urgency=low
+
+ * Added libxaw7 build dependency (closes: #113275)
+
+ -- Fredrik Hallenberg <hallon@debian.org> Thu, 4 Oct 2001 21:43:20 +0200
+
+xcolors (1.5a-1) unstable; urgency=low
+
+ * Removed binary from orig archive (closes: #86381)
+
+ -- Fredrik Hallenberg <hallon@debian.org> Sun, 25 Feb 2001 22:28:19 +0100
+
+xcolors (1.5-8) unstable; urgency=low
+
+ * Added xutils to build-depends (closes: #85373)
+
+ -- Fredrik Hallenberg <hallon@debian.org> Fri, 9 Feb 2001 14:18:57 +0100
+
+xcolors (1.5-7) unstable; urgency=low
+
+ * Updated menu entry with hints (closes: #80072)
+
+ -- Fredrik Hallenberg <hallon@debian.org> Wed, 20 Dec 2000 11:33:03 +0100
+
+xcolors (1.5-6) unstable; urgency=low
+
+ * Added menu entry (closes: #76970)
+
+ -- Fredrik Hallenberg <hallon@debian.org> Mon, 20 Nov 2000 21:27:19 +0100
+
+xcolors (1.5-5) unstable; urgency=low
+
+ * Fixed build problems (fixes: bug #15264, #15506)
+ * Updated to standards version 2.4.0.0
+ * New maintainer
+
+ -- Fredrik Hallenberg <hallon@debian.org> Tue, 17 Mar 1998 00:30:30 +0100
+
+xcolors (1.5-4.1) unstable; urgency=low
+
+ * Non-maintainer release.
+ * Libc6 compile.
+
+ -- Martin Mitchell <martin@debian.org> Wed, 12 Nov 1997 04:18:23 +1100
+
+xcolors (1.5-4) unstable; urgency=low
+
+ * Fixed bug: manpage now compressed.
+
+ -- Syrus Nemat-Nasser <syrus@ucsd.edu> Wed, 25 Dec 1996 11:36:49 -0800
+
+xcolors (1.5-3) unstable; urgency=low
+
+ * Changed to new source packing scheme
+ * New Maintainer
+
+ -- Syrus Nemat-Nasser <syrus@ucsd.edu> Sun, 22 Dec 1996 21:01:10 -0800
+
+Tue May 7 11:04:56 MET DST 1996 Michael Meskes <meskes@debian.org>
+
+ xcolors (1.5-1):
+
+ * Added Debian files
+
+Sun Jun 30 13:55:23 MET DST 1996 Michael Meskes <meskes@debian.org>
+
+ xcolors (1.5-2):
+
+ * Changed debian.rules for new naming scheme.
+
+ * Changed extended description
+
+
+Local variables:
+mode: debian-changelog
+End:
--- xcolors-1.5a.orig/debian/postinst.debhelper
+++ xcolors-1.5a/debian/postinst.debhelper
@@ -0,0 +1,133 @@
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installdocs
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/xcolors -a -d /usr/share/doc/xcolors ]; then
+ ln -sf ../share/doc/xcolors /usr/doc/xcolors
+ fi
+fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
--- xcolors-1.5a.orig/debian/substvars
+++ xcolors-1.5a/debian/substvars
@@ -0,0 +1 @@
+shlibs:Depends=libc6 (>= 2.2.1-2), libxaw7 (>= 4.0.1-1), xlibs (>= 4.0.1-11)
--- xcolors-1.5a.orig/debian/postrm.debhelper
+++ xcolors-1.5a/debian/postrm.debhelper
@@ -0,0 +1,42 @@
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
+# Automatically added by dh_installmenu
+if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+# End automatically added section
--- xcolors-1.5a.orig/debian/copyright
+++ xcolors-1.5a/debian/copyright
@@ -0,0 +1,26 @@
+This is the Debian Linux prepackaged version of xcolors.
+
+This package was put together by Michael Meskes <meskes@debian.org>,
+from sources obtained from:
+sunsite.unc.edu:/pub/linux/X11/xutils/status/xcolor.tar.z
+
+Changes:
+ * added Debian Linux package maintenance system files
+
+The original code carries the following copyright:
+
+ * Copyright (c) 1989,1991 by Stephen Gildea
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted, provided
+ * that the above copyright notice appears in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation. The authors make no representations about the
+ * suitability of this software for any purpose. It is provided "as is"
+ * without express or implied warranty.
+ *
+ * Author: Stephen Gildea <gildea@expo.lcs.mit.edu>
+ * Orignal program by Paul Vixie.
+
+Tue May 7 11:05:43 MET DST 1996 Michael Meskes <meskes@debian.org>
+