4 # Note that to use this script, you need to add "%_gpg_name" to your
11 echo "Usage: make-yum.sh builddir"
15 if [ -z "$GPG_AGENT_INFO" ] ; then
16 echo "Press enter to continue if gpg-agent is running,"
17 echo "Otherwise, run:"
19 echo " eval \$(gpg-agent --daemon)"
21 echo "to preserve your sanity."
27 # Sign all RPMs found under $BUILDDIR/
28 rpmsign
--addsign $
(find $BUILDDIR -name "*.rpm" -print)
30 # Create the YUM repo files for each architecture
31 for arch
in i386 source-i386 i586 source-i586 i686 source-i686 x86_64 source-x86_64
; do
32 for dir
in $
(find $BUILDDIR -name "$arch" -type d
-print) ; do
34 cp yum
/key
$dir/RPM-GPG-KEY-binary-meta
38 # Sign the repomd.xml files (opensuse checks for this)
39 for rfile
in $
(find $BUILDDIR -type f
-name "repomd.xml" -print) ; do
40 gpg
--use-agent --default-key B6C2250E
--armor \