debian/0000755000000000000000000000000011701660333007166 5ustar debian/install0000644000000000000000000000014511701660333010557 0ustar debian/colorname.desktop /usr/share/applications/ debian/colorname.xpm /usr/share/pixmaps/ debian/colorname.desktop0000644000000000000000000000023211701660333012535 0ustar [Desktop Entry] Version=1.0 Type=Application Name=colorname Categories=Graphics;Utility;GTK Exec=/usr/bin/colorname Icon=/usr/share/pixmaps/colorname.xpm debian/rules0000755000000000000000000000147111701660333010251 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CURVER := $(shell parsechangelog | grep Version | cut -d\ -f2 | cut -d- -f1) UPSVER := $(CURVER:+dfsg.1=) override_dh_auto_install: dh_auto_install mv $(CURDIR)/debian/colorname/usr/bin/colorname.py $(CURDIR)/debian/colorname/usr/bin/colorname rm -rf $(CURDIR)/debian/colorname/usr/lib/ %: dh $@ \ --with python2 get-orig-source: rm -rf $(CURDIR)/colorname-$(UPSVER)* uscan --verbose --force-download --destdir $(CURDIR) --no-symlink tar zxvf $(CURDIR)/colorname-$(UPSVER).tar.gz rm -rf $(CURDIR)/colorname-$(UPSVER)/colorname-colors/colorname-svg.txt tar cf $(CURDIR)/colorname_$(CURVER).orig.tar colorname-$(UPSVER)/ gzip -9 $(CURDIR)/colorname_$(CURVER).orig.tar rm -rf $(CURDIR)/colorname-$(UPSVER)* debian/colorname.10000644000000000000000000000204511701660333011230 0ustar .TH COLORNAME 1 "January 17, 2010" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME colorname \- utility to associate a name to a color .SH SYNOPSIS .B colorname .SH DESCRIPTION \fBcolorname\fR tries to assign a name to a color using external color definitions and a little math. .PP For this it calculates the Euclidean distance between the currently selected color and all predefined colors, either in the YIQ, RGB or HSV color space. .SH AUTHOR .B Philippe 'demod' Neumann .br .B Gina 'foosel' Häußge .PP This manual page was written by \fBDavid Paleino \fR, for the Debian project (and may be used by others). debian/watch0000644000000000000000000000021411701660333010214 0ustar version=3 opts=dversionmangle=s/\+dfsg\.\d+// \ http://code.foosel.org/colorname \ http://code.foosel.org/files/colorname-(\d+.*)\.tar\.gz debian/control0000644000000000000000000000152311701660333010572 0ustar Source: colorname Section: utils Priority: optional Maintainer: David Paleino Build-Depends: debhelper (>= 8~), python (>= 2.6.6-3~), python-gtk2 (>= 2.10), python-gnome2 (>= 2.18) Standards-Version: 3.9.2 Homepage: http://code.foosel.org/colorname Vcs-Git: git://git.debian.org/git/collab-maint/colorname.git Vcs-Browser: http://git.debian.org/?p=collab-maint/colorname.git Package: colorname Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-gtk2 (>= 2.10) Recommends: python-gnome2 (>= 2.18) Description: utility to associate a name to a color colorname tries to assign a name to a color using external color definitions and a little math. . For this it calculates the Euclidean distance between the currently selected color and all predefined colors, either in the YIQ, RGB or HSV color space. debian/changelog0000644000000000000000000000146711701660333011050 0ustar colorname (0.4+dfsg.1-3) unstable; urgency=low * Drop dependency on quilt * Package format switched to "3.0 (quilt)" * Update copyright years for debian/ * Packaging switched from pysupport to dh_python2 (Closes: #652343) * Debhelper compatibility bumped to 8 * Standards-Version bumped to 3.9.2, no changes needed -- David Paleino Fri, 06 Jan 2012 22:00:05 +0100 colorname (0.4+dfsg.1-2) unstable; urgency=low * debian/colorname.desktop: remove Terminal=true (Closes: #600838) * debian/control: Standards-Version bumped to 3.9.1, no changes needed -- David Paleino Wed, 20 Oct 2010 15:57:48 +0200 colorname (0.4+dfsg.1-1) unstable; urgency=low * Initial release (Closes: #565623) -- David Paleino Mon, 18 Jan 2010 01:18:34 +0100 debian/menu0000644000000000000000000000025411701660333010056 0ustar ?package(colorname): \ needs="X11" \ section="Applications/Graphics" \ title="colorname" \ command="/usr/bin/colorname" \ icon="/usr/share/pixmaps/colorname.xpm" debian/copyright0000644000000000000000000000572611701660333011133 0ustar Format: http://dep.debian.net/deps/dep5/ Files: debian/* Copyright: © 2010-2012, David Paleino License: GPL-2+ Files: colorname-colors/colorname-gimp.txt Copyright: © The GIMP Team License: GPL-2+ X-Comment: the license above was taken from /usr/share/doc/gimp/copyright , since the file only states "GPL" Files: colorname-colors/colorname-wikipedia.txt Copyright: © Wikipedia License: GFDL-1.3+ Files: colorname-colors/colorname-x11.txt Copyright: © X.Org Foundation License: MIT/X11 Files: * Copyright: © 2009, Philippe 'demod' Neumann © 2009, Gina 'foosel' Häußge License: GPL-2+ License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA X-Comment: on Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. License: MIT/X11 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: GFDL-1.3+ Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. X-Comment: on Debian systems, the complete text of the GNU Free Documentation License version 1.3 can be found in `/usr/share/common-licenses/GFDL-1.3'. debian/manpages0000644000000000000000000000002311701660333010677 0ustar debian/colorname.1 debian/source/0000755000000000000000000000000011701660333010466 5ustar debian/source/format0000644000000000000000000000001411701660333011674 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000130711701660333011346 0ustar colorname for Debian -------------------- DFSG-freeness ============= The original tarball has been repacked to remove colorname-colors/colorname-svg.txt , which is derived from http://www.w3.org/TR/css3-color/#svg-color which, in turn, being a W3C document, is subject to its own license, available at http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231 This license, however, does not permit derivation of any data: "No right to create modifications or derivatives of W3C documents is granted pursuant to this license. [..]" Being the file non-essential for the good functioning of the package, and not being it a good reason to put it in non-free, I decided to remove it. debian/patches/0000755000000000000000000000000011701660333010615 5ustar debian/patches/01-fix_paths.patch0000644000000000000000000000317411701660333014046 0ustar From: David Paleino Subject: fix path of color schemes Forwarded: not-needed To be honest, this should be made configurable via setup.py :) --- colorname.py | 15 ++++++++------- setup.py | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) --- colorname.orig/colorname.py +++ colorname/colorname.py @@ -59,7 +59,7 @@ except ImportError: ## config colorDefPattern = "colorname-*.txt" -colorDefDir = "colorname-colors" +colorDefDir = "/usr/share/colorname/" windowSize = (350, 600) class ColorVector(tuple): @@ -486,13 +486,14 @@ def init(): g = GUI() - ## load external color definitions - pkgdirRe = re.compile("packages$") - - colorLocations = [] - for e in filter(pkgdirRe.search, sys.path): - colorLocations.append(os.path.join(e, colorDefDir)) +# ## load external color definitions +# pkgdirRe = re.compile("packages$") + colorLocations = [colorDefDir] +# colorLocations = [] +# for e in filter(pkgdirRe.search, sys.path): +# colorLocations.append(os.path.join(e, colorDefDir)) + # files files = [] for path in colorLocations: --- colorname.orig/setup.py +++ colorname/setup.py @@ -11,7 +11,7 @@ import colorname if os.name == "posix": for scheme in INSTALL_SCHEMES.values(): - scheme['data'] = scheme['purelib'] + scheme['data'] = scheme['purelib'] setup( name='colorname', @@ -30,5 +30,5 @@ setup( "Topic :: Utilities" ], scripts=['colorname.py'], - data_files=[(colorname.colorDefDir, glob(os.path.join(colorname.colorDefDir, colorname.colorDefPattern)))] + data_files=[(colorname.colorDefDir, glob(os.path.join("colorname-colors", colorname.colorDefPattern)))] ) debian/patches/series0000644000000000000000000000002311701660333012025 0ustar 01-fix_paths.patch debian/colorname.xpm0000644000000000000000000001435411701660333011702 0ustar /* XPM */ static char *colorname[] = { /* columns rows colors chars-per-pixel */ "32 32 256 2", " c #000000", ". c #090302", "X c #14100F", "o c #110E10", "O c #1B1A1A", "+ c #1B1A16", "@ c #0A0C19", "# c #251615", "$ c #332C12", "% c #191B27", "& c #1E2022", "* c #1F2233", "= c #262322", "- c #2D2522", "; c #2D2B28", ": c #342B24", "> c #332E2B", ", c #362623", "< c #3C362D", "1 c #212435", "2 c #272939", "3 c #353434", "4 c #393733", "5 c #3B3A35", "6 c #383838", "7 c #273C23", "8 c #601B0D", "9 c #463418", "0 c #412421", "q c #453622", "w c #4C3C26", "e c #483432", "r c #473432", "t c #513E3B", "y c #7C3932", "u c #324E2D", "i c #2D4529", "p c #4F472A", "a c #4E4420", "s c #52432D", "d c #48453E", "f c #524339", "g c #0D1955", "h c #1E254B", "j c #192355", "k c #292D47", "l c #2F334E", "z c #2D3042", "x c #3A3942", "c c #31354E", "v c #212955", "b c #293055", "n c #4C4A48", "m c #4C4741", "M c #524E42", "N c #524C4B", "B c #54514C", "V c #515F4D", "C c #4E4D53", "Z c #555353", "A c #5E5957", "S c #5C5959", "D c #5E5754", "F c #644F4D", "G c #605C4D", "H c #755C41", "J c #625B58", "K c #64635D", "L c #66695B", "P c #64785F", "I c #585B68", "U c #4C5276", "Y c #6C6764", "T c #6D6863", "R c #666666", "E c #726860", "W c #756E6A", "Q c #7D746C", "! c #7C7976", "~ c #727377", "^ c #636677", "/ c #943926", "( c #9C5A4C", ") c #816E5A", "_ c #8F6763", "` c #8F6864", "' c #906964", "] c #867665", "[ c #8A7D6B", "{ c #93726E", "} c #857B71", "| c #827E7C", " . c #A17269", ".. c #E46B53", "X. c #C46D64", "o. c #7F9B7B", "O. c #74B369", "+. c #9A8437", "@. c #9E8D54", "#. c #92866C", "$. c #8A837A", "%. c #938979", "&. c #80987B", "*. c #B89875", "=. c #D39B49", "-. c #D0A25F", ";. c #CEA469", ":. c #DAAC6D", ">. c #ECBB76", ",. c #86D07A", "<. c #E9CB61", "1. c #EDD47D", "2. c #5D6385", "3. c #5E679B", "4. c #626581", "5. c #757889", "6. c #636B9D", "7. c #4F5EAA", "8. c #656EA4", "9. c #747DAA", "0. c #6A74B0", "q. c #274AFF", "w. c #5B6EE2", "e. c #4C69FF", "r. c #5F79FF", "t. c #617BFF", "y. c #7B84BC", "u. c #7D8CE8", "i. c #6B83FF", "p. c #7087FF", "a. c #7B90FF", "s. c #868584", "d. c #8D8983", "f. c #938B82", "g. c #948D8C", "h. c #9A8280", "j. c #879F81", "k. c #97928E", "l. c #99938C", "z. c #9B9085", "x. c #969290", "c. c #9A9593", "v. c #9C9896", "b. c #9E9C9C", "n. c #A1968A", "m. c #A3988C", "M. c #A39A99", "N. c #A29C95", "B. c #9BBD95", "V. c #8CA486", "C. c #B3A188", "Z. c #A6A395", "A. c #AAA49B", "S. c #A2A59D", "D. c #BAAD9D", "F. c #B0A396", "G. c #9396AE", "H. c #9B9EB6", "J. c #878CAD", "K. c #A3A2A2", "L. c #AAA6A3", "P. c #ABABAA", "I. c #AFABA7", "U. c #BAAFA3", "Y. c #B6AEA3", "T. c #BDB2A5", "R. c #BCB2AA", "E. c #A1A5BE", "W. c #B7B5B5", "Q. c #BDB8B3", "!. c #D79C96", "~. c #D89E97", "^. c #EE9887", "/. c #EC9A88", "(. c #CBB299", "). c #CCB89B", "_. c #DDACA6", "`. c #DEAEA8", "'. c #C1B5A7", "]. c #D3BEA8", "[. c #D2BDA7", "{. c #C4BCB2", "}. c #F4BBAF", "|. c #F4BDB3", " X c #E4BBB7", ".X c #97EC89", "XX c #92E384", "oX c #A9C9A3", "OX c #B3DAAD", "+X c #BCE2B5", "@X c #EFDB93", "#X c #F0DB93", "$X c #F8D39F", "%X c #F6C886", "&X c #CEC1B3", "*X c #D7CABB", "=X c #DBCBBA", "-X c #D6C6B6", ";X c #E2D6AD", ":X c #E4D2B9", ">X c #C3ECBD", ",X c #F4E7BA", " 4 M Q (.>.p UX", "UX B FXkXkXjXjXjX].] K.fXc.GXT.Q.IXW aXaXE K.3 < C.:.w UX", "UX n FXjXjXjXjXjX].] v.yXk.BXF.A.LXf.aXuX! s.> : %.;.q UX", "UX B FXjXjXlXjXlX&X] c.yXN.MX{.{.lX{.sXiXR.f.> : #.;.q UX", "UX n mX=X=X=X=X=X(.) x.iXY.lX=X&XiXjXpXpXpX$.> : [ -.q UX", "UX f =X(.(.(.(.(.*.H g.sX*X*X=X=X=XjX-X{.pX} - : [ =.9 UX", "UX . | I.d.'.'.U.D.D.U.F.f.E - UX", "UX 6 P.M.M.M.M.M.%.F P K K Y %.l.n.f.n.m.h.] = 3 C ~ 6.1 UX", "UX Z PXcXcXcXcXcX X{ B.P m m T Q } } } } } K x 5.3X5Xc UX", "UX n DXgXgXgXgXgX_.` oXo.V # Z J J G J J J R . x 5.tX4Xl UX", "UX N DXhXgXgXgXhX`._ >XOXoXS. . . . . o 2 I ^ J.AX5Xl UX", "UX N HXhXhXhXhXhX`.` bX+XV.5 M.c.g.g.l.v.K.W.% I G.SX5Xc UX", "UX N DXhXhXhXhXhX`.' bX>X&. M.c.x.x.l.v.K.L. I H.SX4Xl UX", "UX N HXhXhXhXhXhX`.' bXbXj. . . . X . I E.SXu.k UX", "UX n vX!.!.!.!.~.X.y .X.X.X.X.XXX,.O. U 0.0.3.8.0.7Xw.h UX", "UX O N r r r r e 0 # u u u u u u i 7 % 1 k 1 2 k c h @ UX", "UXUX UXUX", "UXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUXUX" }; debian/compat0000644000000000000000000000000211701660333010364 0ustar 8