summaryrefslogtreecommitdiff
path: root/xseticon
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-12-27 01:06:41 +0000
committerB Stack <bgstack15@gmail.com>2018-12-27 01:06:41 +0000
commitbac4ff6815279ac00711581e3f3628cc79f92bbb (patch)
tree0e44da268962707b637c74379cc17babd7c1b0ea /xseticon
parentMerge branch 'irfanview-bump' into 'master' (diff)
downloadstackrpms-bac4ff6815279ac00711581e3f3628cc79f92bbb.tar.gz
stackrpms-bac4ff6815279ac00711581e3f3628cc79f92bbb.tar.bz2
stackrpms-bac4ff6815279ac00711581e3f3628cc79f92bbb.zip
xseticon
Diffstat (limited to 'xseticon')
-rw-r--r--xseticon/README16
-rw-r--r--xseticon/xseticon.spec51
2 files changed, 67 insertions, 0 deletions
diff --git a/xseticon/README b/xseticon/README
new file mode 100644
index 0000000..d6d0f84
--- /dev/null
+++ b/xseticon/README
@@ -0,0 +1,16 @@
+usage: xseticon [options] path/to/icon.png
+options:
+ -name : apply icon to the window of the name supplied
+ -id : apply icon to the window id supplied
+
+Sets the window icon to the specified .png image. The image is loaded from
+the file at runtime and sent to the X server; thereafter the file does not
+need to exist, and can be deleted/renamed/modified without the X server or
+window manager noticing.
+If no window selection option is specified, the window can be interactively
+selected using the cursor.
+
+Hints:
+ xseticon -id "$WINDOWID" path/to/icon.png
+Will set the icon for an xterm.
+Source: http://www.leonerd.org.uk/code/xseticon/
diff --git a/xseticon/xseticon.spec b/xseticon/xseticon.spec
new file mode 100644
index 0000000..1e9c0ec
--- /dev/null
+++ b/xseticon/xseticon.spec
@@ -0,0 +1,51 @@
+%define debug_package %{nil}
+Name: xseticon
+Version: 0.1
+Release: 1%{?dist}
+Summary: set x application icons
+
+Group: Applications/X11
+License: GPLv2
+URL: http://www.leonerd.org.uk/code/xseticon/
+#Source0: %%{url}/%%{name}-%%{version}+bzr14.tar.gz
+Source0: https://gitlab.com/bgstack15/big-sources/raw/master/%{name}/%{name}-%{version}+bzr14.tar.gz
+Source1: README
+
+BuildRequires: libXmu-devel
+BuildRequires: gd-devel
+BuildRequires: glib2-devel
+#BuildArch: all
+#Requires:
+%global dirname %{name}-%{version}+bzr14
+
+%description
+Xterm, and likely many other X11 programs, do not set themselves window icons, which window managers typically use to represent that program window in switcher lists, taskbars, and so on. This program can set the X11 window icon for any given window, to that of a given image file.
+
+%prep
+%setup -q -c %{dirname}
+cd *
+cp -p %{SOURCE1} .
+# install to prefix provided by rpmbuild
+sed -i -r -e '/^\s*PREFIX=.*/s:^\s*PREFIX=.*:PREFIX=$(DESTDIR)/usr:' Makefile
+
+%build
+#%%configure
+cd *
+make %{?_smp_mflags}
+
+%install
+cd *
+%make_install
+
+%files
+%{_bindir}/%{name}
+%if 0%{?el6}%{?el7}
+%doc */LICENSE
+%else
+%license */LICENSE
+%endif
+%doc */README
+
+%changelog
+* Wed Dec 26 2018 B Stack <bgstack15@gmail.com> 0.1-1
+- Initial rpm built
bgstack15