diff --git a/.mrconfig b/.mrconfig index 612c504..9502d65 100644 --- a/.mrconfig +++ b/.mrconfig @@ -5,3 +5,15 @@ checkout = git clone https://github.com/colab-community/colab.git --branch pypi [mailman-api] checkout = git clone https://github.com/TracyWebTech/mailman-api.git + +[simplejson] +checkout = git clone https://github.com/simplejson/simplejson.git + +[bottle] +checkout = git clone https://github.com/defnull/bottle.git + +[paste] +checkout = hg clone http://bitbucket.org/ianb/paste + +[six] +checkout = hg clone https://bitbucket.org/gutworth/six diff --git a/build_setuptools_rpms.sh b/build_setuptools_rpms.sh new file mode 100755 index 0000000..9167578 --- /dev/null +++ b/build_setuptools_rpms.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# Atualizando os repositorios +mr checkout + +# Copiando os arquivos de configuração editados +CONFIGS="bottle mailman-api" + +for cfg in $CONFIGS; do + echo "Copying $cfg setup.cfg..."; + cp cfg/${cfg}_setup.cfg $cfg/setup.cfg +done + +# Criando os rpms +DIRS="six simplejson paste bottle mailman-api" + +mkdir -p packages + +for dir in $DIRS; do + cd $dir; + python setup.py bdist_rpm; + cp dist/*.rpm ../packages; + cd ..; +done + diff --git a/cfg/bottle_setup.cfg b/cfg/bottle_setup.cfg new file mode 100644 index 0000000..2be5677 --- /dev/null +++ b/cfg/bottle_setup.cfg @@ -0,0 +1,5 @@ +[bdist_wheel] +universal = 1 + +[bdist_rpm] +requires = Paste six diff --git a/cfg/mailman-api_setup.cfg b/cfg/mailman-api_setup.cfg new file mode 100644 index 0000000..848c2ad --- /dev/null +++ b/cfg/mailman-api_setup.cfg @@ -0,0 +1,2 @@ +[bdist_rpm] +requires = Paste >= 1.7.5.1 bottle >= 0.11.6 simplejson >= 3.3.1 -- libgit2 0.21.2