[X2Go-Commits] buildscripts.git - master (branch) updated: cc8c98a1f6b2ad748214df80931fed74a7e7bc89
X2Go dev team
git-admin at x2go.org
Sat Nov 30 00:44:48 CET 2013
The branch, master has been updated
via cc8c98a1f6b2ad748214df80931fed74a7e7bc89 (commit)
from 21eb682c31d5acba54b95f7cdab0f7592f05c632 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit cc8c98a1f6b2ad748214df80931fed74a7e7bc89
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Sat Nov 30 00:44:14 2013 +0100
handle noarch packages, only build them once
-----------------------------------------------------------------------
Summary of changes:
bin/build-rpm-package | 28 +++++++---------------------
1 file changed, 7 insertions(+), 21 deletions(-)
The diff of changes is:
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 04cbc35..30ee430 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -173,6 +173,8 @@ build_packages() {
PKG_RELEASE=$(cat $PROJECT.spec | egrep "^Release:.*" | awk '{ print $2 }')
PKG_SRCRELEASE=$(echo $PKG_RELEASE | sed -e 's/%{?dist}//')
+ IS_NOARCH=$(cat $PROJECT.spec | egrep "^BuildArch:.*noarch\$" 1>/dev/null 2>/dev/null && echo yes)
+
if [ "$COMPONENT" = "$COMPONENT_NIGHTLY" ]; then
IS_RELEASE="0"
else
@@ -196,25 +198,9 @@ build_packages() {
test -z $CODENAMES || echo $line | grep $CODENAMES || break
- # modify the section for non-main package builds
-
- ### TODO: How to host different builds (releases / nightlies in the same repository???)
-
- #[ "x$COMPONENT" != "xmain" ] && {
- # mv debian/control debian/control.tmp
- # cat debian/control.tmp | sed "s#Section:[\ ]*\(.*\)#Section: $COMPONENT/\1#g" > debian/control
- #}
-
# modify changelog for this build
- ### TODO: manipulate the version string in the .spec file
-
- #if [ "$COMPONENT" != "$COMPONENT_NIGHTLY" ]; then
- # dch --distribution $VERSION --force-distribution -l "+git$DATE.$GITREV+$l_CODENAME.$COMPONENT." "Auto-built $l_DIST $l_CODENAME package for $REPOS_SERVER repository (Git commit: $GIT_OBJECT_ID)."
- #else
- # dch --distribution $VERSION --force-distribution -l "~git$DATE.$GITREV+$l_CODENAME.$COMPONENT." "Development-Snapshot!!! Auto-built $l_DIST $l_CODENAME package for $REPOS_SERVER repository (Git commit: $GIT_OBJECT_ID)."
- #fi
-
+ ### TODO: add changelog entry for this automatic build
mkdir -p $PKGDIST/$l_DIST/$l_CODENAME/{x86_64,i386}
@@ -227,12 +213,12 @@ build_packages() {
# echo $PACKAGE_WITHOUT_OTHERMIRROR | grep $PROJECT >/dev/null || OTHERMIRROR="deb http://$REPOS_SERVER/$l_DIST $l_CODENAME $COMPONENT"
#fi
- [ "x$SKIP_ARCH" != "xx86_64" ] && {
+ if [ "x$SKIP_ARCH" != "xx86_64" ] || [ "$IS_NOARCH" = "yes" ]; then
mock -r ${l_DIST}-${l_CODENAME}-x86_64 --result $PKGDIST/$l_DIST/$l_CODENAME/x86_64 $PKGDIST/rpmbuild/SRPMS/$PROJECT-$UPSTREAM_VERSION-$PKG_SRCRELEASE.$IS_RELEASE.git$DATE.$GITREV.$COMPONENT.src.rpm
- }
- [ "x$SKIP_ARCH" != "xi386" ] && {
+ fi
+ if [ "x$SKIP_ARCH" != "xi386" ] && [ "$IS_NOARCH" != "yes" ]; then
mock -r ${l_DIST}-${l_CODENAME}-i386 --result $PKGDIST/$l_DIST/$l_CODENAME/i386 $PKGDIST/rpmbuild/SRPMS/$PROJECT-$UPSTREAM_VERSION-$PKG_SRCRELEASE.$IS_RELEASE.git$DATE.$GITREV.$COMPONENT.src.rpm
- }
+ fi
done
}
done
hooks/post-receive
--
buildscripts.git (X2Go packaging scripts)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "buildscripts.git" (X2Go packaging scripts).
More information about the x2go-commits
mailing list