meego-developer-tools:spectacle.git
7 years agoupdate README with more important notes 0.11
JF Ding [Wed, 10 Feb 2010 02:23:52 +0000 (10:23 +0800)]
update README with more important notes

7 years agopump version to 0.11
JF Ding [Tue, 9 Feb 2010 11:04:57 +0000 (19:04 +0800)]
pump version to 0.11

7 years agounify the optparse handling in all tools
JF Ding [Tue, 9 Feb 2010 11:03:18 +0000 (19:03 +0800)]
unify the optparse handling in all tools

7 years agodid not release spec-checknew in package
JF Ding [Tue, 9 Feb 2010 10:52:28 +0000 (18:52 +0800)]
did not release spec-checknew in package

7 years agospec2spec: check if spec-build ini exists
JF Ding [Tue, 9 Feb 2010 10:43:10 +0000 (18:43 +0800)]
spec2spec: check if spec-build ini exists

sometime, maybe user use the wrong tool for convert

7 years agonewkey bool 'SupportOtherDistros' for clean output
JF Ding [Tue, 9 Feb 2010 10:24:39 +0000 (18:24 +0800)]
newkey bool 'SupportOtherDistros' for clean output

if 'SupportOtherDistros' specified with TRUE, the build/install
script will care about other distros besides moblin.
Otherwise, it will generate moblin only stuff.

7 years agodropped 'Documents' key in YAML, puts them to %files
JF Ding [Tue, 9 Feb 2010 08:12:16 +0000 (16:12 +0800)]
dropped 'Documents' key in YAML, puts them to %files

7 years agospec2spec: do not reserve origin scripts in new spec
JF Ding [Mon, 8 Feb 2010 08:40:40 +0000 (16:40 +0800)]
spec2spec: do not reserve origin scripts in new spec

7 years agofixed: %post -p /sbin/ldconfig only when lib only
JF Ding [Mon, 8 Feb 2010 08:08:33 +0000 (16:08 +0800)]
fixed: %post -p /sbin/ldconfig only when lib only

if need more scipts in %post and %postun, need to it like
%post
/sbin/ldconfig
...(extra stuff)

7 years agoMerge branch 'newtool'
JF Ding [Mon, 8 Feb 2010 07:45:53 +0000 (15:45 +0800)]
Merge branch 'newtool'

7 years agoadd search method: fetch upper level url for download lists
JF Ding [Mon, 8 Feb 2010 07:44:24 +0000 (15:44 +0800)]
add search method: fetch upper level url for download lists

7 years agoAdd new tool to detect newer version
JF Ding [Thu, 4 Feb 2010 12:04:49 +0000 (20:04 +0800)]
Add new tool to detect newer version

7 years agocleanup code for __version__ string
JF Ding [Thu, 4 Feb 2010 12:03:29 +0000 (20:03 +0800)]
cleanup code for __version__ string

7 years agocleanup code of SCM handling
JF Ding [Thu, 4 Feb 2010 09:28:59 +0000 (17:28 +0800)]
cleanup code of SCM handling

7 years agoREADME: remove mentions for advanced patches syntax
JF Ding [Thu, 4 Feb 2010 03:51:16 +0000 (11:51 +0800)]
README: remove mentions for advanced patches syntax

Just hide them.

7 years agoremove extra_sections, add option %check section
JF Ding [Wed, 3 Feb 2010 12:28:09 +0000 (20:28 +0800)]
remove extra_sections, add option %check section

Add new key 'NeedCheckSection' to specify whether need a %check
section in spec. If true, the generated spec will insert "%check"
header and special placeholder lines for customized stuff.

The old 'extra_sections' was removed.

7 years agowithout 'SourcePrefix' just use name-version
JF Ding [Tue, 2 Feb 2010 06:56:06 +0000 (14:56 +0800)]
without 'SourcePrefix' just use name-version

7 years agoupdate match rule for INFO files
JF Ding [Tue, 2 Feb 2010 04:38:43 +0000 (12:38 +0800)]
update match rule for INFO files

7 years agodetect share libs: when "/ld.so.conf.d/" in files
JF Ding [Sat, 30 Jan 2010 10:50:39 +0000 (18:50 +0800)]
detect share libs: when "/ld.so.conf.d/" in files

7 years agofix: leading '*' need quoting in yaml dumping
JF Ding [Sat, 30 Jan 2010 10:11:16 +0000 (18:11 +0800)]
fix: leading '*' need quoting in yaml dumping

7 years agotmpl: remove --record-rpm for python-install in SUSE
JF Ding [Sat, 30 Jan 2010 09:19:12 +0000 (17:19 +0800)]
tmpl: remove --record-rpm for python-install in SUSE

even in suse, the --record-rpm option of python distutils still is
crappy, why not remove it

7 years agotmpl: for python pkgs, "--record=x" is NOT useful
JF Ding [Sat, 30 Jan 2010 03:52:05 +0000 (11:52 +0800)]
tmpl: for python pkgs, "--record=x" is NOT useful

at least in Fedora/Moblin distro.

7 years agosupport patch options for Patches
JF Ding [Sat, 30 Jan 2010 02:00:27 +0000 (10:00 +0800)]
support patch options for Patches

7 years agoupdate README with latest changes
JF Ding [Sat, 30 Jan 2010 02:00:06 +0000 (10:00 +0800)]
update README with latest changes

7 years agoconsider 'BuildArch' in the format converting
JF Ding [Fri, 29 Jan 2010 15:30:52 +0000 (23:30 +0800)]
consider 'BuildArch' in the format converting

7 years agospec2spec: add cmdln option to stop builder parsing
JF Ding [Fri, 29 Jan 2010 12:32:48 +0000 (20:32 +0800)]
spec2spec: add cmdln option to stop builder parsing

7 years agoAdd 'SourcePrefix' for pkgs with weird prefix path in src
JF Ding [Fri, 29 Jan 2010 11:54:30 +0000 (19:54 +0800)]
Add 'SourcePrefix' for pkgs with weird prefix path in src

7 years agoauto-deps for sub-pkgs, consider Epoch situation
JF Ding [Fri, 29 Jan 2010 11:45:57 +0000 (19:45 +0800)]
auto-deps for sub-pkgs, consider Epoch situation

and move 'extra_sections' to the middle of tmpl

7 years agoAdd 'Epoch' support in tmpl and converting
JF Ding [Fri, 29 Jan 2010 11:08:55 +0000 (19:08 +0800)]
Add 'Epoch' support in tmpl and converting

7 years agospec2spec: optparse to choice whether replace macros
JF Ding [Fri, 29 Jan 2010 11:04:27 +0000 (19:04 +0800)]
spec2spec: optparse to choice whether replace macros

7 years agospec2spec: enable to reserve macros and transfer to tmpl
JF Ding [Fri, 29 Jan 2010 10:39:44 +0000 (18:39 +0800)]
spec2spec: enable to reserve macros and transfer to tmpl

7 years agomore precise macro replacing
JF Ding [Fri, 29 Jan 2010 10:04:18 +0000 (18:04 +0800)]
more precise macro replacing

now the macros can be replaced recursively!

7 years agotmpl: add 'FilesInput' key for extra %files source
JF Ding [Fri, 29 Jan 2010 08:17:59 +0000 (16:17 +0800)]
tmpl: add 'FilesInput' key for extra %files source

7 years agotmpl: 'Provides/Conflicts/Obseletes' for sub-pkgs
JF Ding [Fri, 29 Jan 2010 07:06:40 +0000 (15:06 +0800)]
tmpl: 'Provides/Conflicts/Obseletes' for sub-pkgs

7 years agoUse 'no-builder' instead of 'no-make' of Builder
JF Ding [Fri, 29 Jan 2010 06:48:58 +0000 (14:48 +0800)]
Use 'no-builder' instead of 'no-make' of Builder

will keep back-compatibility, it means 'no-make' also accepted
And update README

7 years agospec2spec: loose match rule for release string
JF Ding [Fri, 29 Jan 2010 06:37:19 +0000 (14:37 +0800)]
spec2spec: loose match rule for release string

7 years agospec2spec: rewrite 'Source/Patch' parsing to reserve order
JF Ding [Fri, 29 Jan 2010 04:53:56 +0000 (12:53 +0800)]
spec2spec: rewrite 'Source/Patch' parsing to reserve order

The order of Soruces/Patches are important and should be reserved.

7 years agoremove all the ugly strailing spaces in tmpl
JF Ding [Thu, 28 Jan 2010 14:41:50 +0000 (22:41 +0800)]
remove all the ugly strailing spaces in tmpl

7 years agoupdate README and general.yaml for last changes
JF Ding [Thu, 28 Jan 2010 14:34:20 +0000 (22:34 +0800)]
update README and general.yaml for last changes

also added 'doc' target to Makefile, which will convert README the
mardown file to html

7 years agoini2spec: move used spec-builder files to subdir
JF Ding [Thu, 28 Jan 2010 13:36:27 +0000 (21:36 +0800)]
ini2spec: move used spec-builder files to subdir

for cleanup

7 years agoAdded 'extra sections' customized part in spec
JF Ding [Thu, 28 Jan 2010 11:51:34 +0000 (19:51 +0800)]
Added 'extra sections' customized part in spec

e.g. some packages need '%check' section

7 years agoauto Requires(post/postun) for Lib
JF Ding [Thu, 28 Jan 2010 11:14:53 +0000 (19:14 +0800)]
auto Requires(post/postun) for Lib

7 years agospec2spec: detect '%find_lang' for LocaleName
JF Ding [Thu, 28 Jan 2010 11:02:23 +0000 (19:02 +0800)]
spec2spec: detect '%find_lang' for LocaleName

7 years agoshould parsing %doc files for extra info
JF Ding [Thu, 28 Jan 2010 10:38:33 +0000 (18:38 +0800)]
should parsing %doc files for extra info

also, unused 'PreUn' extra info was removed

7 years agofixed bug in parsing customized lines in spec
JF Ding [Thu, 28 Jan 2010 05:14:29 +0000 (13:14 +0800)]
fixed bug in parsing customized lines in spec

7 years agoauto-requires(pre/post) for subpkgs, and careful postun
JF Ding [Thu, 28 Jan 2010 04:56:00 +0000 (12:56 +0800)]
auto-requires(pre/post) for subpkgs, and careful postun

Add arguments checking for preun/postun scripts, only delete files
when $1==0. (Only related Info files by now)

And add more clear comments in temp for readable

7 years agoupdate match rules for info files in files parsing
JF Ding [Wed, 27 Jan 2010 11:59:35 +0000 (19:59 +0800)]
update match rules for info files in files parsing

7 years agocleanup code for 'files' handling
JF Ding [Wed, 27 Jan 2010 11:39:30 +0000 (19:39 +0800)]
cleanup code for 'files' handling

move all common operaton to Converter, instead of in ini2spec and
spec2spec with little specific difference.
move all EXTRA keys to 'extra' part in medium data

7 years agocleanup code for old specfile handling
JF Ding [Wed, 27 Jan 2010 09:39:06 +0000 (17:39 +0800)]
cleanup code for old specfile handling

7 years agospec2spec: more precise match rule for configur/make
JF Ding [Wed, 27 Jan 2010 09:18:16 +0000 (17:18 +0800)]
spec2spec: more precise match rule for configur/make

7 years agospec2spectacle: fixed un-unified key names
JF Ding [Wed, 27 Jan 2010 08:47:20 +0000 (16:47 +0800)]
spec2spectacle: fixed un-unified key names

7 years agospec.tmpl: add 'Requires(preun)'
JF Ding [Wed, 27 Jan 2010 08:44:59 +0000 (16:44 +0800)]
spec.tmpl: add 'Requires(preun)'

7 years agospec.tmpl: Requires(pre/post/postun) for subpkgs
JF Ding [Wed, 27 Jan 2010 08:29:14 +0000 (16:29 +0800)]
spec.tmpl: Requires(pre/post/postun) for subpkgs

7 years agoRename README back and update the content
JF Ding [Wed, 27 Jan 2010 07:42:27 +0000 (15:42 +0800)]
Rename README back and update the content

7 years agonew: auto-download src pkg for new version
JF Ding [Wed, 27 Jan 2010 07:36:32 +0000 (15:36 +0800)]
new: auto-download src pkg for new version

7 years agomore loose match rule for lib files
JF Ding [Wed, 27 Jan 2010 06:24:11 +0000 (14:24 +0800)]
more loose match rule for lib files

7 years agoNeed to add buldingpath for 'setup' rpm macro
JF Ding [Tue, 26 Jan 2010 09:14:08 +0000 (17:14 +0800)]
Need to add buldingpath for 'setup' rpm macro

7 years agopump verstion to 0.10 0.10
JF Ding [Fri, 22 Jan 2010 11:38:34 +0000 (19:38 +0800)]
pump verstion to 0.10

7 years agoRename 'Extras' to 'ExtraSources' for more clear
JF Ding [Fri, 22 Jan 2010 11:33:54 +0000 (19:33 +0800)]
Rename 'Extras' to 'ExtraSources' for more clear

7 years agoRewrite README as the tutorial doc in markdown
JF Ding [Fri, 22 Jan 2010 11:30:01 +0000 (19:30 +0800)]
Rewrite README as the tutorial doc in markdown

And update 'general.yaml', the demo spectacle with all valid keys

7 years agoupdate match rule of 'makeinstall'
JF Ding [Fri, 22 Jan 2010 09:08:46 +0000 (17:08 +0800)]
update match rule of 'makeinstall'

7 years agomore careful quote when dumping yaml
JF Ding [Fri, 22 Jan 2010 08:43:12 +0000 (16:43 +0800)]
more careful quote when dumping yaml

7 years agoAdd 'Extras' keywork in spectacle yaml
JF Ding [Fri, 22 Jan 2010 08:33:14 +0000 (16:33 +0800)]
Add 'Extras' keywork in spectacle yaml

'Extras' is a list type directive, each item will be in format:
  <extra-file>[;extra-path]
means, need to install "extra-file" to "extra-path" (if specified,
otherwise to '/' instead).

And add convert support of ini2spectacle

7 years agoini2spectacle: need special handling for ConfigOptions
JF Ding [Fri, 22 Jan 2010 06:30:17 +0000 (14:30 +0800)]
ini2spectacle: need special handling for ConfigOptions

7 years agouse %makeinstall for non moblin distros
Anas Nashif [Mon, 18 Jan 2010 19:07:40 +0000 (14:07 -0500)]
use %makeinstall for non moblin distros

7 years agofixed conflict
Anas Nashif [Mon, 18 Jan 2010 19:06:41 +0000 (14:06 -0500)]
fixed conflict

7 years agosupport post,pre,postun Requires
Anas Nashif [Mon, 18 Jan 2010 19:03:10 +0000 (14:03 -0500)]
support post,pre,postun Requires

7 years agopump version to 0.9 0.9
JF Ding [Mon, 18 Jan 2010 10:20:04 +0000 (18:20 +0800)]
pump version to 0.9

7 years agomore safe backup for origin spec file
JF Ding [Mon, 18 Jan 2010 10:19:27 +0000 (18:19 +0800)]
more safe backup for origin spec file

7 years agoAdd Provides/Obsolets/Conflicts in spec.tmpl
JF Ding [Mon, 18 Jan 2010 09:16:34 +0000 (17:16 +0800)]
Add Provides/Obsolets/Conflicts in spec.tmpl

7 years agospec tmpl: use make_install macro only for moblin
JF Ding [Mon, 18 Jan 2010 08:20:45 +0000 (16:20 +0800)]
spec tmpl: use make_install macro only for moblin

7 years agospec2spectacle: install scripts auto parsing
JF Ding [Sun, 17 Jan 2010 16:06:20 +0000 (00:06 +0800)]
spec2spectacle: install scripts auto parsing

7 years agospec2spectacle: better handling for sub-packages
JF Ding [Sun, 17 Jan 2010 14:43:59 +0000 (22:43 +0800)]
spec2spectacle: better handling for sub-packages

7 years agospec2spec: change except handling for unknown spec line
JF Ding [Fri, 15 Jan 2010 14:23:38 +0000 (22:23 +0800)]
spec2spec: change except handling for unknown spec line

7 years agotypo fix
JF Ding [Fri, 15 Jan 2010 14:08:56 +0000 (22:08 +0800)]
typo fix

7 years ago'devel' sub-packages should not ldconfig in post/postun scripts
JF Ding [Fri, 15 Jan 2010 14:05:38 +0000 (22:05 +0800)]
'devel' sub-packages should not ldconfig in post/postun scripts

7 years agouse "-p ldconfig" style for post/postun script
JF Ding [Fri, 15 Jan 2010 14:03:24 +0000 (22:03 +0800)]
use "-p ldconfig" style for post/postun script

7 years agotreat all numberic value in yaml as string
JF Ding [Wed, 13 Jan 2010 07:08:25 +0000 (15:08 +0800)]
treat all numberic value in yaml as string

7 years agoMerge branch 'newtool'
JF Ding [Mon, 11 Jan 2010 01:37:11 +0000 (09:37 +0800)]
Merge branch 'newtool'

7 years agonew 'Builder' value 'no-make' to prevent generate make
JF Ding [Mon, 11 Jan 2010 01:35:48 +0000 (09:35 +0800)]
new 'Builder' value 'no-make' to prevent generate make

7 years agoAdd 'PostMakeExtra' expanding for ini2spectacle
JF Ding [Fri, 8 Jan 2010 10:54:52 +0000 (18:54 +0800)]
Add 'PostMakeExtra' expanding for ini2spectacle

7 years agosupport locale options
Anas Nashif [Thu, 7 Jan 2010 21:01:44 +0000 (13:01 -0800)]
support locale options

7 years agoAdd gzip archive support
Peter Zhu [Mon, 4 Jan 2010 16:35:15 +0000 (00:35 +0800)]
Add gzip archive support

7 years agopython is now a value of Builder
Anas Nashif [Mon, 4 Jan 2010 01:51:49 +0000 (20:51 -0500)]
python is now a value of Builder

7 years agopython is now a value of Builder
Anas Nashif [Mon, 4 Jan 2010 01:48:42 +0000 (20:48 -0500)]
python is now a value of Builder

7 years agoAdd new tool spec2spectacle
JF Ding [Mon, 4 Jan 2010 00:25:21 +0000 (08:25 +0800)]
Add new tool spec2spectacle

usage like ini2spectacle
convert .spec to .yaml and new updated .spec, and save old .spec
to .spec.bak

7 years agomake 'python' as a value for 'Builder', instead of 'Configure'
JF Ding [Sun, 3 Jan 2010 07:34:25 +0000 (15:34 +0800)]
make 'python' as a value for 'Builder', instead of 'Configure'

7 years agoMerge remote branch 'origin/master'
JF Ding [Sun, 3 Jan 2010 03:30:53 +0000 (11:30 +0800)]
Merge remote branch 'origin/master'

7 years agomake 'Documents' as list type directive
JF Ding [Sat, 2 Jan 2010 14:27:30 +0000 (22:27 +0800)]
make 'Documents' as list type directive

and more decent handling for duplicate doc items
all single items without full path name, e.g. README, Author, etc,
should be written in one single line. And all 'Docments' will be
LIST type directive.

7 years agousing 'configure' as default when no 'Configre' in .ini
JF Ding [Sat, 2 Jan 2010 13:29:19 +0000 (21:29 +0800)]
using 'configure' as default when no 'Configre' in .ini

7 years agoduplicate items of Documents in *.ini
JF Ding [Sat, 2 Jan 2010 13:24:54 +0000 (21:24 +0800)]
duplicate items of Documents in *.ini

7 years agoMerge branch 'master' of git@git.moblin.org:spectacle 0.8
Anas Nashif [Sat, 2 Jan 2010 07:45:59 +0000 (23:45 -0800)]
Merge branch 'master' of git@git.moblin.org:spectacle

Conflicts:
spectacle/spec/spec.tmpl

7 years agoVarious fixes and improvements
Anas Nashif [Sat, 2 Jan 2010 07:30:36 +0000 (23:30 -0800)]
Various fixes and improvements

- Do not try to be "smart" like specbuilder adding useless code to
every package to handle docs
- Remove many newlines
- do not call ldconfig in -devel packages
- Other fixes

7 years agoIcon files handling in spec.tmpl
JF Ding [Sat, 2 Jan 2010 07:00:57 +0000 (15:00 +0800)]
Icon files handling in spec.tmpl

7 years agoRe-structure for extra values in convertor/dumper
JF Ding [Sat, 2 Jan 2010 05:59:33 +0000 (13:59 +0800)]
Re-structure for extra values in convertor/dumper

7 years agoMerge remote branch 'origin/master'
JF Ding [Fri, 1 Jan 2010 03:25:04 +0000 (11:25 +0800)]
Merge remote branch 'origin/master'

7 years agofix capital problem in source ini file
JF Ding [Thu, 31 Dec 2009 15:07:30 +0000 (23:07 +0800)]
fix capital problem in source ini file

7 years agoupdate for %doc directive for sub-packages
JF Ding [Thu, 31 Dec 2009 14:40:08 +0000 (22:40 +0800)]
update for %doc directive for sub-packages

7 years agonew ESC method for yaml line with leading '%'
JF Ding [Thu, 31 Dec 2009 14:39:25 +0000 (22:39 +0800)]
new ESC method for yaml line with leading '%'

7 years agobug of multi "doc" handling
JF Ding [Thu, 31 Dec 2009 14:06:31 +0000 (22:06 +0800)]
bug of multi "doc" handling