[gitso] Initial import (#752311)

Cédric OLIVIER cquad at fedoraproject.org
Thu Jan 5 20:16:38 UTC 2012


commit dfb94f4b422867453795c4085c41e6c7a661aa1d
Author: cquad <cedric.olivier at free.fr>
Date:   Thu Jan 5 21:16:28 2012 +0100

    Initial import (#752311)

 .gitignore                    |    1 +
 gitso-0.6-patch_desktop.patch |   16 ++++++
 gitso.spec                    |  106 +++++++++++++++++++++++++++++++++++++++++
 sources                       |    1 +
 4 files changed, 124 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..65a22f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gitso_0.6_src.tar.bz2
diff --git a/gitso-0.6-patch_desktop.patch b/gitso-0.6-patch_desktop.patch
new file mode 100644
index 0000000..aaf7bfe
--- /dev/null
+++ b/gitso-0.6-patch_desktop.patch
@@ -0,0 +1,16 @@
+--- gitso-0.6/arch/linux/gitso-desktop.patch1	2011-12-24 16:46:22.442496993 +0100
++++ gitso-0.6/arch/linux/gitso.desktop	2011-12-24 16:46:46.789898561 +0100
+@@ -1,12 +1,10 @@
+ [Desktop Entry]
+-Version=0.6
+-Encoding=UTF-8
+ Name=Gitso
+ Name[en_GB]=Gitso
+ Name[en_US]=Gitso
+ Comment=Connect to others using VNC protocol
+ Exec=gitso
+-Icon=/usr/share/gitso/icon.ico
++Icon=gitso
+ Terminal=false
+ MimeType=application/x-remote-connection;
+ Type=Application
diff --git a/gitso.spec b/gitso.spec
new file mode 100644
index 0000000..34122fd
--- /dev/null
+++ b/gitso.spec
@@ -0,0 +1,106 @@
+
+Name:           gitso
+Version:        0.6
+Release:        6%{?dist}
+Summary:        A front-end to reverse VNC connections
+
+Group:          Applications/Internet
+License:        GPLv3+
+URL:            http://code.google.com/p/gitso/
+Source0:        http://gitso.googlecode.com/files/%{name}_%{version}_src.tar.bz2
+
+Patch1:         %{name}-%{version}-patch_desktop.patch
+
+BuildArch:      noarch
+BuildRequires:  desktop-file-utils
+Requires:       vnc, x11vnc, vnc-server, wxPython
+
+
+%description
+Gitso is a front-end to reverse VNC connections. It is meant to be a 
+simple two-step process that connects one person to another screen.
+
+%prep
+%setup -q
+%patch1 -p1
+
+%build
+
+%install
+mkdir -p %{buildroot}%{_bindir}
+install -p arch/linux/%{name} $RPM_BUILD_ROOT%{_bindir}/
+
+install -d 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -pm 0644 Gitso.py $RPM_BUILD_ROOT%{_datadir}/%{name}/
+install -pm 0644 ConnectionWindow.py $RPM_BUILD_ROOT%{_datadir}/%{name}/
+install -pm 0644 AboutWindow.py $RPM_BUILD_ROOT%{_datadir}/%{name}/
+install -pm 0644 GitsoThread.py $RPM_BUILD_ROOT%{_datadir}/%{name}/
+install -pm 0644 Processes.py $RPM_BUILD_ROOT%{_datadir}/%{name}/
+install -pm 0644 ArgsParser.py $RPM_BUILD_ROOT%{_datadir}/%{name}/
+install -pm 0644 __init__.py $RPM_BUILD_ROOT%{_datadir}/%{name}/
+install -pm 0644 NATPMP.py $RPM_BUILD_ROOT%{_datadir}/%{name}/
+
+install -d 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
+install -p -m 644 icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
+
+install -pm 0644 icon.ico $RPM_BUILD_ROOT%{_datadir}/%{name}/
+
+desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ arch/linux/%{name}.desktop
+
+mkdir -p %{buildroot}%{_mandir}/man1
+install -p arch/linux/%{name}.1 %{buildroot}%{_mandir}/man1/
+chmod -x %{buildroot}%{_mandir}/man1/%{name}.1
+
+# Remove shebang from Python libraries
+for lib in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.py; do
+ sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
+ touch -r $lib $lib.new &&
+ mv $lib.new $lib
+done
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING CHANGELOG.txt
+%{_mandir}/man1/%{name}.1*
+%{_datadir}/%{name}/
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
+
+%changelog
+* Wed Jan 04 2012 Cédric OLIVIER <cedric.olivier at free.fr> 0.6-6
+- Update GPLv3 licence to GPLv3+
+
+* Tue Jan 03 2012 Cédric OLIVIER <cedric.olivier at free.fr> 0.6-5
+- Add a build section
+- Change manpage name in files section in case the man pages compressing format
+ changes.
+
+* Tue Jan 03 2012 Cédric OLIVIER <cedric.olivier at free.fr> 0.6-4
+- Add noarch
+- Remove shebang from Python libraries
+
+* Sat Dec 24 2011 Cedric OLIVIER <cedric.olivier at free.fr> 0.6-3
+- Removing patch2 to conform to upstream
+
+* Sat Dec 24 2011 Cedric OLIVIER <cedric.olivier at free.fr> 0.6-2
+- Removing unneeded definition of the python_sitelib macro
+- Removing python-devel from buildrequires
+- Removing python and wxGTK requires , which are already required by wxPython
+- Change install destination 
+- Modification of .desktop patch file
+
+* Thu Nov 8 2011 Cedric OLIVIER <cedric.olivier at free.fr> 0.6-1
+- First release
diff --git a/sources b/sources
index e69de29..e169923 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d0eaacf0b546ab5300523de1e5dab9b6  gitso_0.6_src.tar.bz2


More information about the scm-commits mailing list