spec-create: add support for tarballs with autogen.sh and no configure

Create a correct %build block in the specfile generated from tarballs
that do not provide any 'configure' script but only an 'autogen,sh' one.
Feature asked by Silvan Calarco.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2014-08-18 22:26:08 +02:00
parent 9458f64b1d
commit 93f2d120e9
3 changed files with 22 additions and 0 deletions

View File

@ -35,6 +35,12 @@ Fri Aug 15 2014 Madrisan <davide.madrisan(a)gmail.com>
The translation rules for Python 2.7 and Python 3 have been updated The translation rules for Python 2.7 and Python 3 have been updated
to reflect the current support for Python in openmamba. to reflect the current support for Python in openmamba.
+ improvement
* spec-create - Davide Madrisan
Create a correct %build block in the specfile generated from tarballs
that do not provide any 'configure' script but only an 'autogen,sh' one.
Feature asked by Silvan Calarco.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Changes in version 1.16.4 - "Korbielow" release Changes in version 1.16.4 - "Korbielow" release

5
NEWS
View File

@ -9,6 +9,11 @@ List of user visible changes in the release 1.16.5
Specify target_cpu when installing build requirements for x86_64 Specify target_cpu when installing build requirements for x86_64
multiarch support. multiarch support.
* spec-create - Davide Madrisan
Create a correct %build block in the specfile generated from tarballs
that do not provide any 'configure' script but only an 'autogen,sh' one.
Feature asked by Silvan Calarco.
-- Bugfix -- Bugfix
* templates/python - Silvan Calarco * templates/python - Silvan Calarco

View File

@ -40,6 +40,10 @@ spec_cmd_configure_autotools="%configure"
spec_cmd_make_autotools="%make" spec_cmd_make_autotools="%make"
spec_cmd_makeinstall_autotools="%makeinstall" spec_cmd_makeinstall_autotools="%makeinstall"
spec_cmd_configure_autogen="./autogen.sh\n%configure"
spec_cmd_make_autogen="%make"
spec_cmd_makeinstall_autogen="%makeinstall"
spec_cmd_configure_cmake="%cmake -d build" spec_cmd_configure_cmake="%cmake -d build"
spec_cmd_make_cmake="%make" spec_cmd_make_cmake="%make"
spec_cmd_makeinstall_cmake="%makeinstall -C build" spec_cmd_makeinstall_cmake="%makeinstall -C build"
@ -392,6 +396,11 @@ shared-libraries:,debug-package:,\
spec_cmd_make="$spec_cmd_make_autotools" spec_cmd_make="$spec_cmd_make_autotools"
spec_cmd_makeinstall="$spec_cmd_makeinstall_autotools" spec_cmd_makeinstall="$spec_cmd_makeinstall_autotools"
;; ;;
autogen)
spec_cmd_configure="$spec_cmd_configure_autogen"
spec_cmd_make="$spec_cmd_make_autogen"
spec_cmd_makeinstall="$spec_cmd_makeinstall_autogen"
;;
makefile) makefile)
spec_cmd_configure="$spec_cmd_configure_makefileonly" spec_cmd_configure="$spec_cmd_configure_makefileonly"
spec_cmd_make="$spec_cmd_make_makefileonly" spec_cmd_make="$spec_cmd_make_makefileonly"
@ -869,6 +878,8 @@ ${standard_docs_devel:+$standard_docs_devel }$currdoc"
-e $tmpdir/$pck_rootdir/makefile -o \ -e $tmpdir/$pck_rootdir/makefile -o \
-e $tmpdir/$pck_rootdir/GNUmakefile ]; then -e $tmpdir/$pck_rootdir/GNUmakefile ]; then
build_techology="makefile" build_techology="makefile"
elif [ -x $tmpdir/$pck_rootdir/autogen.sh ]; then
build_techology="autogen"
elif [ -e $tmpdir/$pck_rootdir/SConstruct -o \ elif [ -e $tmpdir/$pck_rootdir/SConstruct -o \
-e $tmpdir/$pck_rootdir/Sconstruct -o \ -e $tmpdir/$pck_rootdir/Sconstruct -o \
-e $tmpdir/$pck_rootdir/sconstruct ]; then -e $tmpdir/$pck_rootdir/sconstruct ]; then