From 5f03b995b98e919a6de2e02c668dbea3d537cdd6 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Fri, 15 Jan 2016 11:30:50 +0100 Subject: [PATCH] create make_dist.sh script that creates and modifies spec file and source tar.gz --- make_dist.sh | 18 ++++++++++++++++++ setup.py | 3 +++ 2 files changed, 21 insertions(+), 0 deletions(-) create mode 100755 make_dist.sh diff --git a/make_dist.sh b/make_dist.sh new file mode 100755 index 0000000..a4fca46 --- /dev/null +++ b/make_dist.sh @@ -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/ diff --git a/setup.py b/setup.py index 1a190cc..bc2a521 100644 --- 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', ) -- 1.7.1