...
 
Commits (3)
......@@ -32,12 +32,11 @@ __DATA__
%define perlversion %(perl -e 'use Config; print $Config{version}')
%define appname Sys-Virt-TCK
%define _extra_release %{?extra_release:%{extra_release}}
Summary: Sys::Virt::TCK - libvirt Technology Compatibility Kit
Name: perl-%{appname}
Version: @VERSION@
Release: 1%{_extra_release}
Release: 1
License: GPLv2
Group: Development/Tools
Source: http://libvirt.org/sources/tck/%{appname}-v%{version}.tar.gz
......
#!/bin/sh
#
# This script is used to Test::AutoBuild (http://www.autobuild.org)
# to perform automated builds of the Sys-Virt module
#
# Copyright (C) 2009 Red Hat, Inc.
# Copyright (C) 2009 Daniel P. Berrange
#
......@@ -21,9 +18,7 @@ set -e
rm -rf MANIFEST blib _build Build
test -z "$AUTOBUILD_INSTALL_ROOT" && AUTOBUILD_INSTALL_ROOT=$HOME/builder
perl Build.PL install_base=$AUTOBUILD_INSTALL_ROOT
perl Build.PL install_base=$HOME/builder
./Build
./Build manifest
......@@ -47,13 +42,7 @@ rm -f $NAME-*.tar.gz
./Build dist
if [ -f /usr/bin/rpmbuild ]; then
if [ -n "$AUTOBUILD_COUNTER" ]; then
EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
else
NOW=`date +"%s"`
EXTRA_RELEASE=".$USER$NOW"
fi
rpmbuild -ta --define "extra_release $EXTRA_RELEASE" --clean $NAME-*.tar.gz
rpmbuild -ta --clean $NAME-*.tar.gz
fi
exit 0