[gtkwhiteboard] Initial import (#1.3).

Paulo Roma Cavalcanti roma at fedoraproject.org
Sun Jun 3 20:25:11 UTC 2012


commit 60cb817c01462813c7ec4eb1fd4fbc8a75feb5c4
Author: Paulo Roma Cavalcanti <promac at gmail.com>
Date:   Sun Jun 3 17:24:54 2012 -0300

    Initial import (#1.3).

 .gitignore            |    1 +
 gtkwhiteboard.desktop |    8 +++++
 gtkwhiteboard.sh      |    4 ++
 gtkwhiteboard.spec    |   77 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 whii.png              |  Bin 0 -> 74762 bytes
 6 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d585baf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gtkwhiteboard-1.3.zip
diff --git a/gtkwhiteboard.desktop b/gtkwhiteboard.desktop
new file mode 100644
index 0000000..4cc5aca
--- /dev/null
+++ b/gtkwhiteboard.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=gtkwhiteboard
+Comment=GTK Wiimote Whiteboard
+Icon=gtkwhiteboard
+Exec=gtkwhiteboard
+Terminal=false
+Type=Application
+Categories=GNOME;GTK;AudioVideo;
diff --git a/gtkwhiteboard.sh b/gtkwhiteboard.sh
new file mode 100644
index 0000000..984a71d
--- /dev/null
+++ b/gtkwhiteboard.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd gtkwhiteboard-1.3
+python ./gtkwhiteboard.py
diff --git a/gtkwhiteboard.spec b/gtkwhiteboard.spec
new file mode 100644
index 0000000..2212172
--- /dev/null
+++ b/gtkwhiteboard.spec
@@ -0,0 +1,77 @@
+%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
+
+Name:           gtkwhiteboard
+Version:        1.3
+Release:        5%{?dist}
+Summary:        GTK Wiimote Whiteboard
+Group:          Applications/Multimedia
+License:        MIT
+URL:            http://stepd.ca/gtkwhiteboard/
+Source0:        http://stepd.ca/gtkwhiteboard/%{name}-%{version}.zip
+Source1:        gtkwhiteboard.sh
+Source2:        gtkwhiteboard.desktop
+Source3:        whii.png
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  desktop-file-utils, python-devel >= 2.4
+Requires:       pybluez, wxPython, python-xlib
+BuildArch:      noarch
+                   
+%description
+Wii whiteboard python implementation.
+
+%prep
+%setup -q -c
+# fix wrong-file-end-of-line-encoding
+sed -i 's/\r//' README
+sed -i 's/\r//' mousecontrol.py
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{python_sitelib}/%{name}-%{version}
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_datadir}/pixmaps
+install -m 644 %{_builddir}/%{name}-%{version}/*.py \
+   %{buildroot}%{python_sitelib}/%{name}-%{version}
+install -m 644 %{_builddir}/%{name}-%{version}/%{name}.ico \
+   %{buildroot}%{python_sitelib}/%{name}-%{version}
+
+install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
+sed -i -e 's|%{name}-%{version}|%{python_sitelib}/%{name}-%{version}|g' \
+   %{buildroot}%{_bindir}/%{name}
+install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
+
+desktop-file-install --vendor ""                \
+  --dir %{buildroot}%{_datadir}/applications    \
+  %{SOURCE2}
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc README 
+%{_bindir}/%{name}
+%{python_sitelib}/*
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/pixmaps/%{name}.*
+
+%changelog
+* Sun Aug 14 2011 Paulo Roma <roma at lcg.ufrj.br> - 1.3-5
+- Changed icon.
+- Fixed wrong-file-end-of-line-encoding in the README file.
+
+* Mon Nov 16 2010 Paulo Roma <roma at lcg.ufrj.br> - 1.3-4
+- Fixed desktop entries.
+- Changed permissions of py files to 644.
+
+* Mon Nov 15 2010 Paulo Roma <roma at lcg.ufrj.br> - 1.3-3
+- Added BR python-devel.
+
+* Thu Oct 15 2009 Paulo Roma <roma at lcg.ufrj.br> - 1.3-2
+- Using desktop-file-install and changed license.
+
+* Thu Oct 15 2009 Paulo Roma <roma at lcg.ufrj.br> - 1.3-1
+- Initial spec file.
+
diff --git a/sources b/sources
index e69de29..7605155 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a44f5d7eff1e5b8f0a9c8a32b580f0fe  gtkwhiteboard-1.3.zip
diff --git a/whii.png b/whii.png
new file mode 100644
index 0000000..6a2a1d1
Binary files /dev/null and b/whii.png differ


More information about the scm-commits mailing list