gitso

gitso Commit Details


Date:2008-10-26 20:18:52 (16 years 1 month ago)
Author:gerberad
Branch:master
Commit:470da3d1ce56e42b0475b18f986328230f4c67be
Parents: 3877897f2c0cf854621b74c96f30b78bc40fa03b
Message:Added .rpm support in the build script.

Changes:

File differences

gitso/trunk/arch/linux/build_rpm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /bin/bash
echo -e "Setting up RPM build-root!"
if test "$1" = ""; then
echo -e "************************\nError: No arguments were given to build_rpm.sh\n************************\n"
fi
BUILD_ROOT="$1/rpm/tmp/gitso-root"
mkdir -p $BUILD_ROOT/usr/bin/
mkdir -p $BUILD_ROOT/usr/share/gitso/
mkdir -p $BUILD_ROOT/usr/share/applications/
mkdir -p $BUILD_ROOT/usr/share/doc/gitso/
mkdir -p $BUILD_ROOT/usr/share/man/man1
cp arch/linux/gitso $BUILD_ROOT/usr/bin/
chmod 755 $BUILD_ROOT/usr/bin/gitso
cp arch/linux/gitso.desktop $BUILD_ROOT/usr/share/applications/
cp copyright $BUILD_ROOT/usr/share/doc/gitso/
cp arch/linux/README.txt $BUILD_ROOT/usr/share/doc/gitso/README
gzip -cf arch/linux/changelog > $BUILD_ROOT/usr/share/doc/gitso/changelog.gz
cp Gitso.py $BUILD_ROOT/usr/share/gitso/
cp ConnectionWindow.py $BUILD_ROOT/usr/share/gitso/
cp AboutWindow.py $BUILD_ROOT/usr/share/gitso/
cp GitsoThread.py $BUILD_ROOT/usr/share/gitso/
cp Processes.py $BUILD_ROOT/usr/share/gitso/
cp ArgsParser.py $BUILD_ROOT/usr/share/gitso/
cp __init__.py $BUILD_ROOT/usr/share/gitso/
cp hosts.txt $BUILD_ROOT/usr/share/gitso/
cp icon.ico $BUILD_ROOT/usr/share/gitso/
cp icon.png $BUILD_ROOT/usr/share/gitso/
gzip -cf arch/linux/gitso.1 > $BUILD_ROOT/usr/share/man/man1/gitso.1.gz
gitso/trunk/arch/linux/gitso.desktop
11
2
2
33
44
55
[Desktop Entry]
Version=0.5
Version=0.6
Encoding=UTF-8
Name=Gitso
Name[en_GB]=Gitso
gitso/trunk/arch/linux/gitso_rpm.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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, x11vnc, tightvnc, wxGTK, python-wxGTK
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/copyright
%{_prefix}/doc/gitso/README
%{_prefix}/doc/gitso/changelog.gz
%{_prefix}/gitso/icon.png
%{_prefix}/gitso/ArgsParser.py
%{_prefix}/gitso/__init__.py
%{_prefix}/gitso/hosts.txt
%{_prefix}/gitso/AboutWindow.py
%{_prefix}/gitso/ConnectionWindow.py
%{_prefix}/gitso/GitsoThread.py
%{_prefix}/gitso/Gitso.py
%{_prefix}/gitso/Processes.py
%{_prefix}/gitso/icon.ico
%{_mandir}/man1/gitso.1.gz
%changelog
* Sun Oct 26 2008 Aaron Gerber <gerberad@gmail.com>
- Created RPM
gitso/trunk/makegitso.sh
11
22
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
320
421
522
......
5471
5572
5673
57
58
74
5975
6076
6177
......
115131
116132
117133
134
135
136
137
138
118139
119140
120141
121142
122143
144
145
146
147
148
149
150
151
152
153
123154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
124171
#! /bin/bash
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"
function mksrc {
P=`pwd`
TMP_PKG="../pkg"
rm -rf $TMP_PKG
mkdir -p $TMP_PKG/trunk/
cp -r ./ $TMP_PKG/trunk/
find $TMP_PKG/trunk -name ".svn" -exec rm -rf {} 2>&1 > /dev/null ';' 2>&1 > /dev/null
mv $TMP_PKG/trunk $TMP_PKG/gitso-0.6
tar -cj -C $TMP_PKG/ gitso-0.6 > $P/$SRC
rm -rf $TMP_PKG
}
if [ "$1" = "" ]; then
CLEAN="yes"
elif test "$1" = "--no-clean"; then
fi
elif test "`uname -a 2>&1 | grep Linux | grep -v which`"; then
DEB="gitso_0.6_all.deb"
TARGZ="gitso_0.6_all.tar.gz"
if test "`which dpkg 2>&1 | grep -v which`"; then
BUILDPATH="gitso"
TARGZPATH="Gitso"
echo -n "Creating $DEB"
echo -e " [done]\n"
echo -n "Creating gitso $SRC...."
mksrc
echo -e " [done]\n"
if [ "$CLEAN" = "yes" ]; then
rm -rf $BUILDPATH
rm -rf $TARGZPATH
find . -name "*.pyc" -exec rm {} ';'
fi
elif test "`which rpmbuild 2>&1 | grep -v which`"; then
# RPM version of Gitso
echo "Creating $RPM"
BUILD_DIR=`pwd`
export BUILD_DIR="$BUILD_DIR/build"
TMP="$BUILD_DIR/rpm/tmp"
BUILD_ROOT="$BUILD_DIR/rpm/tmp/gitso-root"
mkdir -p $BUILD_DIR/rpm/{BUILD,RPMS/$ARCH,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}
mkdir -p $BUILD_ROOT
mksrc
cp $SRC $BUILD_DIR/rpm/SOURCES/$SRC
cp arch/linux/gitso_rpm.spec $TMP
perl -e 's/%\(echo \$HOME\)/$ENV{'BUILD_DIR'}/g;' -pi $TMP/gitso_rpm.spec
rpmbuild -ba $TMP/gitso_rpm.spec
cp $BUILD_DIR/rpm/RPMS/i586/$RPM .
echo -e " [done]\n"
if [ "$CLEAN" = "yes" ]; then
rm -rf $BUILD_DIR
find . -name "*.pyc" -exec rm {} ';'
fi
fi
fi

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.08858s using 13 queries.