Skip to content

Instantly share code, notes, and snippets.

@tchollingsworth
Created June 24, 2013 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tchollingsworth/5854722 to your computer and use it in GitHub Desktop.
Save tchollingsworth/5854722 to your computer and use it in GitHub Desktop.
add nodejs' ExclusiveArch to a directory full of fedpkg clones
for dir in *; do
cd $dir
spec=$(fedpkg gimmespec)
git checkout master
sed -ri 's/BuildArch:(\s*)noarch/BuildArch:\1noarch\nExclusiveArch: %{nodejs_arches} noarch/' $spec
rpmdev-bumpspec -c'restrict to compatible arches' $spec
fedpkg ci -c
git checkout f19
git merge master
git checkout f18
sed -ri 's/BuildArch:(\s*)noarch/BuildArch:\1noarch\nExclusiveArch: %{ix86} x86_64 %{arm} noarch/' $spec
rpmdev-bumpspec -c'restrict to compatible arches' $spec
fedpkg ci -c
git checkout el6
git merge f18
git checkout master
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment