create make_dist.sh script that creates and modifies spec file and source tar.gz
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 15 Jan 2016 10:30:50 +0000 (11:30 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 15 Jan 2016 10:30:50 +0000 (11:30 +0100)
make_dist.sh [new file with mode: 0755]
setup.py

diff --git a/make_dist.sh b/make_dist.sh
new file mode 100755 (executable)
index 0000000..a4fca46
--- /dev/null
@@ -0,0 +1,18 @@
+#!/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/
index 1a190cc..bc2a521 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,8 @@ from distutils.core import setup
 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',
@@ -18,4 +20,5 @@ setup(name='pyi2ncommon',
       #            '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',
      )