diff --git a/gitso/trunk/CHANGELOG.txt b/gitso/trunk/CHANGELOG.txt index 4814241..fc20c02 100644 --- a/gitso/trunk/CHANGELOG.txt +++ b/gitso/trunk/CHANGELOG.txt @@ -13,7 +13,7 @@ * --help # manpage for (All UNIX sytems) -# Support for .rpms (Fedora, OpenSUSE, CentOS) +# Support for .rpms (Fedora, OpenSUSE) # Implement Native VNC listener (OS X) # Better process management, user gets notified if connection is broken. # Licensing Updates (across the board). diff --git a/gitso/trunk/arch/linux/changelog b/gitso/trunk/arch/linux/changelog index 7324974..b41d71a 100644 --- a/gitso/trunk/arch/linux/changelog +++ b/gitso/trunk/arch/linux/changelog @@ -11,7 +11,7 @@ PACKAGE (0.6) karmic; urgency=low * --version * --help * manpage for (All UNIX sytems) - * Support for .rpms (Fedora, OpenSUSE, CentOS) + * Support for .rpms (Fedora, OpenSUSE) * Implement Native VNC listener (OS X) * Better process management, user gets notified if connection is broken. * Licensing Updates (across the board). diff --git a/gitso/trunk/arch/linux/gitso_rpm_centos.spec b/gitso/trunk/arch/linux/gitso_rpm_centos.spec new file mode 100644 index 0000000..cfc936c --- /dev/null +++ b/gitso/trunk/arch/linux/gitso_rpm_centos.spec @@ -0,0 +1,63 @@ +%define _topdir %(echo $HOME)/rpm +%define _tmppath %{_topdir}/tmp +%define _prefix /usr/share +%define _defaultdocdir %{_prefix}/doc +%define _mandir %{_prefix}/man +%define buildroot %{_tmppath}/gitso-root + + +Name: gitso +Summary: Gitso - Is to Support Others +Version: 0.6 +Release: 1 +License: GPL 3 +Group: Internet +Source: http://gitso.googlecode.com/files/gitso_0.6_src.tar.bz2 +URL: http://code.google.com/p/gitso/ + +Requires: python, vnc, x11vnc, vnc-server, wxGTK, wxPython +Buildroot: %{_tmppath}/gitso-root +Packager: Aaron Gerber + + + +%description +Gitso is a frontend to reverse VNC connections. It is meant to be a +simple two-step process that connects one person to another's screen. + +%prep +%setup + +%build + +%install +./arch/linux/build_rpm.sh %(echo $HOME) + +%clean + +%files +/usr/bin/gitso + +%{_prefix}/applications/gitso.desktop + +%{_prefix}/doc/gitso/COPYING +%{_prefix}/doc/gitso/README +%{_prefix}/doc/gitso/changelog.gz + +%{_prefix}/gitso/Gitso.py +%{_prefix}/gitso/ConnectionWindow.py +%{_prefix}/gitso/AboutWindow.py +%{_prefix}/gitso/GitsoThread.py +%{_prefix}/gitso/Processes.py +%{_prefix}/gitso/ArgsParser.py +%{_prefix}/gitso/__init__.py +%{_prefix}/gitso/NATPMP.py +%{_prefix}/gitso/hosts.txt +%{_prefix}/gitso/icon.ico +%{_prefix}/gitso/icon.png + +%{_mandir}/man1/gitso.1.gz + +%changelog +* Sun Oct 26 2008 Aaron Gerber +- Created RPM diff --git a/gitso/trunk/makegitso.sh b/gitso/trunk/makegitso.sh index a6a5442..d05507a 100755 --- a/gitso/trunk/makegitso.sh +++ b/gitso/trunk/makegitso.sh @@ -44,6 +44,8 @@ function mksrc { rm -rf $P/*.gz rm -rf $P/*.app rm -rf $P/*.dmg + rm -rf $P/*.deb + rm -rf $P/*.rpm rm -rf $P/*.exe rm -rf $TMP_PKG @@ -183,6 +185,10 @@ function helpMenu { echo -e "\tBUILD OPTIONS" echo -e "\t--fedora\tMake package for Fedora. (only avaible on Fedora)" echo -e "\t--opensuse\tMake package for OpenSUSE. (only avaible on OpenSUSE)" + + # Cent OS doesn't have wxWidget in it's repo.... + #echo -e "\t--centos\tMake package for CentOS. (only avaible on CentOS)" + echo -e "\t--source\tMake the source package. (All UNIX/Linux systems)\n" echo -e "\tOPTIONS:" echo -e "\t--no-clean\tDo not remove the build directory." @@ -201,7 +207,7 @@ DEB="gitso_0.6_all.deb" TARGZ="gitso_0.6_all.tar.gz" SRC="gitso_0.6_src.tar.bz2" RPM="gitso-0.6-1.i586.rpm" -RPMOUT="gitso_0.6-1_opensuse.i586.rpm" +RPMOUT="" OSX_BUILD_DIR=`pwd`"/dist" RPM_BUILD_DIR=`pwd`"/build" @@ -209,7 +215,7 @@ DEB_BUILD_DIR="gitso" DEB_TARGZ_PATH="Gitso" CLEAN="yes" -RPMNAME="opensuse" +RPMNAME="" USESRC="no" @@ -218,15 +224,17 @@ USESRC="no" ############################ for param in "$@" do -if test "${param}" = "--no-clean"; then + if test "${param}" = "--no-clean"; then CLEAN="no" elif test "${param}" = "--fedora"; then RPMNAME="fedora" RPMOUT="gitso_0.6-1_fedora.i386.rpm" + elif test "${param}" = "--centos"; then + RPMNAME="centos" + RPMOUT="gitso_0.6-1_centos.i386.rpm" elif test "${param}" = "--opensuse"; then RPMNAME="opensuse" - elif test "${param}" = "--opensuse"; then - RPMNAME="opensuse" + RPMOUT="gitso_0.6-1_opensuse.i586.rpm" elif test "${param}" = "--source"; then USESRC="yes" else @@ -337,8 +345,10 @@ elif test "`uname -a 2>&1 | grep Linux | grep -v which`"; then # yum --nogpgcheck install gitso_0.6-1_fedora.i386.rpm elif [ "$RPMNAME" = "opensuse" ]; then SPEC="gitso_rpm.spec" + elif [ "$RPMNAME" = "centos" ]; then + SPEC="gitso_rpm_centos.spec" else - echo -e "Error: Please '$RPMNAME' specify --opensuse or --fedora\n" + echo -e "Error: Invalid RPM Type: '$RPMNAME'\n\tPlease specify one of the following:\n\t--opensuse\n\t--fedora\n" exit 1 fi @@ -365,7 +375,10 @@ elif test "`uname -a 2>&1 | grep Linux | grep -v which`"; then elif [ "$RPMNAME" = "opensuse" ]; then export RPM_BUILD_ROOT="$HOME/rpmbuild/BUILDROOT/gitso-0.6-1.i386" rpmbuild -ba --buildroot=$RPM_BUILD_ROOT $TMP/$SPEC - fi + elif [ "$RPMNAME" = "centos" ]; then + export RPM_BUILD_ROOT="$HOME/rpmbuild/BUILDROOT/gitso-0.6-1.i386" + rpmbuild -ba --buildroot=$RPM_BUILD_ROOT $TMP/$SPEC + fi find $RPM_BUILD_DIR/rpm/RPMS -name "*.rpm" -exec cp {} $RPMOUT ';'