spec-create: new option '--changelog'

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-11-07 21:26:51 +01:00
parent 9421ad3760
commit 15825d0a4b
3 changed files with 31 additions and 3 deletions

View File

@ -1,3 +1,16 @@
Changes in version 1.14.1 - _TO*Hacklab release
Fri Nov 09 2012 Davide Madrisan <davide.madrisan(a)gmail.com>
+ improvement
* plugins/spec-create - Davide Madrisan:
New option '--changeglog'.
+ update
* po/it/spec-create - Davide Madrisan:
Updated.
-------------------------------------------------------------------------------
Changes in version 1.14.0 Changes in version 1.14.0
Thu Nov 01 2012 Davide Madrisan <davide.madrisan(a)gmail.com> Thu Nov 01 2012 Davide Madrisan <davide.madrisan(a)gmail.com>

View File

@ -95,7 +95,8 @@ function usage() {
"$"Try to create a specfile for the specified source archive"". "$"Try to create a specfile for the specified source archive"".
"$"Usage"": "$"Usage"":
@frontend@ -s <source-archive> [-n <name>] [-v <ver>] [-t <type>] [-o <outfile>] @frontend@ -s <source-archive> [-n <name>] [-v <ver>] [-t <type>] \\
[-o <outfile>] [--changelog \""$"message""\"] [<"$"git-opts"">]
"$"where the above options mean"": "$"where the above options mean"":
-s, --source "$"Try to create a specfile for the specified source archive"" -s, --source "$"Try to create a specfile for the specified source archive""
@ -111,6 +112,7 @@ function usage() {
python : "$"specfile for python modules"" python : "$"specfile for python modules""
standard-daemon : "$"standard specfile for system/network services"" standard-daemon : "$"standard specfile for system/network services""
-o, --output "$"Redirect the output to the file <outfile>"" -o, --output "$"Redirect the output to the file <outfile>""
--changelog "$"Set change information for the package""
--git-branch "$"Specify a git branch"" --git-branch "$"Specify a git branch""
--preserve-dot-git "$"Do not remove git files"" --preserve-dot-git "$"Do not remove git files""
@ -124,6 +126,7 @@ function usage() {
"$"Samples"": "$"Samples"":
@frontend@ -s ~/software/@package@-@version@.tar.bz2 -t standard -o @package@.spec @frontend@ -s ~/software/@package@-@version@.tar.bz2 -t standard -o @package@.spec
@frontend@ -s http://ftp.qilinux.it/devel/tools/@package@/@package@-@version@.tar.bz2 @frontend@ -s http://ftp.qilinux.it/devel/tools/@package@/@package@-@version@.tar.bz2
@frontend@ -s @package@-@version@.tar.bz2 --changelog \"First build\"
@frontend@ -s git://anongit.freedesktop.org/gstreamer/gst-omx \\ @frontend@ -s git://anongit.freedesktop.org/gstreamer/gst-omx \\
--git-branch=\"raspberry\" --preserve-dot-git -o gst-omx.spec --git-branch=\"raspberry\" --preserve-dot-git -o gst-omx.spec
@ -157,7 +160,8 @@ config.check4user
exec_options=`LC_ALL=C getopt \ exec_options=`LC_ALL=C getopt \
-o s:n:v:t:o:DqrhV \ -o s:n:v:t:o:DqrhV \
--long \ --long \
source:,pck-name:,pck-version:,type:,output:,git-branch:,preserve-dot-git,\ source:,pck-name:,pck-version:,type:,output:,changelog:,\
git-branch:,preserve-dot-git,\
debug,quiet,colorize,help,version,\ debug,quiet,colorize,help,version,\
frontend_opts: \ frontend_opts: \
-n "$me" -- "$@"` -n "$me" -- "$@"`
@ -181,6 +185,8 @@ while :; do
spec_type=$2; shift ;; spec_type=$2; shift ;;
-o|--output) -o|--output)
outfile=$2; shift ;; outfile=$2; shift ;;
--changelog)
spec_changelog_comment="$2"; shift ;;
--git-branch) --git-branch)
git_branch=$2; shift ;; git_branch=$2; shift ;;
--preserve-dot-git) --preserve-dot-git)
@ -484,7 +490,7 @@ function specfile.create() {
local pck_name pck_version local pck_name pck_version
case "$2" in case "$2" in
git://*|http://*.git|https://*.git) git://*|http://*.git|https://*.git)
git.create_tarball \ git.create_tarball \
--git-branch="$git_branch" \ --git-branch="$git_branch" \
--preserve-dot-git="$preserve_dot_git" \ --preserve-dot-git="$preserve_dot_git" \

View File

@ -37,6 +37,12 @@ msgstr "Cerca di creare uno specfile per l'archivio sorgente indicato"
msgid "Usage" msgid "Usage"
msgstr "Utilizzo" msgstr "Utilizzo"
msgid "message"
msgstr "messaggio"
msgid "git-opts"
msgstr "opzioni-git"
msgid "where the above options mean" msgid "where the above options mean"
msgstr "dove le precedenti opzioni significano" msgstr "dove le precedenti opzioni significano"
@ -103,6 +109,9 @@ msgstr "Attiva la modalità di debugging (output prolisso)"
msgid "Samples" msgid "Samples"
msgstr "Alcuni esempi" msgstr "Alcuni esempi"
msgid "Set change information for the package"
msgstr "Scrive il messaggio indicato nel changelog del pacchetto"
msgid "Report bugs to <davide.madrisan@gmail.com>." msgid "Report bugs to <davide.madrisan@gmail.com>."
msgstr "Segnalare eventuali bug a <davide.madrisan@gmail.com>." msgstr "Segnalare eventuali bug a <davide.madrisan@gmail.com>."