distributions/fedora/build.sh
author František Kučera <franta-hg@frantovo.cz>
Mon, 29 Sep 2014 00:13:14 +0200
branchv_0
changeset 180 74a6d55da11c
child 188 54bacc7ed42b
permissions -rwxr-xr-x
RPM: simple script/spec for building .rpm for Fedora
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
180
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
#!/bin/bash
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
TOPDIR="$DIR/TMP";
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
DBPATH="$DIR/TMP/RPMDB";
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
rm -rf "$TOPDIR";
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
rpmbuild \
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
	--define "_dbpath $DBPATH" \
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
	--define "_topdir $TOPDIR" \
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
	-bb \
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
	"$DIR/sql-dk.spec";
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
	
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
cp "$TOPDIR"/RPMS/*/sql-dk-*.rpm .