[key-mon/f19] Initial import (#1039138)

ryan lerch ryanlerch at fedoraproject.org
Thu Feb 20 16:35:03 UTC 2014


commit 7e6acfe093d253277cd4418a3ca9ad96e43559ab
Author: Ryan Lerch <ryanlerch at gmail.com>
Date:   Thu Feb 20 11:34:00 2014 -0500

    Initial import (#1039138)

 .gitignore   |    1 +
 key-mon.spec |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources      |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fd04874 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/key-mon-1.16.zip
diff --git a/key-mon.spec b/key-mon.spec
new file mode 100644
index 0000000..1334066
--- /dev/null
+++ b/key-mon.spec
@@ -0,0 +1,60 @@
+Name:               key-mon
+Version:            1.16
+Release:            1%{?dist}
+Summary:            A screen cast utility that displays your keyboard and mouse status
+Group:              Development/Libraries
+License:            ASL 2.0
+URL:                http://code.google.com/p/key-mon/
+Source0:            https://pypi.python.org/packages/source/k/key-mon/key-mon-%{version}.zip
+BuildArch:          noarch
+BuildRequires:      python2-devel
+BuildRequires:      desktop-file-utils
+Requires:           pygtk2
+Requires:           python-xlib
+Requires:           librsvg2
+
+%description
+Key-mon is useful for teaching since it shows the current status of your
+keyboard and mouse and you use them in another application.  No longer do
+you need to say 'Now I'm pressing the Ctrl-D key', your students can just
+see the keystroke for themselves.
+
+%prep
+%setup -q
+rm src/keymon/themes/clear/config~
+
+#remove hashbang python line from library python files
+for lib in src/keymon/*.py; do
+ sed '1{\@^#!/usr/bin/python at d}' $lib > $lib.new &&
+ touch -r $lib $lib.new &&
+ mv $lib.new $lib
+done
+
+#make key-mon explicitly call python2
+#sed '1d' src/key-mon > src/key-mon.bak
+#echo "#!%{__python2}" > src/key-mon
+#cat src/key-mon.bak >> src/key-mon
+#rm src/key-mon.bak
+
+%build
+%{__python2} setup.py build
+
+%install
+%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
+desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications icons/%{name}.desktop
+#manually install the manpage
+install -d -m 0755 %{buildroot}%{_mandir}/man1
+install -m 0644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
+
+%files
+%{_mandir}/man1/%{name}.1*
+%doc README.rst COPYING
+%{_bindir}/%{name}
+%{_datadir}/pixmaps/%{name}.xpm
+%{_datadir}/applications/%{name}.desktop
+%{python2_sitelib}/keymon/
+%{python2_sitelib}/key_mon-%{version}*
+
+%changelog
+* Fri Dec 06 2013  Ryan Lerch <ryanlerch at fedoraproject.org> 1.16-1
+- initial package for Fedora
diff --git a/sources b/sources
index e69de29..ab34a43 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dceed6b5b773c14b62e2144ca0e6c8b0  key-mon-1.16.zip


More information about the scm-commits mailing list