From 2048d25978541fc4c8b0d8c035cd2fafd577fe572db4403b8bf0b75501a503a0 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Thu, 14 Nov 2024 02:24:19 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=20version=201.2.8=20=20=20*=20T?= =?UTF-8?q?his=20release=20contains=20the=20following=20change=20to=20the?= =?UTF-8?q?=20way=20icons=20are=20displayed=20=20=20=20=20in=20the=20termi?= =?UTF-8?q?nal=20when=20COLORTERM=3Dtruecolor=20in=20the=20environment=20v?= =?UTF-8?q?ariables:=20=20=20=20=20The=20vast=20majority=20of=20monospaced?= =?UTF-8?q?=20fonts=20are=20roughly=20half=20as=20wide=20as=20they=20=20?= =?UTF-8?q?=20=20=20are=20tall;=20to=20account=20for=20this=20when=20displ?= =?UTF-8?q?aying=20icons,=20`xprop`=20draws=20each=20=20=20=20=20pixel=20t?= =?UTF-8?q?wice=20in=20the=20horizontal,=20which=20nicely=20evens=20out=20?= =?UTF-8?q?the=20proportions.=20=20=20=20=20This=20patch=20utilizes=20the?= =?UTF-8?q?=20Lower=20Half=20Block=20character=20(=E2=96=84)=20to=20obtain?= =?UTF-8?q?=20the=20=20=20=20=20same=20result=20in=20a=20quarter=20of=20th?= =?UTF-8?q?e=20space.=20By=20setting=20both=20a=20background=20and=20=20?= =?UTF-8?q?=20=20=20a=20foreground=20color,=20we=20can=20draw=20two=20pixe?= =?UTF-8?q?ls=20per=20character=20cell,=20thereby=20=20=20=20=20halving=20?= =?UTF-8?q?the=20apparent=20height=20of=20an=20icon=20rather=20than=20doub?= =?UTF-8?q?ling=20its=20width.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xprop?expand=0&rev=19 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + xprop-1.2.7.tar.xz | 3 ++ xprop-1.2.8.tar.xz | 3 ++ xprop.changes | 109 +++++++++++++++++++++++++++++++++++++++++++++ xprop.spec | 53 ++++++++++++++++++++++ 6 files changed, 192 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 xprop-1.2.7.tar.xz create mode 100644 xprop-1.2.8.tar.xz create mode 100644 xprop.changes create mode 100644 xprop.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/xprop-1.2.7.tar.xz b/xprop-1.2.7.tar.xz new file mode 100644 index 0000000..dad2d48 --- /dev/null +++ b/xprop-1.2.7.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4436e3148bb91a162406230d9f736a49ca8b50b74790015dc15d78d6ce8e825f +size 144216 diff --git a/xprop-1.2.8.tar.xz b/xprop-1.2.8.tar.xz new file mode 100644 index 0000000..87626a7 --- /dev/null +++ b/xprop-1.2.8.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d689e2adb7ef7b439f6469b51cda8a7daefc83243854c2a3b8f84d0f029d67ee +size 147396 diff --git a/xprop.changes b/xprop.changes new file mode 100644 index 0000000..71dd22f --- /dev/null +++ b/xprop.changes @@ -0,0 +1,109 @@ +------------------------------------------------------------------- +Thu Nov 14 02:21:38 UTC 2024 - Stefan Dirsch + +- Update to version 1.2.8 + * This release contains the following change to the way icons are displayed + in the terminal when COLORTERM=truecolor in the environment variables: + The vast majority of monospaced fonts are roughly half as wide as they + are tall; to account for this when displaying icons, `xprop` draws each + pixel twice in the horizontal, which nicely evens out the proportions. + This patch utilizes the Lower Half Block character (▄) to obtain the + same result in a quarter of the space. By setting both a background and + a foreground color, we can draw two pixels per character cell, thereby + halving the apparent height of an icon rather than doubling its width. + +------------------------------------------------------------------- +Sun Feb 4 21:12:31 UTC 2024 - Stefan Dirsch + +- Update to version 1.2.7 + * This release fixes a failure to build with C23 compilers. + +------------------------------------------------------------------- +Sun Dec 4 22:29:05 UTC 2022 - Stefan Dirsch + +- Update to version 1.2.6 + * Fix spelling/wording issues + * gitlab CI: add a basic build test + * gitlab CI: stop requiring Signed-off-by in commits + * Mark help(), usage(), and grammar() with _X_NORETURN _X_COLD + * Declare help() and print_help() as static + * Rename "dpy" function arguments to "display" to avoid shadowing global + * Resolve many gcc -Wsign-compare warnings + * Variable scope reductions as suggested by cppcheck + +------------------------------------------------------------------- +Fri Mar 12 22:17:57 UTC 2021 - Dirk Müller + +- modernize spec file (move license to licensedir) + +------------------------------------------------------------------- +Fri Nov 20 10:57:17 UTC 2020 - Stefan Dirsch + +- Update to version 1.2.5 + * Add missing `-help` function + * Make output with unknown width terminal the same as old code + * Free string list returned from XmbTextPropertyToTextList + * Correct icon buffer width computation for truecolor terminals + * Check return value from ioctl(TIOCGWINSZ) + * Don't display icons if they would line-wrap. + * Break down memory allocation logic and fix overallocating for UTF8. + * Fix aspect ratio for icon display by using two characters per icon pixel. + * Support true color output for icons if the terminal advertises it. + * Fix formatting of back-to-back not shown icons. + +------------------------------------------------------------------- +Sun Mar 10 11:51:03 UTC 2019 - Stefan Dirsch + +- Update to version 1.2.4 + * Add missing braces around else clause in Read_Quoted() + * Fix -Wsign-compare warning in dsimple.c + * Fix typo in xprop.man + * Update configure.ac bug URL for gitlab migration + * Update README for gitlab migration + +------------------------------------------------------------------- +Wed Apr 4 16:27:31 UTC 2018 - sndirsch@suse.com + +- Update to version 1.2.3 + * configure: Drop AM_MAINTAINER_MODE + * autogen.sh: Honor NOCONFIGURE=1 + * Print which option was in error along with usage message + * Add -version option to print program version + * Free the thunks used by Show_Prop + * Free the data returned by XListProperties() + * Free the data returned by XGetWindowProperty() + * Free the data returned by Format_Icons() + * autogen.sh: use quoted string variables + * autogen: add default patch prefix + * autogen.sh: use exec instead of waiting for configure to finish + +------------------------------------------------------------------- +Tue Aug 13 14:58:11 UTC 2013 - zaitor@opensuse.org + +- Update to version 1.2.2: + + Mark usage() as noreturn, as suggested by gcc + -Wmissing-noreturn. + + Fix const conversion warnings from gcc. + + Add unicode argument to Format_Len_String to reduce code + duplication. + + Replace strlen/malloc/memcpy set with strdup. + + Mark FatalError() as taking printf-style arguments. + + config: Add missing AC_CONFIG_SRCDIR. + + Enable setting property of type UTF8_STRING. + + Expand description in README a little. + +------------------------------------------------------------------- +Sat Apr 14 16:26:46 UTC 2012 - dimstar@opensuse.org + +- Update to version 1.2.1: + + Improves the man page. + + Fixes issues found by static code analysis + + Other cleanups to the code + + Build system fixes. +- Add pkgconfig(xproto) BuildRequires: New dependency. + +------------------------------------------------------------------- +Fri Apr 13 08:46:08 UTC 2012 - vuntz@opensuse.org + +- Split xprop from xorg-x11. Initial version: 1.2.0. + diff --git a/xprop.spec b/xprop.spec new file mode 100644 index 0000000..2167abe --- /dev/null +++ b/xprop.spec @@ -0,0 +1,53 @@ +# +# spec file for package xprop +# +# Copyright (c) 2024 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: xprop +Version: 1.2.8 +Release: 0 +Summary: Property displayer for X +License: MIT +Group: System/X11/Utilities +URL: https://xorg.freedesktop.org/ +Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz +BuildRequires: pkgconfig +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xorg-macros) >= 1.8 +BuildRequires: pkgconfig(xproto) >= 7.0.17 +# This was part of the xorg-x11 package up to version 7.6 +Conflicts: xorg-x11 <= 7.6 + +%description +xprop displays window and font properties of an X server. + +%prep +%setup -q + +%build +%configure +%make_build + +%install +%make_install + +%files +%license COPYING +%doc ChangeLog README.md +%{_bindir}/xprop +%{_mandir}/man1/xprop.1%{?ext_man} + +%changelog