--- /dev/null
+#!/bin/sh
+
+echo create rpm
+python setup.py bdist_rpm --packager=Intra2net --group=Intra2net --vendor="Intra2net AG"
+
+echo create spec
+python setup.py bdist_rpm --packager=Intra2net --group=Intra2net --vendor="Intra2net AG" --spec-only
+
+echo adapt spec
+echo "# spec file created automatically by make_dist.sh -- do not modify!" > pyi2ncommon.spec
+echo "" >> ./pyi2ncommon.spec
+cat dist/pyi2ncommon.spec >> ./pyi2ncommon.spec
+echo "" >> ./pyi2ncommon.spec
+echo "%check" >> ./pyi2ncommon.spec
+echo "echo \"unittests disabled for now...\"" >> ./pyi2ncommon.spec
+#echo "PYTHONPATH=./src:\$PYTHONPATH && python2 -m unittest discover test" >> ./pyi2ncommon.spec
+#echo "PYTHONPATH=./src:\$PYTHONPATH && python3 -m unittest discover test" >> ./pyi2ncommon.spec
+mv ./pyi2ncommon.spec dist/
setup(name='pyi2ncommon',
version='1.0',
description='Intra2net library of common helper utilities',
+ long_description='Various modules used in several places within '
+ 'Intra2net code',
author='Intra2net AG',
author_email='info@intra2net.com',
url='http://www.intra2net.com',
# 'test/disc_filler_test.py', 'test/template.py',
# 'doc/index.rst', 'doc/modules.rst', 'doc/conf.py',
# 'doc/about_docu.rst'],
+ license='GPLv2 + linking exception',
)