meego-developer-tools:spectacle.git
5 years agobump version to 0.23 0.23
JF Ding [Mon, 10 Oct 2011 10:01:53 +0000 (18:01 +0800)]
bump version to 0.23

5 years agoupdate document files
JF Ding [Mon, 10 Oct 2011 10:00:20 +0000 (18:00 +0800)]
update document files

5 years agoupdate setup.py
JF Ding [Mon, 10 Oct 2011 09:53:22 +0000 (17:53 +0800)]
update setup.py

5 years agoMerge branch 'merge-requests/5'
JF Ding [Mon, 10 Oct 2011 09:46:04 +0000 (17:46 +0800)]
Merge branch 'merge-requests/5'

5 years agotypo in data/GROUPS
JF Ding [Fri, 7 Oct 2011 12:35:14 +0000 (20:35 +0800)]
typo in data/GROUPS

5 years agoBMC#23539: more precise req for Icon %post handling
JF Ding [Fri, 7 Oct 2011 11:36:36 +0000 (19:36 +0800)]
BMC#23539: more precise req for Icon %post handling

6 years agoremoved what looks like dead code, as it it duplicate 5
Olev Kartau [Wed, 24 Aug 2011 09:55:49 +0000 (12:55 +0300)]
removed what looks like dead code, as it it duplicate
case in if-else chain

6 years agoIn case of builder set to cmake, emit "BuildRequires: cmake"
Olev Kartau [Wed, 24 Aug 2011 09:27:40 +0000 (12:27 +0300)]
In case of builder set to cmake, emit "BuildRequires:  cmake"
without need to write it in yaml file. Fixes meego bug #15768

6 years agouse %cmake instead of make;
Olev Kartau [Tue, 23 Aug 2011 12:28:39 +0000 (15:28 +0300)]
use %cmake instead of make;
do not create specific meego-build directory to have out-of-source build

6 years agodeb2spectacle: generate filelist for sub-packages
Zhang Qiang [Thu, 4 Aug 2011 02:16:23 +0000 (10:16 +0800)]
deb2spectacle: generate filelist for sub-packages

Parse *.install file, and generate filelist for subpackages.

6 years agospec2spectacle: Ignore os and arch dependency
Zhang Qiang [Thu, 4 Aug 2011 02:08:45 +0000 (10:08 +0800)]
spec2spectacle: Ignore os and arch dependency

os and architecture dependencies are not support, so just ignore them
and maintainer can add manually.

example:
Control file dependency:
  Build-Depends: libselinux-dev [!kfreebsd-amd64 !kfreebsd-i386 !hurd-i386] (>=1.1)
which can be transfered to spec dependency:
  BuildRequires:libselinux-dev>=1.1

6 years agodeb2spectacle:More fixes while generating YAML file
Zhang Qiang [Mon, 25 Jul 2011 03:05:31 +0000 (11:05 +0800)]
deb2spectacle:More fixes while generating YAML file

Add one more deb special varable: 'python:Provides'
Add 'Sources' field in main packages, wich could also help to generate
'%setup' macro in %prep section
Split out formal version for 'Verison' field.

6 years agodeb2spectacle:drop more deb field and fix type error
Zhang Qiang [Thu, 21 Jul 2011 08:52:02 +0000 (16:52 +0800)]
deb2spectacle:drop more deb field and fix type error

Ignore one more deb field 'Vcs-Bzr'. And change the value type of
'AsWholeName' as string, without this fix, subpackage can't be generated
out.

6 years agoBMC#18173: Added error checks for placeholders validity in spec file
Kalle Lampila [Fri, 11 Feb 2011 14:40:54 +0000 (16:40 +0200)]
BMC#18173: Added error checks for placeholders validity in spec file

check section start and stop correspondence
check sections not overlapping
check there is not duplicate sections
check there is not unknown section

Signed-off-by: Kalle Lampila <kalle.lampila@cybercom.com>
6 years agoavoid crash when unavailable subpkg placeholders in spec
JF Ding [Mon, 20 Jun 2011 09:33:17 +0000 (17:33 +0800)]
avoid crash when unavailable subpkg placeholders in spec

6 years agotestsuites: new case for systemd support
JF Ding [Mon, 20 Jun 2011 09:13:33 +0000 (17:13 +0800)]
testsuites: new case for systemd support

6 years agotestsuites: new case for path macros proposals
JF Ding [Mon, 20 Jun 2011 09:07:45 +0000 (17:07 +0800)]
testsuites: new case for path macros proposals

6 years agotestsuites: new case for arch prefix for 'Files'
JF Ding [Mon, 20 Jun 2011 08:54:30 +0000 (16:54 +0800)]
testsuites: new case for arch prefix for 'Files'

6 years agotestsuites: update output checking according recent changes
JF Ding [Mon, 20 Jun 2011 08:53:16 +0000 (16:53 +0800)]
testsuites: update output checking according recent changes

6 years agoBMC#17388: FEA, support auto %post* scripts for systemd services
JF Ding [Sun, 5 Jun 2011 11:25:46 +0000 (19:25 +0800)]
BMC#17388: FEA, support auto %post* scripts for systemd services

insert auto scripts for sections:
%post
systemctl daemon-reload
systemctl reload-or-try-restart ###.service

%postun
systemctl daemon-reload

%preun
systemctl stop ###.service

6 years agoauto requires for systemd service
JF Ding [Sun, 5 Jun 2011 10:48:34 +0000 (18:48 +0800)]
auto requires for systemd service

Requires: systemd
Requires(post):   systemd
Requires(preun):  systemd
Requires(postun): systemd

for part of feature request of BMC#17388

6 years agomore file path rpm macros supported
JF Ding [Sun, 5 Jun 2011 09:48:38 +0000 (17:48 +0800)]
more file path rpm macros supported

6 years agoBMC#18226: FEA, suggest for %{_bindir} like macros
JF Ding [Sun, 5 Jun 2011 09:26:57 +0000 (17:26 +0800)]
BMC#18226: FEA, suggest for %{_bindir} like macros

6 years agocleanup dead code for deprecated key Documents
JF Ding [Sun, 5 Jun 2011 08:39:10 +0000 (16:39 +0800)]
cleanup dead code for deprecated key Documents

6 years agodeb2spec: read binary Version from .dsc
JF Ding [Sun, 5 Jun 2011 08:24:23 +0000 (16:24 +0800)]
deb2spec: read binary Version from .dsc

6 years agodeb2spec: drop more debain only fields
JF Ding [Sat, 4 Jun 2011 11:00:36 +0000 (19:00 +0800)]
deb2spec: drop more debain only fields

6 years agounicode handling in dumper
JF Ding [Sat, 4 Jun 2011 10:49:29 +0000 (18:49 +0800)]
unicode handling in dumper

6 years agodeb2spec: convert the comparison in depends keys
JF Ding [Sat, 4 Jun 2011 06:32:01 +0000 (14:32 +0800)]
deb2spec: convert the comparison in depends keys

6 years agoput 'SCM' key in order in the output YAML
JF Ding [Sat, 4 Jun 2011 05:57:08 +0000 (13:57 +0800)]
put 'SCM' key in order in the output YAML

6 years agonew tool deb2spectacle added
JF Ding [Sat, 4 Jun 2011 05:51:57 +0000 (13:51 +0800)]
new tool deb2spectacle added

This new tool can be used to generate new YAML file based on the pkg
meta information from debian/control

6 years agoMerge remote branch 'merge/build-fixes'
JF Ding [Sun, 22 May 2011 13:58:02 +0000 (21:58 +0800)]
Merge remote branch 'merge/build-fixes'

6 years agosyntax
Anas Nashif [Sat, 16 Apr 2011 11:41:02 +0000 (12:41 +0100)]
syntax

6 years agoBMC#15752: FEA, arch specifying support for Files
JF Ding [Tue, 12 Apr 2011 00:40:47 +0000 (08:40 +0800)]
BMC#15752: FEA, arch specifying support for Files

6 years agoBMC#15013: squeeze out all empty values from list keys
JF Ding [Tue, 12 Apr 2011 00:21:53 +0000 (08:21 +0800)]
BMC#15013: squeeze out all empty values from list keys

6 years agoBMC#15643: *.desktop in subpkg cannot trigger auto-handling
JF Ding [Mon, 11 Apr 2011 23:56:21 +0000 (07:56 +0800)]
BMC#15643: *.desktop in subpkg cannot trigger auto-handling

The desktop file installation should be valid for all packages, whenever
any packages, the main and subs, contain them.

6 years agoa couple of warning fixes
Anas Nashif [Thu, 31 Mar 2011 05:32:12 +0000 (06:32 +0100)]
a couple of warning fixes

6 years agoBuild: Install python code to DESTDIR 4
Jon Nordby [Sat, 12 Mar 2011 18:36:39 +0000 (18:36 +0000)]
Build: Install python code to DESTDIR

Obeying DESTDIR is important for distribution packagers
so they can install all files into the packaging root directory.

6 years agoBuild: Use PYTHON envvar if set.
Jon Nordby [Sat, 12 Mar 2011 18:32:01 +0000 (18:32 +0000)]
Build: Use PYTHON envvar if set.

Allows the user/packager to select which Python version to use.
Fixes build on distributions where Python 3 is the default python for
instance.

6 years agoappend lost file for testsuites
JF Ding [Fri, 11 Mar 2011 13:19:33 +0000 (21:19 +0800)]
append lost file for testsuites

6 years agoclearer errmsg for reserved spec sections for lost subpkgs
JF Ding [Fri, 11 Mar 2011 13:17:00 +0000 (21:17 +0800)]
clearer errmsg for reserved spec sections for lost subpkgs

6 years agobump version to 0.22 0.22
JF Ding [Fri, 25 Feb 2011 06:40:15 +0000 (14:40 +0800)]
bump version to 0.22

6 years agoupdate README
JF Ding [Fri, 25 Feb 2011 06:39:10 +0000 (14:39 +0800)]
update README

6 years agoupdate testsuites according recent changes
JF Ding [Tue, 22 Feb 2011 03:52:38 +0000 (11:52 +0800)]
update testsuites according recent changes

6 years agomore clear msg for error "Description"
JF Ding [Tue, 22 Feb 2011 03:50:29 +0000 (11:50 +0800)]
more clear msg for error "Description"

6 years agoadd 'NoIconCache' key to disable ops explicitly
JF Ding [Tue, 22 Feb 2011 03:12:33 +0000 (11:12 +0800)]
add 'NoIconCache' key to disable ops explicitly

if using:
NoIconCache: yes

the generated spec will not insert gtk-update-icon-cache releated stuff

6 years agoFix BMC#12975: need not gtk-update-icon-cache for Qt based pkg
JF Ding [Thu, 17 Feb 2011 11:04:17 +0000 (19:04 +0800)]
Fix BMC#12975: need not gtk-update-icon-cache for Qt based pkg

and will insert "Requires(post): gtk2" to spec

6 years agoFix BMC#12494: update pkgconfig-provides.csv
JF Ding [Thu, 17 Feb 2011 08:29:44 +0000 (16:29 +0800)]
Fix BMC#12494: update pkgconfig-provides.csv

with latest repodata, using the following simple script:

    from lxml import etree as et
    import re

    lines=[]
    for pkg in et.parse(file('fs.xml')).getroot():
        name = pkg.get('name')
        for ff in pkg:
            if ff.tag == '{%s}file' % ff.nsmap.popitem()[1]:
                m = re.match('.*/pkgconfig/.*?([^/]*)\.pc$', ff.text)
                if m:
                    lines.append('%s,pkgconfig(%s)' % (name, m.group(1)))
    print '\n'.join(sorted(lines))

repodata are from oss/ia32 + non-oss/ia32 + oss/arm + non-oss/arm daily
snapshot repos

6 years agoFix BMC#12248, BMC#12111: udpate valid GROUPS according guideline
JF Ding [Wed, 16 Feb 2011 11:10:17 +0000 (19:10 +0800)]
Fix BMC#12248, BMC#12111: udpate valid GROUPS according guideline

http://wiki.meego.com/Packaging/Guidelines#Domain.2FSubsystem_based_RPM_Groups

6 years agoFix BMC#11661: more generic services files matching
JF Ding [Wed, 16 Feb 2011 10:33:23 +0000 (18:33 +0800)]
Fix BMC#11661: more generic services files matching

6 years agoFix BMC#12725: Description should be mandatory and stricter check
JF Ding [Wed, 16 Feb 2011 10:08:11 +0000 (18:08 +0800)]
Fix BMC#12725: Description should be mandatory and stricter check

if Description is ${Summary} or equal to Summary content, regard as
errors

6 years agoFix BMC#12720: crash with empty %files section in .spec
JF Ding [Wed, 16 Feb 2011 09:55:30 +0000 (17:55 +0800)]
Fix BMC#12720: crash with empty %files section in .spec

6 years agospec2spec: update for spec heads checking
JF Ding [Wed, 16 Feb 2011 09:52:17 +0000 (17:52 +0800)]
spec2spec: update for spec heads checking

6 years agoFix BMC#11262: more friendly msg for YAML syntax errors
JF Ding [Wed, 16 Feb 2011 09:43:39 +0000 (17:43 +0800)]
Fix BMC#11262: more friendly msg for YAML syntax errors

6 years agoFix BMC#12235: crash with subpkg without Name
JF Ding [Wed, 16 Feb 2011 09:36:07 +0000 (17:36 +0800)]
Fix BMC#12235: crash with subpkg without Name

6 years agoFix BMC#12333: more expanded values for arch armv7
JF Ding [Mon, 14 Feb 2011 09:31:29 +0000 (17:31 +0800)]
Fix BMC#12333: more expanded values for arch armv7

6 years agoFix BMC#11766: friendly handle for unexpect extra spaces
JF Ding [Mon, 14 Feb 2011 09:20:55 +0000 (17:20 +0800)]
Fix BMC#11766: friendly handle for unexpect extra spaces

For arch namespacing supported keys, extra spaces must NOT left
after ":". Otherwise it means "dict" in YAML format.

This commits to make specify warn and skip the wrong ones.

6 years agoFix MBC#11619: skip %exclude files in when it parse extras from filelists 2
Kalle Lampila [Tue, 21 Dec 2010 16:22:23 +0000 (18:22 +0200)]
Fix MBC#11619: skip %exclude files in when it parse extras from filelists

Signed-off-by: Kalle Lampila <kalle.lampila@cybercom.com>
6 years agoRemove try-except that hide some error situation without fixing them. 1
Kalle Lampila [Mon, 3 Jan 2011 18:55:08 +0000 (20:55 +0200)]
Remove try-except that hide some error situation without fixing them.

Signed-off-by: Kalle Lampila <kalle.lampila@cybercom.com>
6 years agoAdded check that packages in spec sections exist in YAML.
Kalle Lampila [Fri, 7 Jan 2011 14:06:44 +0000 (16:06 +0200)]
Added check that packages in spec sections exist in YAML.

Signed-off-by: Kalle Lampila <kalle.lampila@cybercom.com>
6 years agoFix MBC#11166: Added missing initialize extra flags for AutoSubPackages
Kalle Lampila [Wed, 5 Jan 2011 10:51:42 +0000 (12:51 +0200)]
Fix MBC#11166: Added missing initialize extra flags for AutoSubPackages

Signed-off-by: Kalle Lampila <kalle.lampila@cybercom.com>
6 years agorewrote some code of arch namespace handle
JF Ding [Thu, 9 Dec 2010 09:39:33 +0000 (17:39 +0800)]
rewrote some code of arch namespace handle

logic from Cheetah tmpl to python side, more generic and bugs free

6 years agoupdate README with arch support changes
JF Ding [Thu, 9 Dec 2010 09:39:19 +0000 (17:39 +0800)]
update README with arch support changes

6 years agomake "autogen" to run ./configure automatically
JF Ding [Thu, 9 Dec 2010 06:10:23 +0000 (14:10 +0800)]
make "autogen" to run ./configure automatically

6 years agooutput fixing for series.conf
JF Ding [Thu, 9 Dec 2010 05:52:40 +0000 (13:52 +0800)]
output fixing for series.conf

6 years agotestsuites updated for recently changes
JF Ding [Thu, 9 Dec 2010 05:31:34 +0000 (13:31 +0800)]
testsuites updated for recently changes

6 years agoEnhanced arch namespace support: armv5 and armv7
JF Ding [Thu, 9 Dec 2010 03:36:54 +0000 (11:36 +0800)]
Enhanced arch namespace support: armv5 and armv7

1. Rewrote Cheetah template of arch handling part for cleaner
2. Now spectacle can support armv5 and armv7, besides "arm"
    ix86 => "%{ix86}"
    arm => "%{arm}"
    armv5 => "armv5el armv5tel armv5tejl"
    armv7 => "armv7el armv7tel armv7l"
3. For unsupported arch, just translate it using %ifarch, with Warnings

6 years agoBMC#10495, handling of tarfile and its filename
JF Ding [Fri, 26 Nov 2010 07:13:56 +0000 (15:13 +0800)]
BMC#10495, handling of tarfile and its filename

Include two issues:
1. tarfile.is_tarfile will return True if the file is empty
2. not all tar balls were named as '*.tar.???'

6 years agofixed regex of duplicate cleanup checking
JF Ding [Fri, 26 Nov 2010 05:20:35 +0000 (13:20 +0800)]
fixed regex of duplicate cleanup checking

6 years agobump version to 0.21 0.21
JF Ding [Wed, 24 Nov 2010 04:42:21 +0000 (12:42 +0800)]
bump version to 0.21

6 years agobetter to make 'RunFdupes' as list typed key
JF Ding [Wed, 24 Nov 2010 04:40:52 +0000 (12:40 +0800)]
better to make 'RunFdupes' as list typed key

6 years agofix of str type keys checking
JF Ding [Wed, 24 Nov 2010 04:33:58 +0000 (12:33 +0800)]
fix of str type keys checking

only list typed values will be converted to str(joined by ' '), else del

6 years agodistinguish the logger output from different tool
JF Ding [Fri, 19 Nov 2010 11:18:21 +0000 (19:18 +0800)]
distinguish the logger output from different tool

6 years agospecify --newsub to add new sub-pkg quickly
JF Ding [Fri, 19 Nov 2010 10:53:34 +0000 (18:53 +0800)]
specify --newsub to add new sub-pkg quickly

6 years agocleanup the use of print statement
JF Ding [Fri, 19 Nov 2010 10:22:26 +0000 (18:22 +0800)]
cleanup the use of print statement

for better compatibility with py3k

6 years agobetter support of AutoReq/Prov/ReqProv keys
JF Ding [Fri, 19 Nov 2010 10:08:46 +0000 (18:08 +0800)]
better support of AutoReq/Prov/ReqProv keys

including the support in 'spec2spectacle' tools

6 years agowarning for gplv3 in license
JF Ding [Fri, 19 Nov 2010 07:23:44 +0000 (15:23 +0800)]
warning for gplv3 in license

6 years agofeature: new yaml template for new pkg convinience
JF Ding [Thu, 18 Nov 2010 09:22:05 +0000 (17:22 +0800)]
feature: new yaml template for new pkg convinience

6 years agonew module vercmp for better version comparison
JF Ding [Tue, 19 Oct 2010 19:01:55 +0000 (03:01 +0800)]
new module vercmp for better version comparison

7 years agoadd new keyword: AutoReqProv
Anas Nashif [Tue, 21 Sep 2010 13:57:29 +0000 (14:57 +0100)]
add new keyword: AutoReqProv

7 years agocorrect test cases for latest changes
JF Ding [Sat, 18 Sep 2010 12:50:54 +0000 (20:50 +0800)]
correct test cases for latest changes

7 years agoafter 0.20 release
JF Ding [Sat, 18 Sep 2010 12:49:13 +0000 (20:49 +0800)]
after 0.20 release

7 years agopump version to 0.20 for new release 0.20
JF Ding [Sat, 18 Sep 2010 10:13:16 +0000 (18:13 +0800)]
pump version to 0.20 for new release

7 years agoqmake support for other distros
JF Ding [Sat, 18 Sep 2010 09:26:04 +0000 (17:26 +0800)]
qmake support for other distros

7 years agobetter logger.ask and new non-interactive running mode
JF Ding [Fri, 17 Sep 2010 03:03:12 +0000 (11:03 +0800)]
better logger.ask and new non-interactive running mode

7 years agoupdate README and new test suites for new keys
JF Ding [Fri, 17 Sep 2010 03:02:08 +0000 (11:02 +0800)]
update README and new test suites for new keys

7 years agoadd new key 'QMakeOptions' for qmake builder
JF Ding [Fri, 17 Sep 2010 02:01:15 +0000 (10:01 +0800)]
add new key 'QMakeOptions' for qmake builder

7 years agocreate Makefile from template if not exists
JF Ding [Tue, 14 Sep 2010 09:33:07 +0000 (17:33 +0800)]
create Makefile from template if not exists

7 years agowhen downloaded new src tarballs, try to rm olds
JF Ding [Tue, 14 Sep 2010 09:05:57 +0000 (17:05 +0800)]
when downloaded new src tarballs, try to rm olds

7 years agoadd new test case for qmake builder
JF Ding [Tue, 14 Sep 2010 08:18:04 +0000 (16:18 +0800)]
add new test case for qmake builder

and changed the developing version to <next-release>git, like 0.20git

7 years agospecify version checking justified for ~pre ones
JF Ding [Thu, 9 Sep 2010 08:49:12 +0000 (16:49 +0800)]
specify version checking justified for ~pre ones

7 years agoupdate testsuites
JF Ding [Wed, 8 Sep 2010 11:01:22 +0000 (19:01 +0800)]
update testsuites

7 years agoMerge branch 'qmake_patch'
JF Ding [Wed, 8 Sep 2010 10:50:46 +0000 (18:50 +0800)]
Merge branch 'qmake_patch'

7 years agoalwaysrun update-desktop-db when UpdateDesktopDB is true
JF Ding [Wed, 8 Sep 2010 10:43:46 +0000 (18:43 +0800)]
alwaysrun update-desktop-db when UpdateDesktopDB is true

In the origin code, whether to run update-desktop-database in %post/un
depends on UpdateDesktopDB and *.desktop files existing.
Now it will always run it whenever UpdateDesktopDB specified as true.
And when no *.desktop found, it will show a warning message.

7 years agodistro checking for new %qmake macro for multidisros
JF Ding [Tue, 7 Sep 2010 08:12:04 +0000 (16:12 +0800)]
distro checking for new %qmake macro for multidisros

When 'SupportOtherDistros' is true, need to confirm only MeeGo
contain the new macros.

7 years agoapply Fathi's qmake builder enhancement patch
JF Ding [Tue, 7 Sep 2010 07:39:41 +0000 (15:39 +0800)]
apply Fathi's qmake builder enhancement patch

7 years agodecent quit with fail open of data files
JF Ding [Tue, 24 Aug 2010 09:47:14 +0000 (17:47 +0800)]
decent quit with fail open of data files

/usr/share/spactacle/*
decent quit with error message

7 years agomore precise warning for not-needed Configure
JF Ding [Tue, 24 Aug 2010 09:40:10 +0000 (17:40 +0800)]
more precise warning for not-needed Configure

7 years agopump version to 0.19 for new release 0.19
JF Ding [Mon, 23 Aug 2010 07:55:16 +0000 (15:55 +0800)]
pump version to 0.19 for new release

all dist/* files were removed, should not track them in git

7 years agospecify: decent quit when empty yaml file met
JF Ding [Fri, 20 Aug 2010 10:48:22 +0000 (18:48 +0800)]
specify: decent quit when empty yaml file met

7 years agosetup.py to support optinal 'develop' install mode
JF Ding [Mon, 16 Aug 2010 08:21:15 +0000 (16:21 +0800)]
setup.py to support optinal 'develop' install mode