From 74a0c34178d61919d940ce28bf515dfee4f50c0c61887a82974f12e23d17d4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 1 Dec 2011 14:11:20 +0000 Subject: [PATCH] update OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-format_spec_file?expand=0&rev=25 --- format_spec_file | 9 ++++++++- format_spec_file.service | 7 +++++-- obs-service-format_spec_file.changes | 5 +++++ obs-service-format_spec_file.spec | 4 ++-- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/format_spec_file b/format_spec_file index e6da271..1554799 100644 --- a/format_spec_file +++ b/format_spec_file @@ -9,6 +9,10 @@ while test $# -gt 0; do MYOUTDIR="$2" shift ;; + *-specfile) + MYSPECFILES="$MYSPECFILES $2" + shift + ;; *) echo Unknown parameter $1. echo 'Usage: this service is not excepting parameters' @@ -19,7 +23,10 @@ while test $# -gt 0; do done RETURN=0 -for i in *.spec; do +if [ -z "$MYSPECFILES" ]; then + MYSPECFILES=`echo *.spec` +fi +for i in $MYSPECFILES; do if [ "$i" == '*.spec' ]; then echo "WARNING: no spec file found" exit 0 diff --git a/format_spec_file.service b/format_spec_file.service index 8b502ac..e6607d9 100644 --- a/format_spec_file.service +++ b/format_spec_file.service @@ -1,5 +1,8 @@ - - Validate sources + + Format the spec files The default SUSE source validator which catches common pitfalls before build. + + Just run on specified spec file instead all available + diff --git a/obs-service-format_spec_file.changes b/obs-service-format_spec_file.changes index a94cf35..9b95e02 100644 --- a/obs-service-format_spec_file.changes +++ b/obs-service-format_spec_file.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 1 14:10:52 UTC 2011 - adrian@suse.de + +- allow to specify a defined spec file (version 0.2) + ------------------------------------------------------------------- Wed Sep 7 13:34:45 CEST 2011 - dmueller@suse.de diff --git a/obs-service-format_spec_file.spec b/obs-service-format_spec_file.spec index 5a26eea..8616a34 100644 --- a/obs-service-format_spec_file.spec +++ b/obs-service-format_spec_file.spec @@ -21,8 +21,8 @@ Name: obs-service-format_spec_file License: GPL v2 or later Group: Development/Tools/Building Summary: An OBS source service: reformats a spec file to SUSE standard. -Version: 0.1 -Release: 9 +Version: 0.2 +Release: 11 Source: format_spec_file Source1: format_spec_file.service Source2: prepare_spec