spec-create,templates: add the %debug_package macro when required
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
ca665e84fa
commit
ff13cc3031
@ -16,6 +16,14 @@ Changes in version 1.8.3
|
|||||||
Remove 'librarytools' from the list of available templates: it does not
|
Remove 'librarytools' from the list of available templates: it does not
|
||||||
exist.
|
exist.
|
||||||
|
|
||||||
|
+ update
|
||||||
|
* spec-create
|
||||||
|
templates/gnome
|
||||||
|
templates/kde3, templates/kde4
|
||||||
|
templates/library
|
||||||
|
templates/standard, templates/standard-daemon - Davide Madrisan:
|
||||||
|
Add the %debug_package macro when required.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Changes in version 1.8.2
|
Changes in version 1.8.2
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# pck-create -- plugin for @package@
|
# pck-create -- plugin for @package@
|
||||||
# Copyright (C) 2004-2011 Davide Madrisan <davide.madrisan@gmail.com>
|
# Copyright (C) 2004-2012 Davide Madrisan <davide.madrisan@gmail.com>
|
||||||
|
|
||||||
[ -z "$BASH" ] || [ ${BASH_VERSION:0:1} -lt 3 ] &&
|
[ -z "$BASH" ] || [ ${BASH_VERSION:0:1} -lt 3 ] &&
|
||||||
{ echo $"this script requires bash version 3 or better" >&2 && exit 1; }
|
{ echo $"this script requires bash version 3 or better" >&2 && exit 1; }
|
||||||
@ -79,7 +79,7 @@ or FITNESS FOR A PARTICULAR PURPOSE."
|
|||||||
function version() {
|
function version() {
|
||||||
echo "\
|
echo "\
|
||||||
${me[0]} ${me[1]}
|
${me[0]} ${me[1]}
|
||||||
Copyright (C) 2004-2011 Davide Madrisan <davide.madrisan@gmail.com>"
|
Copyright (C) 2004-2012 Davide Madrisan <davide.madrisan@gmail.com>"
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1: optional exit code (default is '1')
|
# $1: optional exit code (default is '1')
|
||||||
@ -234,7 +234,7 @@ source:,standard-docs:,standard-docs-devel:,build-technology:,\
|
|||||||
i18n:,icons-mimetypes:,\
|
i18n:,icons-mimetypes:,\
|
||||||
infopages:,manpages:,\
|
infopages:,manpages:,\
|
||||||
pck-devel:,pck-library:,pck-apidocs:,pck-tools:,\
|
pck-devel:,pck-library:,pck-apidocs:,pck-tools:,\
|
||||||
shared-libraries:,\
|
shared-libraries:,debug-package:,\
|
||||||
-n "${0}" -- "$@"`
|
-n "${0}" -- "$@"`
|
||||||
[ $? = 0 ] || exit 1
|
[ $? = 0 ] || exit 1
|
||||||
|
|
||||||
@ -262,6 +262,7 @@ shared-libraries:,\
|
|||||||
local pck_apidocs="0"
|
local pck_apidocs="0"
|
||||||
local pck_tools="0"
|
local pck_tools="0"
|
||||||
local shared_libraries="0"
|
local shared_libraries="0"
|
||||||
|
local debug_package="0"
|
||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
case $1 in
|
case $1 in
|
||||||
@ -305,6 +306,8 @@ shared-libraries:,\
|
|||||||
pck_tools="$2"; shift ;;
|
pck_tools="$2"; shift ;;
|
||||||
--shared-libraries)
|
--shared-libraries)
|
||||||
shared_libraries="$2"; shift ;;
|
shared_libraries="$2"; shift ;;
|
||||||
|
--debug-package)
|
||||||
|
debug_package="$2"; shift ;;
|
||||||
--) shift; break ;;
|
--) shift; break ;;
|
||||||
*) notify.error $"unrecognized option"" -- \`$1'" ;;
|
*) notify.error $"unrecognized option"" -- \`$1'" ;;
|
||||||
esac
|
esac
|
||||||
@ -794,6 +797,10 @@ $spec_cmd_configure_autotools --enable-gtk-doc"
|
|||||||
{ pck_library="1"; pck_tools="0"; }
|
{ pck_library="1"; pck_tools="0"; }
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# 12. debug package
|
||||||
|
local debug_package="0"
|
||||||
|
[ -n "$rpm_macro_debug_package" ] && debug_package="1"
|
||||||
|
|
||||||
# FIXME: missing support for:
|
# FIXME: missing support for:
|
||||||
# pkgconfig files
|
# pkgconfig files
|
||||||
# includedir files
|
# includedir files
|
||||||
@ -818,7 +825,8 @@ $spec_cmd_configure_autotools --enable-gtk-doc"
|
|||||||
--pck-devel "1" \
|
--pck-devel "1" \
|
||||||
--pck-library "$pck_library" \
|
--pck-library "$pck_library" \
|
||||||
--pck-tools "$pck_tools" \
|
--pck-tools "$pck_tools" \
|
||||||
--shared-libraries "1"
|
--shared-libraries "1" \
|
||||||
|
--debug-package "1"
|
||||||
|
|
||||||
[ "$outfile" ] && specfile.ckeck_defvalues "$outfile"
|
[ "$outfile" ] && specfile.ckeck_defvalues "$outfile"
|
||||||
|
|
||||||
|
@ -22,6 +22,10 @@ License: GPL
|
|||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
BuildRoot: @rpm_default_buildroot@
|
BuildRoot: @rpm_default_buildroot@
|
||||||
|
|
||||||
|
@if:debug_package
|
||||||
|
%debug_package
|
||||||
|
@fi:debug_package
|
||||||
|
|
||||||
%description
|
%description
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -15,6 +15,10 @@ License: ...
|
|||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRoot: @rpm_default_buildroot@
|
BuildRoot: @rpm_default_buildroot@
|
||||||
|
|
||||||
|
@if:debug_package
|
||||||
|
%debug_package
|
||||||
|
@fi:debug_package
|
||||||
|
|
||||||
%description
|
%description
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -19,6 +19,10 @@ BuildRequires: kdelibs-devel
|
|||||||
Requires: kde-workspace
|
Requires: kde-workspace
|
||||||
BuildRoot: @rpm_default_buildroot@
|
BuildRoot: @rpm_default_buildroot@
|
||||||
|
|
||||||
|
@if:debug_package
|
||||||
|
%debug_package
|
||||||
|
@fi:debug_package
|
||||||
|
|
||||||
%description
|
%description
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -25,6 +25,10 @@ Requires(post): %{__install_info}
|
|||||||
@fi:infopages
|
@fi:infopages
|
||||||
BuildRoot: @rpm_default_buildroot@
|
BuildRoot: @rpm_default_buildroot@
|
||||||
|
|
||||||
|
@if:debug_package
|
||||||
|
%debug_package
|
||||||
|
@fi:debug_package
|
||||||
|
|
||||||
%description
|
%description
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@ Requires(post): %{__install_info}
|
|||||||
@fi:infopages
|
@fi:infopages
|
||||||
BuildRoot: @rpm_default_buildroot@
|
BuildRoot: @rpm_default_buildroot@
|
||||||
|
|
||||||
|
@if:debug_package
|
||||||
|
%debug_package
|
||||||
|
@fi:debug_package
|
||||||
|
|
||||||
%description
|
%description
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@ Requires(post): %{__install_info}
|
|||||||
@fi:infopages
|
@fi:infopages
|
||||||
BuildRoot: @rpm_default_buildroot@
|
BuildRoot: @rpm_default_buildroot@
|
||||||
|
|
||||||
|
@if:debug_package
|
||||||
|
%debug_package
|
||||||
|
@fi:debug_package
|
||||||
|
|
||||||
%description
|
%description
|
||||||
...
|
...
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user