[ghc-rpm-macros] add comment about for unbootstrapping hscolour; add test-rebuild script for testing changes
Jens Petersen
petersen at fedoraproject.org
Fri Oct 5 09:55:11 UTC 2012
commit 07fccfd9a1af12f2fa61301a06539dde4bc0a8cc
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Oct 5 18:55:03 2012 +0900
add comment about for unbootstrapping hscolour; add test-rebuild script for testing changes
so far script gives diffs of requires and provides
ghc-rpm-macros.spec | 2 ++
test-rebuild | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec
index 9e5f663..cda882d 100644
--- a/ghc-rpm-macros.spec
+++ b/ghc-rpm-macros.spec
@@ -4,6 +4,8 @@
# uncomment to bootstrap without hscolour
#%%global without_hscolour 1
+# uncomment to unbootstrap hscolour on again
+#%%undefine without_hscolour
Name: ghc-rpm-macros
Version: 0.97.1
diff --git a/test-rebuild b/test-rebuild
new file mode 100755
index 0000000..96e39f8
--- /dev/null
+++ b/test-rebuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+PKG=$1
+
+fedpkg clone -a $PKG
+cd $PKG
+
+sudo yum build-depends $PKG
+
+fedpkg local
+
+mkdir -p test
+
+cd $(arch)
+
+PKGS=$(rpm -qp --qf "%{name}\n" *)
+
+sudo yum install $PKGS
+
+for i in $PKGS; do
+ for k in requires provides; do
+ rpm -qp --$k $i*.rpm > ../test/$i.$k.test
+ rpm -q --$k $i > ../test/$i.$k.installed
+ diff -u ../test/$i.$k.installed ../test/$i.$k.test > ../$i.$k.diff
+ done
+done
More information about the scm-commits
mailing list