meego-developer-tools:spectacle.git
7 years agoupdate README for new key 'RpmLintIgnore' 0.17
JF Ding [Tue, 18 May 2010 12:09:24 +0000 (20:09 +0800)]
update README for new key 'RpmLintIgnore'

7 years agotestsuites: add cases for py_mod inst path checking
JF Ding [Tue, 18 May 2010 12:05:40 +0000 (20:05 +0800)]
testsuites: add cases for py_mod inst path checking

7 years agochecking for python modules install path
JF Ding [Tue, 18 May 2010 11:59:22 +0000 (19:59 +0800)]
checking for python modules install path

if 'BuildArch' == 'noarch', rpm macro 'python_sitelib' should be used,
else 'python_sitearch'.
And added checking for %files, if problems found, abort with error msg.

7 years agofiles parsing: use 'elif' to be more efficient
JF Ding [Tue, 18 May 2010 11:46:16 +0000 (19:46 +0800)]
files parsing: use 'elif' to be more efficient

All the matching cases are exclusive, we can use 'elif' structure
here. The code will be more efficient than the old.

7 years agopump to 0.17
JF Ding [Tue, 18 May 2010 03:18:58 +0000 (11:18 +0800)]
pump to 0.17

7 years agotestsuites: udpate for latest changes and newkeys
JF Ding [Sun, 16 May 2010 11:07:33 +0000 (19:07 +0800)]
testsuites: udpate for latest changes and newkeys

7 years agonew key: UpdateDesktopDB to flush desktop cache explicitly
JF Ding [Sun, 16 May 2010 10:55:47 +0000 (18:55 +0800)]
new key: UpdateDesktopDB to flush desktop cache explicitly

In packages with *.desktop, only run 'update-desktop-database' in
package install/uninstall when specifying this key explicitly.

7 years agofixed setup.py for Debian based systems
JF Ding [Sun, 16 May 2010 10:29:46 +0000 (18:29 +0800)]
fixed setup.py for Debian based systems

for 2.5 or lower, keep the same
for 2.6 or higher, use '--install-layout=deb'

7 years agouse RPM_BUILD_ROOT for older distros
Anas Nashif [Thu, 13 May 2010 19:27:32 +0000 (12:27 -0700)]
use RPM_BUILD_ROOT for older distros

7 years agouse RPM_BUILD_ROOT for older distros
Anas Nashif [Thu, 13 May 2010 19:04:49 +0000 (12:04 -0700)]
use RPM_BUILD_ROOT for older distros

7 years agospec2spec: another macro definition "global"
JF Ding [Thu, 13 May 2010 11:28:15 +0000 (19:28 +0800)]
spec2spec: another macro definition "global"

e.g. in gcc.spec

7 years agocatch more info files
Anas Nashif [Sat, 8 May 2010 19:56:58 +0000 (12:56 -0700)]
catch more info files

7 years agospecify: tolerance for absence of 'Sources'
JF Ding [Thu, 6 May 2010 03:29:16 +0000 (11:29 +0800)]
specify: tolerance for absence of 'Sources'

7 years agospecify: update for checkings of keys
JF Ding [Thu, 6 May 2010 03:06:45 +0000 (11:06 +0800)]
specify: update for checkings of keys

7 years agouse *.desktop instead of *
Anas Nashif [Wed, 28 Apr 2010 13:30:59 +0000 (06:30 -0700)]
use *.desktop instead of *

7 years agoDo not handle desktop files not in applications/*
Anas Nashif [Wed, 28 Apr 2010 11:14:14 +0000 (04:14 -0700)]
Do not handle desktop files not in applications/*

7 years agopump version to 0.16 for release 0.16
JF Ding [Thu, 22 Apr 2010 11:13:28 +0000 (19:13 +0800)]
pump version to 0.16 for release

7 years agotestsuites: add case for new key 'NoDesktop'
JF Ding [Thu, 22 Apr 2010 11:13:03 +0000 (19:13 +0800)]
testsuites: add case for new key 'NoDesktop'

7 years agospecify: new key 'NoDesktop' to skip desktop files
JF Ding [Thu, 22 Apr 2010 11:07:57 +0000 (19:07 +0800)]
specify: new key 'NoDesktop' to skip desktop files

7 years agoupdate README
JF Ding [Thu, 22 Apr 2010 05:19:56 +0000 (13:19 +0800)]
update README

7 years agosupport rpmlintrc ignore
Anas Nashif [Sun, 11 Apr 2010 18:17:28 +0000 (11:17 -0700)]
support rpmlintrc ignore

7 years agopump version to 0.15 0.15
JF Ding [Wed, 31 Mar 2010 09:24:38 +0000 (17:24 +0800)]
pump version to 0.15

7 years agotestsuite: cases for checking for setup keys
JF Ding [Wed, 31 Mar 2010 09:20:19 +0000 (17:20 +0800)]
testsuite: cases for checking for setup keys

7 years agodoc: update README for namespace supporting
JF Ding [Wed, 31 Mar 2010 09:15:44 +0000 (17:15 +0800)]
doc: update README for namespace supporting

7 years agochecking: no-effect combine of setup keys
JF Ding [Wed, 31 Mar 2010 09:00:45 +0000 (17:00 +0800)]
checking: no-effect combine of setup keys

'NoSetup', 'SetupOptions', 'SourcePrefix'

7 years agofixing of support ARCHs checking
JF Ding [Wed, 31 Mar 2010 08:11:53 +0000 (16:11 +0800)]
fixing of support ARCHs checking

7 years agospec2spec: various enhancement/cleanup of msg show
JF Ding [Wed, 31 Mar 2010 08:03:40 +0000 (16:03 +0800)]
spec2spec: various enhancement/cleanup of msg show

7 years agospecify: option --skip-scm to skip fetching from SCM
JF Ding [Tue, 30 Mar 2010 15:24:32 +0000 (23:24 +0800)]
specify: option --skip-scm to skip fetching from SCM

7 years agocatch yaml syntax errors when loading
JF Ding [Tue, 30 Mar 2010 14:49:40 +0000 (22:49 +0800)]
catch yaml syntax errors when loading

7 years agodecent quit when ^C pressed when asking input
JF Ding [Tue, 30 Mar 2010 14:43:56 +0000 (22:43 +0800)]
decent quit when ^C pressed when asking input

7 years agotestsuite: update and new cases for autoreqs handling
JF Ding [Tue, 30 Mar 2010 12:02:07 +0000 (20:02 +0800)]
testsuite: update and new cases for autoreqs handling

7 years agotmpl: remove auto requires handing from tmpl to python
JF Ding [Tue, 30 Mar 2010 11:50:54 +0000 (19:50 +0800)]
tmpl: remove auto requires handing from tmpl to python

for more compact code and duplicate checking

7 years agotestsuite: update for changes of desktop files handling
JF Ding [Tue, 30 Mar 2010 10:39:49 +0000 (18:39 +0800)]
testsuite: update for changes of desktop files handling

7 years agofiles: run update-desktop-db for desktop files in post/postun
JF Ding [Tue, 30 Mar 2010 10:37:47 +0000 (18:37 +0800)]
files: run update-desktop-db for desktop files in post/postun

7 years agofix: namespace disturb in pkgconfig proposals checking
JF Ding [Tue, 30 Mar 2010 09:25:33 +0000 (17:25 +0800)]
fix: namespace disturb in pkgconfig proposals checking

7 years agotestsuite: new cases for all arch namespace enabled keys
JF Ding [Tue, 30 Mar 2010 09:18:57 +0000 (17:18 +0800)]
testsuite: new cases for all arch namespace enabled keys

7 years agotestsuite: renamed several cases to follow the same rule
JF Ding [Tue, 30 Mar 2010 09:09:38 +0000 (17:09 +0800)]
testsuite: renamed several cases to follow the same rule

7 years agotmpl: add arch namespace support for Patches
JF Ding [Tue, 30 Mar 2010 08:52:32 +0000 (16:52 +0800)]
tmpl: add arch namespace support for Patches

7 years agotmpl: add arch namespace support to Requires of main/subpkgs
JF Ding [Tue, 30 Mar 2010 08:46:51 +0000 (16:46 +0800)]
tmpl: add arch namespace support to Requires of main/subpkgs

7 years agotmpl: rewrite arch namespace code for PkgBR/PkgConfigBR/ConfigOptions
JF Ding [Tue, 30 Mar 2010 08:40:19 +0000 (16:40 +0800)]
tmpl: rewrite arch namespace code for PkgBR/PkgConfigBR/ConfigOptions

7 years agospecify: add sanity checking for arch namespace
JF Ding [Tue, 30 Mar 2010 07:59:23 +0000 (15:59 +0800)]
specify: add sanity checking for arch namespace

7 years agobug: care about AsWholeName for subpkg pre/post(un)
JF Ding [Tue, 30 Mar 2010 04:26:27 +0000 (12:26 +0800)]
bug: care about AsWholeName for subpkg pre/post(un)

7 years agotmpl: add support for pre/preun/post/postun for subpkgs
JF Ding [Tue, 30 Mar 2010 04:15:46 +0000 (12:15 +0800)]
tmpl: add support for pre/preun/post/postun for subpkgs

7 years agospec2spec: check the input spec to avoid wrong convert
JF Ding [Mon, 29 Mar 2010 06:52:23 +0000 (14:52 +0800)]
spec2spec: check the input spec to avoid wrong convert

if the input spec is already a specified one, stop then

7 years agospec2spec: bug in parsing subpkg name in headers
JF Ding [Thu, 25 Mar 2010 08:54:14 +0000 (16:54 +0800)]
spec2spec: bug in parsing subpkg name in headers

7 years agospec2spec: tolorence for wrong subpkg specify
JF Ding [Thu, 25 Mar 2010 08:44:47 +0000 (16:44 +0800)]
spec2spec: tolorence for wrong subpkg specify

7 years agocorrect desktop files matching in files
JF Ding [Wed, 24 Mar 2010 07:16:41 +0000 (15:16 +0800)]
correct desktop files matching in files

7 years agomore precise match for share libs in files
JF Ding [Wed, 24 Mar 2010 06:09:26 +0000 (14:09 +0800)]
more precise match for share libs in files

only match:
/usr/lib/*.so*
/lib/*.so*

will not match
/usr/lib/abc/*.so*

7 years agochecking Files and Requires if NoFiles specified
JF Ding [Wed, 24 Mar 2010 05:57:55 +0000 (13:57 +0800)]
checking Files and Requires if NoFiles specified

7 years agonewkey: NoFiles, no %files for empty main package
JF Ding [Tue, 23 Mar 2010 09:17:15 +0000 (17:17 +0800)]
newkey: NoFiles, no %files for empty main package

7 years agospec2spec: bugs in parsing macro definitions
JF Ding [Mon, 22 Mar 2010 10:33:09 +0000 (18:33 +0800)]
spec2spec: bugs in parsing macro definitions

7 years agoMerge commit 'origin/master'
JF Ding [Mon, 22 Mar 2010 10:17:25 +0000 (18:17 +0800)]
Merge commit 'origin/master'

7 years agotmpl: %postun operation for Icons
JF Ding [Mon, 22 Mar 2010 10:12:54 +0000 (18:12 +0800)]
tmpl: %postun operation for Icons

7 years agoSupport namespaces for architectures and evtl. distributions
Anas Nashif [Mon, 22 Mar 2010 02:16:45 +0000 (19:16 -0700)]
Support namespaces for architectures and evtl. distributions

7 years agotestsuites: cases for auto locale searching 0.14
JF Ding [Thu, 18 Mar 2010 08:08:00 +0000 (16:08 +0800)]
testsuites: cases for auto locale searching

when 'intltool' in 'PkgBR', add find_lang automatically,
and 'NoAutoLocael' can suppress it.

7 years agorename 'NoLocale' to 'NoAutoLocale' to clarify the meaning
JF Ding [Thu, 18 Mar 2010 07:58:50 +0000 (15:58 +0800)]
rename 'NoLocale' to 'NoAutoLocale' to clarify the meaning

and the default value of this bool key is False now

7 years agopump version to 0.14
JF Ding [Wed, 17 Mar 2010 13:38:23 +0000 (21:38 +0800)]
pump version to 0.14

7 years agodoc: udpate README
JF Ding [Wed, 17 Mar 2010 13:37:25 +0000 (21:37 +0800)]
doc: udpate README

7 years agotestsuites: new case for empty keys checking
JF Ding [Wed, 17 Mar 2010 13:34:31 +0000 (21:34 +0800)]
testsuites: new case for empty keys checking

7 years agotestsuite: case for new %preun placeholder
JF Ding [Wed, 17 Mar 2010 13:33:00 +0000 (21:33 +0800)]
testsuite: case for new %preun placeholder

7 years agofix problem in %preun placeholder support
JF Ding [Wed, 17 Mar 2010 13:32:16 +0000 (21:32 +0800)]
fix problem in %preun placeholder support

7 years agotestsuites: update testing frame to cmp patched output
JF Ding [Wed, 17 Mar 2010 13:28:43 +0000 (21:28 +0800)]
testsuites: update testing frame to cmp patched output

By this, test cases will not affected by tmpl minor changes.

7 years agocleanup all boolean keys: exists status to present logic
JF Ding [Wed, 17 Mar 2010 12:42:28 +0000 (20:42 +0800)]
cleanup all boolean keys: exists status to present logic

Then, in templ, we can use "has_key" or not to present the logic value

7 years agospec2spec: add parsing for %preun and remanaged code
JF Ding [Wed, 17 Mar 2010 10:19:28 +0000 (18:19 +0800)]
spec2spec: add parsing for %preun and remanaged code

7 years agotmpl: add customized "%preun" script place holder
JF Ding [Wed, 17 Mar 2010 09:55:04 +0000 (17:55 +0800)]
tmpl: add customized "%preun" script place holder

7 years agospecify: sanity checking for empty keys
JF Ding [Wed, 17 Mar 2010 08:56:35 +0000 (16:56 +0800)]
specify: sanity checking for empty keys

7 years agospec2spec: more proper parsing for pkgconfig requires
JF Ding [Wed, 17 Mar 2010 08:46:11 +0000 (16:46 +0800)]
spec2spec: more proper parsing for pkgconfig requires

7 years agospec2spec: more proper handling for opts of headers
JF Ding [Wed, 17 Mar 2010 08:16:32 +0000 (16:16 +0800)]
spec2spec: more proper handling for opts of headers

7 years agospec2spec: bug in Requires parsing
JF Ding [Wed, 17 Mar 2010 04:00:58 +0000 (12:00 +0800)]
spec2spec: bug in Requires parsing

7 years agospec2spec: fix bug in handling '-n' subpkg name
JF Ding [Wed, 17 Mar 2010 03:36:00 +0000 (11:36 +0800)]
spec2spec: fix bug in handling '-n' subpkg name

7 years agoproper handling for bool keys dumping
JF Ding [Wed, 17 Mar 2010 02:57:18 +0000 (10:57 +0800)]
proper handling for bool keys dumping

7 years agospec2spec: add parsing for %pre/post/postun
JF Ding [Tue, 16 Mar 2010 10:55:25 +0000 (18:55 +0800)]
spec2spec: add parsing for %pre/post/postun

7 years agotestsuites: update cases according tmpl changes
JF Ding [Tue, 16 Mar 2010 10:43:23 +0000 (18:43 +0800)]
testsuites: update cases according tmpl changes

7 years agodoc: update README with new added spec placeholders
JF Ding [Tue, 16 Mar 2010 10:22:26 +0000 (18:22 +0800)]
doc: update README with new added spec placeholders

7 years agotestsuites: add cased for new 'postun/pre' place holders
JF Ding [Tue, 16 Mar 2010 10:09:47 +0000 (18:09 +0800)]
testsuites: add cased for new 'postun/pre' place holders

7 years agotmpl: add customized "%pre" script place holder
JF Ding [Tue, 16 Mar 2010 10:09:22 +0000 (18:09 +0800)]
tmpl: add customized "%pre" script place holder

7 years agotmpl: add customized "%postun" script place holder
JF Ding [Tue, 16 Mar 2010 09:54:34 +0000 (17:54 +0800)]
tmpl: add customized "%postun" script place holder

7 years agotestsuites: update cases related new 'Check' key
JF Ding [Tue, 16 Mar 2010 09:27:07 +0000 (17:27 +0800)]
testsuites: update cases related new 'Check' key

7 years agospec2spec: add support of %check convert
JF Ding [Tue, 16 Mar 2010 09:25:52 +0000 (17:25 +0800)]
spec2spec: add support of %check convert

7 years agorenamed 'NeedRunTests' to 'Check' and renamed 'check'
JF Ding [Tue, 16 Mar 2010 08:32:11 +0000 (16:32 +0800)]
renamed 'NeedRunTests' to 'Check' and renamed 'check'

in .spec, 'check_scriptlets' place holder renamed to 'check'
but remain compatibility for old spectified packages with them.

7 years agospec2spec: more precise parsing for PkgConfigBR
JF Ding [Mon, 15 Mar 2010 10:52:57 +0000 (18:52 +0800)]
spec2spec: more precise parsing for PkgConfigBR

7 years agotestsuites: update test cases with recent changes
JF Ding [Mon, 15 Mar 2010 10:33:17 +0000 (18:33 +0800)]
testsuites: update test cases with recent changes

because of trailing white spaces cleanup work

7 years agotestsuites: colored and clear output of wrong result
JF Ding [Mon, 15 Mar 2010 10:25:40 +0000 (18:25 +0800)]
testsuites: colored and clear output of wrong result

7 years agoupdate Makefile for more clean cleanup
JF Ding [Mon, 15 Mar 2010 09:16:53 +0000 (17:16 +0800)]
update Makefile for more clean cleanup

7 years agotestsuites: new case for renamed keys checking and
JF Ding [Mon, 15 Mar 2010 09:11:50 +0000 (17:11 +0800)]
testsuites: new case for renamed keys checking and

update case names for renamed keys

7 years agorename 'WholeName' to 'AsWholeName'
JF Ding [Mon, 15 Mar 2010 09:10:42 +0000 (17:10 +0800)]
rename 'WholeName' to 'AsWholeName'

7 years agotestsuite: case for key 'AutoDepend' and 'WholeName'
JF Ding [Mon, 15 Mar 2010 08:32:18 +0000 (16:32 +0800)]
testsuite: case for key 'AutoDepend' and 'WholeName'

7 years agonewkey: 'WholeName' for subpackages only
JF Ding [Mon, 15 Mar 2010 08:09:33 +0000 (16:09 +0800)]
newkey: 'WholeName' for subpackages only

when specified 'WholeName' for subpackage, its 'Name' will be used
as the whole package name, and .spec will get:
%package -n ``Name``

7 years agotestsuite: case for dropped key checking
JF Ding [Mon, 15 Mar 2010 07:55:01 +0000 (15:55 +0800)]
testsuite: case for dropped key checking

7 years agodropped 'PostScripts' key and checking for all dropped keys
JF Ding [Mon, 15 Mar 2010 07:43:58 +0000 (15:43 +0800)]
dropped 'PostScripts' key and checking for all dropped keys

by now, 'Documents', 'PostScripts' were deprecated, in the future
the related should be removed when all pkgs need not them.

7 years agofix problem in %post handle and update doc
JF Ding [Mon, 15 Mar 2010 07:31:54 +0000 (15:31 +0800)]
fix problem in %post handle and update doc

7 years agoFixed testsuite for fdupes
Anas Nashif [Sun, 14 Mar 2010 17:37:39 +0000 (10:37 -0700)]
Fixed testsuite for fdupes

7 years agoAdded custom post section, initial arch support
Anas Nashif [Sun, 14 Mar 2010 17:13:25 +0000 (10:13 -0700)]
Added custom post section, initial arch support

Support custom post section
add arch namespace to config options

7 years agoupdate Makefile with test support
JF Ding [Sun, 14 Mar 2010 15:22:30 +0000 (23:22 +0800)]
update Makefile with test support

7 years agounittest: add all the files for special unittest framework
JF Ding [Sun, 14 Mar 2010 15:21:05 +0000 (23:21 +0800)]
unittest: add all the files for special unittest framework

And the basic 38 specify test cases

7 years agoadd missing checking for key 'ExtraInstall'
JF Ding [Sun, 14 Mar 2010 15:11:40 +0000 (23:11 +0800)]
add missing checking for key 'ExtraInstall'

7 years agoupdate README for missing document
JF Ding [Sun, 14 Mar 2010 15:04:22 +0000 (23:04 +0800)]
update README for missing document

7 years agoadd missing checking for key 'FilesInput'
JF Ding [Sun, 14 Mar 2010 10:13:32 +0000 (18:13 +0800)]
add missing checking for key 'FilesInput'

7 years agospec2spec: add convert for ExclusiveArch tags
JF Ding [Sun, 14 Mar 2010 10:10:27 +0000 (18:10 +0800)]
spec2spec: add convert for ExclusiveArch tags

7 years agofixed: bug in $br_desktop handling in spec
JF Ding [Sun, 14 Mar 2010 10:08:09 +0000 (18:08 +0800)]
fixed: bug in $br_desktop handling in spec