meego-developer-tools:spectacle.git
7 years agopump vertion to 0.13 0.13
JF Ding [Tue, 23 Feb 2010 11:54:30 +0000 (19:54 +0800)]
pump vertion to 0.13

7 years agoMakefile: split extra stuff from standard setup.py
JF Ding [Tue, 23 Feb 2010 11:53:45 +0000 (19:53 +0800)]
Makefile: split extra stuff from standard setup.py

7 years agoupdate Makefile for untagged version
JF Ding [Tue, 23 Feb 2010 10:45:51 +0000 (18:45 +0800)]
update Makefile for untagged version

7 years agoini2spec: move old Makefile to backup
JF Ding [Tue, 23 Feb 2010 10:02:20 +0000 (18:02 +0800)]
ini2spec: move old Makefile to backup

7 years agoMore decent handling for interrupt download
JF Ding [Tue, 23 Feb 2010 08:46:46 +0000 (16:46 +0800)]
More decent handling for interrupt download

7 years agowarning for corrupt tarballs if found
JF Ding [Tue, 23 Feb 2010 08:44:36 +0000 (16:44 +0800)]
warning for corrupt tarballs if found

7 years agospec2spec: better parsing for configur options line
JF Ding [Tue, 23 Feb 2010 08:32:11 +0000 (16:32 +0800)]
spec2spec: better parsing for configur options line

7 years agomake all tools can work outside package dir
JF Ding [Tue, 23 Feb 2010 08:19:25 +0000 (16:19 +0800)]
make all tools can work outside package dir

7 years agochanged the path of original spec file backup
JF Ding [Tue, 23 Feb 2010 07:41:06 +0000 (15:41 +0800)]
changed the path of original spec file backup

7 years agowrapper raw_input using logger.ask for clear output
JF Ding [Tue, 23 Feb 2010 07:14:08 +0000 (15:14 +0800)]
wrapper raw_input using logger.ask for clear output

7 years agocleanup for all printing code using logger
JF Ding [Tue, 23 Feb 2010 07:03:12 +0000 (15:03 +0800)]
cleanup for all printing code using logger

7 years agospec2spec: split mutiple reqs in one line
JF Ding [Tue, 23 Feb 2010 06:31:24 +0000 (14:31 +0800)]
spec2spec: split mutiple reqs in one line

7 years agofixed: more accurate match of '-devel' sub pakcages
JF Ding [Tue, 23 Feb 2010 06:06:47 +0000 (14:06 +0800)]
fixed: more accurate match of '-devel' sub pakcages

7 years agospec2spec: fixed wrong parsing of options of header tags
JF Ding [Tue, 23 Feb 2010 05:19:29 +0000 (13:19 +0800)]
spec2spec: fixed wrong parsing of options of header tags

7 years agospecify: find sourceprefix in tarballs, need to strip '/$'
JF Ding [Tue, 23 Feb 2010 05:12:38 +0000 (13:12 +0800)]
specify: find sourceprefix in tarballs, need to strip '/$'

7 years agoMerge commit 'origin/master'
JF Ding [Tue, 23 Feb 2010 04:11:36 +0000 (12:11 +0800)]
Merge commit 'origin/master'

7 years agospec2spec: fixed bug for warning output
JF Ding [Tue, 23 Feb 2010 04:10:32 +0000 (12:10 +0800)]
spec2spec: fixed bug for warning output

7 years agoupdate documents: TODO README examples
JF Ding [Tue, 23 Feb 2010 03:26:40 +0000 (11:26 +0800)]
update documents: TODO README examples

7 years agoAdded System/Desktop
Anas Nashif [Tue, 23 Feb 2010 02:45:33 +0000 (21:45 -0500)]
Added System/Desktop

7 years agochanged logger msg colors
JF Ding [Tue, 23 Feb 2010 02:04:52 +0000 (10:04 +0800)]
changed logger msg colors

7 years agoremove workaround changes
JF Ding [Tue, 23 Feb 2010 01:42:36 +0000 (09:42 +0800)]
remove workaround changes

7 years agoMerge commit 'origin/master'
JF Ding [Tue, 23 Feb 2010 01:40:34 +0000 (09:40 +0800)]
Merge commit 'origin/master'

7 years agoAdded new modules
JF Ding [Tue, 23 Feb 2010 01:38:46 +0000 (09:38 +0800)]
Added new modules

7 years agotemporary workaround for logging
Anas Nashif [Mon, 22 Feb 2010 17:22:40 +0000 (12:22 -0500)]
temporary workaround for logging

7 years agomanaged all warning printing and colorized them
JF Ding [Mon, 22 Feb 2010 11:13:09 +0000 (19:13 +0800)]
managed all warning printing and colorized them

added new module 'logger', which exported three functions:
 info()
 warning()
 error()

they will print msg with ANSI colors

7 years agospec2spec: change for different default 'Configure' value
JF Ding [Mon, 22 Feb 2010 06:31:37 +0000 (14:31 +0800)]
spec2spec: change for different default 'Configure' value

now the default 'Configure' value changed from 'none' to 'configure'

7 years agoMerge commit 'origin/master'
JF Ding [Mon, 22 Feb 2010 06:06:12 +0000 (14:06 +0800)]
Merge commit 'origin/master'

7 years agofixed pre-process for different boolean keys
JF Ding [Mon, 22 Feb 2010 06:04:22 +0000 (14:04 +0800)]
fixed pre-process for different boolean keys

UseAsNeeded default as TRUE, so only reserve false specifies

7 years agoupdate TODO
Anas Nashif [Mon, 22 Feb 2010 04:07:44 +0000 (23:07 -0500)]
update TODO

7 years agoupdate TODO
JF Ding [Mon, 22 Feb 2010 01:45:23 +0000 (09:45 +0800)]
update TODO

7 years agoremove extar debug print
Anas Nashif [Mon, 22 Feb 2010 01:15:54 +0000 (20:15 -0500)]
remove extar debug print

7 years agohandle requires with versions when detecting pkgconfig alternatives
Anas Nashif [Mon, 22 Feb 2010 01:13:01 +0000 (20:13 -0500)]
handle requires with versions when detecting pkgconfig alternatives

7 years agoAdd perl package support
nashif [Sun, 21 Feb 2010 23:21:13 +0000 (15:21 -0800)]
Add perl package support

7 years agoAdd perl package support
nashif [Sun, 21 Feb 2010 22:32:33 +0000 (14:32 -0800)]
Add perl package support

7 years agoremove pkgconfig
Anas Nashif [Sun, 21 Feb 2010 18:43:30 +0000 (13:43 -0500)]
remove pkgconfig

7 years agofixed indentation
nashif [Sun, 21 Feb 2010 18:43:08 +0000 (10:43 -0800)]
fixed indentation

7 years agoMerge branch 'master' of git@git.moblin.org:spectacle
Anas Nashif [Sun, 21 Feb 2010 17:42:22 +0000 (12:42 -0500)]
Merge branch 'master' of git@git.moblin.org:spectacle

7 years agoAdapted groups
Anas Nashif [Sun, 21 Feb 2010 17:42:15 +0000 (12:42 -0500)]
Adapted groups

7 years agoinstall group file
nashif [Sun, 21 Feb 2010 17:29:43 +0000 (09:29 -0800)]
install group file

7 years agoCheck for approved groups
Anas Nashif [Sun, 21 Feb 2010 17:28:48 +0000 (12:28 -0500)]
Check for approved groups

7 years agofixed usage of UseAsNeeded
Anas Nashif [Sun, 21 Feb 2010 16:54:37 +0000 (11:54 -0500)]
fixed usage of UseAsNeeded

7 years agopkgconfig data
Anas Nashif [Sun, 21 Feb 2010 16:19:12 +0000 (11:19 -0500)]
pkgconfig data

7 years agoMerge branch 'master' of git@git.moblin.org:spectacle
Anas Nashif [Sun, 21 Feb 2010 16:18:48 +0000 (11:18 -0500)]
Merge branch 'master' of git@git.moblin.org:spectacle

7 years agoGive info about possible usage of pkgconfig
Anas Nashif [Sun, 21 Feb 2010 16:17:24 +0000 (11:17 -0500)]
Give info about possible usage of pkgconfig

Use a database dump to provide information about replacing normal
BuildRequires with pkgconfig

7 years agoupdate document
JF Ding [Sun, 21 Feb 2010 15:48:22 +0000 (23:48 +0800)]
update document

7 years agoadd support for bool keys NoAutoReq and NoAutoProv
JF Ding [Sun, 21 Feb 2010 15:42:13 +0000 (23:42 +0800)]
add support for bool keys NoAutoReq and NoAutoProv

will add
    AutoReq: 0
    AutoProv: 0
to spec if specifed

7 years agoini2spec: add support for boolean type keys
JF Ding [Sun, 21 Feb 2010 15:30:05 +0000 (23:30 +0800)]
ini2spec: add support for boolean type keys

including:
    UseAsNeeded
    AddCheck
    NoAutoReq
    NoAutoProv

7 years agoadd new bool key 'UseAsNeeded'
JF Ding [Sun, 21 Feb 2010 15:23:09 +0000 (23:23 +0800)]
add new bool key 'UseAsNeeded'

if 'UseAsNeeded'
    'export LD_AS_NEEDED=1'
else
    'unset LD_AS_NEEDED'

before `make`

import from spec-builder

7 years agoUpdate TODO with current progress
JF Ding [Sun, 21 Feb 2010 14:54:17 +0000 (22:54 +0800)]
Update TODO with current progress

7 years agospec2spec: no need to specify spec-path in cmdln and more checks
JF Ding [Sun, 21 Feb 2010 14:52:46 +0000 (22:52 +0800)]
spec2spec: no need to specify spec-path in cmdln and more checks

if not specified in cmdln, it will search *.spec in CWD.
And it will check if there's *.yaml for safe.

7 years agospecify: no need to specify yaml path in cmdln now
JF Ding [Sun, 21 Feb 2010 14:39:45 +0000 (22:39 +0800)]
specify: no need to specify yaml path in cmdln now

if not specified, search one in current folder

7 years agoini2spec: no need to specify inipath in cmdln now
JF Ding [Sun, 21 Feb 2010 14:32:50 +0000 (22:32 +0800)]
ini2spec: no need to specify inipath in cmdln now

if not specified, ini2spectalce will search *.ini in current folder

7 years agoLocaleOptions should be list typed
JF Ding [Sun, 21 Feb 2010 12:08:30 +0000 (20:08 +0800)]
LocaleOptions should be list typed

according the tradition

7 years agospec2spec: more accurate parse for find_lang
JF Ding [Sun, 21 Feb 2010 11:50:52 +0000 (19:50 +0800)]
spec2spec: more accurate parse for find_lang

split LocaleName and LocaleOptions

7 years agoini2spec: LocaleOptions will trigger auto LocaleName
JF Ding [Sun, 21 Feb 2010 11:36:28 +0000 (19:36 +0800)]
ini2spec: LocaleOptions will trigger auto LocaleName

If in origin .ini LocaleOptions specifed and LocaleName not specifed
explicitly, LocaleName will be set as %{name}

7 years agospecify: check static libs and support keeping static
JF Ding [Sun, 21 Feb 2010 11:23:44 +0000 (19:23 +0800)]
specify: check static libs and support keeping static

7 years agohandle duplicate values of auto-generated ones
JF Ding [Sun, 21 Feb 2010 10:24:30 +0000 (18:24 +0800)]
handle duplicate values of auto-generated ones

The following cases are checked:
    - sub-pkg's 'Requires' of base package
    - '--disable-static' of ConfigOptions
    - 'defattr(-,root,root,-)' in %files

`specify` will check the data in YAML, if duplicates were found, it
will show warning msg and skip them.
Converters will check the intermedium data, and will not write them
to yaml.

7 years agoAdded date, better info handling, ..
nashif [Sat, 20 Feb 2010 19:05:46 +0000 (11:05 -0800)]
Added date, better info handling, ..

- Add date to spec header
- Use macros for info files
- Fixed file list parsing

7 years agobump version to 0.13~pre
nashif [Sat, 20 Feb 2010 17:20:43 +0000 (09:20 -0800)]
bump version to 0.13~pre

7 years agoVarious fixes:
nashif [Sat, 20 Feb 2010 17:19:16 +0000 (09:19 -0800)]
Various fixes:

- If intltool or gettext are in BuildRequires, then probably we have locale
  data
- No Configure means there is a %configure section

7 years agotry to get prefix from tarball name if other things fail
nashif [Sat, 20 Feb 2010 16:54:00 +0000 (08:54 -0800)]
try to get prefix from tarball name if other things fail

7 years agofixed typo in comments
JF Ding [Sat, 20 Feb 2010 10:29:33 +0000 (18:29 +0800)]
fixed typo in comments

7 years agospecify: use urlgrabber to download src files
JF Ding [Sat, 20 Feb 2010 10:05:24 +0000 (18:05 +0800)]
specify: use urlgrabber to download src files

The following advantages:
 1. better proxy support
 2. support https://
 3. support checking for invalid url (4xx pages)
 4. better progress bar

7 years agospecify: reorg scm/download-src code and fix bug for version cmp
JF Ding [Sat, 20 Feb 2010 09:18:35 +0000 (17:18 +0800)]
specify: reorg scm/download-src code and fix bug for version cmp

All the related code were moved to class RPMWriter.
Use distuils.version to cmp versions.

7 years agospecify: if 'SourcePrefix' not specified, detect from tarball
JF Ding [Sat, 20 Feb 2010 08:28:55 +0000 (16:28 +0800)]
specify: if 'SourcePrefix' not specified, detect from tarball

if 'SourcePrefix' specified, use it. Otherwise read the content
of tarballs to find out the source prefix.

7 years agospecify: check the types of list-type keys and tolerate str value
JF Ding [Sat, 20 Feb 2010 07:59:23 +0000 (15:59 +0800)]
specify: check the types of list-type keys and tolerate str value

7 years agoini2spec: update the key table for convert
JF Ding [Sat, 20 Feb 2010 07:35:55 +0000 (15:35 +0800)]
ini2spec: update the key table for convert

'Obsoletes'/'Conflicts'/'Provides' append to deps_keys for converting
to list, like 'Requires' needed.

7 years agospecify: checking the validation of 'Description'
JF Ding [Sat, 20 Feb 2010 07:17:50 +0000 (15:17 +0800)]
specify: checking the validation of 'Description'

if no 'Description' specified, or just specified as '%{summary}',
show warning msg to notify user to update.

7 years agoini2spec: skip missing expected files with warnings
JF Ding [Sat, 20 Feb 2010 06:52:30 +0000 (14:52 +0800)]
ini2spec: skip missing expected files with warnings

In many origin spec-builder managed pkgs, *.desc were missed. Just
skip this problem and show warning msg.

7 years agoinclude yaml as Source100
Anas Nashif [Fri, 19 Feb 2010 16:00:57 +0000 (11:00 -0500)]
include yaml as Source100

7 years agoAdd TODO
Anas Nashif [Fri, 19 Feb 2010 15:56:39 +0000 (10:56 -0500)]
Add TODO

7 years agobump version 0.12
nashif [Wed, 17 Feb 2010 16:05:35 +0000 (08:05 -0800)]
bump version

7 years agoFixed setup
nashif [Wed, 17 Feb 2010 16:05:14 +0000 (08:05 -0800)]
Fixed setup

7 years agoCustomize %setup section more
nashif [Tue, 16 Feb 2010 16:16:52 +0000 (08:16 -0800)]
Customize %setup section more

Added
- SetupOptions (string): overrides default %setup options
- NoSetup (boolean)

7 years agoRemove %dist
nashif [Sat, 13 Feb 2010 14:57:47 +0000 (06:57 -0800)]
Remove %dist

7 years agoSupport fdupes
Anas Nashif [Thu, 11 Feb 2010 21:10:04 +0000 (16:10 -0500)]
Support fdupes

7 years agoVarious fixes and enhancements
Anas Nashif [Thu, 11 Feb 2010 13:37:49 +0000 (08:37 -0500)]
Various fixes and enhancements

- %preun handling when uninstalling schemas should be when -eq 0 and not
-gt 0

%preun
if [ "$1" -eq 0 ] ; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/[NAME] .schemas > /dev/null || :
fi

- Fixed info page installation, we do not use macros
- Remove %doc when using file names in scripts

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