~percona-dev/percona-server/release-5.5.11-20.2-fix-bug-764138

« back to all changes in this revision

Viewing changes to build/build-rpm.sh

  • Committer: Ignacio Nin
  • Date: 2011-03-19 08:50:37 UTC
  • mfrom: (91.1.1 release-5.5.9-20.1)
  • Revision ID: ignacio.nin@percona.com-20110319085037-llxjusfhpgjxvt3u
debian packaging update and testing

Tested and updated the debian packaging. Changes include:
- Import patches to dpatch system
- Polish control file
- Polish rules file
- Polish post-install scripts
- Move installation from /opt/percona to /usr
- Add builscript for debian
- Downgrade format to 1.0 in order to conform to requirements

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# Examine parameters
19
19
TARGET=''
20
20
TARGET_CFLAGS=''
 
21
SIGN='--sign' # We sign by default
21
22
 
22
23
# Check if we have a functional getopt(1)
23
24
if ! getopt --test
24
25
then
25
 
    go_out="$(getopt --options="i" --longoptions=i686 \
 
26
    go_out="$(getopt --options="iK" --longoptions=i686,nosign \
26
27
        --name="$(basename "$0")" -- "$@")"
27
28
    test $? -eq 0 || exit 1
28
29
    eval set -- $go_out
37
38
        TARGET="--target i686"
38
39
        TARGET_CFLAGS="-m32 -march=i686"
39
40
        ;;
 
41
    -K | --nosign )
 
42
        shift
 
43
        SIGN=''
 
44
        ;;
40
45
    esac
41
46
done
42
47
 
121
126
    cd "$WORKDIR"
122
127
 
123
128
    # Issue RPM command
124
 
    rpmbuild --sign -ba --clean --with yassl $TARGET \
 
129
    rpmbuild -ba --clean --with yassl $TARGET $SIGN \
125
130
        "$SOURCEDIR/build/percona-server.spec" \
126
131
        --define "_topdir $WORKDIR_ABS" \
127
132
        --define "redhat_version $REDHAT_RELEASE" \