platform/upstream/spec-cleaner.git
10 years agodo not replace version-release tizen
Anas Nashif [Wed, 25 Sep 2013 03:52:40 +0000 (23:52 -0400)]
do not replace version-release

11 years agoinstall spec-cleaner file
Anas Nashif [Sat, 15 Dec 2012 19:05:01 +0000 (11:05 -0800)]
install spec-cleaner file

11 years agono copyright header for now
Anas Nashif [Sat, 15 Dec 2012 18:26:56 +0000 (13:26 -0500)]
no copyright header for now

11 years agoadd pkgconfig database for Base:System
Anas Nashif [Sat, 15 Dec 2012 18:23:57 +0000 (13:23 -0500)]
add pkgconfig database for Base:System

11 years agoadd pkgconfig database for Base:System
Anas Nashif [Sat, 15 Dec 2012 18:22:10 +0000 (13:22 -0500)]
add pkgconfig database for Base:System

12 years agoUse spdx identifier for licenses master upstream
Vincent Untz [Wed, 30 Nov 2011 12:35:09 +0000 (13:35 +0100)]
Use spdx identifier for licenses

12 years agoRemove %clean section as it's not needed anymore
Vincent Untz [Mon, 10 Oct 2011 11:00:47 +0000 (13:00 +0200)]
Remove %clean section as it's not needed anymore

12 years agoruby version is now in dsl branch
Pavol Rusnak [Mon, 3 Oct 2011 16:38:15 +0000 (18:38 +0200)]
ruby version is now in dsl branch

12 years agoalso rework 'meta' handling in strings
Pavol Rusnak [Tue, 20 Sep 2011 15:38:22 +0000 (17:38 +0200)]
also rework 'meta' handling in strings

12 years agodon't annotate arrays, it's confusing, create proper Section class instead
Pavol Rusnak [Tue, 20 Sep 2011 15:26:16 +0000 (17:26 +0200)]
don't annotate arrays, it's confusing, create proper Section class instead

12 years agocorrectly handle most of the spec stuff
Pavol Rusnak [Mon, 19 Sep 2011 17:17:50 +0000 (19:17 +0200)]
correctly handle most of the spec stuff

12 years agohandle scriptlest in construct as well
Pavol Rusnak [Mon, 19 Sep 2011 13:52:52 +0000 (15:52 +0200)]
handle scriptlest in construct as well

12 years agoconstruct spec file from parsed structure
Pavol Rusnak [Mon, 19 Sep 2011 12:57:00 +0000 (14:57 +0200)]
construct spec file from parsed structure

12 years agoparse %files section as well
Pavol Rusnak [Mon, 19 Sep 2011 10:15:52 +0000 (12:15 +0200)]
parse %files section as well

12 years agorework scriptlets and triggers
Pavol Rusnak [Fri, 16 Sep 2011 16:57:58 +0000 (18:57 +0200)]
rework scriptlets and triggers

12 years agoadd *.spec to gitignore
Pavol Rusnak [Fri, 16 Sep 2011 15:26:57 +0000 (17:26 +0200)]
add *.spec to gitignore

12 years agorework experiments in next to ruby
Pavol Rusnak [Fri, 16 Sep 2011 15:22:09 +0000 (17:22 +0200)]
rework experiments in next to ruby

12 years agorework requires testcase
Pavol Rusnak [Mon, 12 Sep 2011 08:57:10 +0000 (10:57 +0200)]
rework requires testcase

12 years agoapply usage changes by giecrilj
Pavol Rusnak [Mon, 12 Sep 2011 08:01:30 +0000 (10:01 +0200)]
apply usage changes by giecrilj

12 years agouse Requires(pre) instead of PreReq
Pavol Rusnak [Fri, 26 Aug 2011 15:55:28 +0000 (17:55 +0200)]
use Requires(pre) instead of PreReq

12 years agoAdd TODO item about %(rpm ...)
Vincent Untz [Mon, 4 Jul 2011 12:12:02 +0000 (14:12 +0200)]
Add TODO item about %(rpm ...)

12 years agoadd to TODO: use licenses from http://spdx.org/licenses/
Pavol Rusnak [Thu, 9 Jun 2011 14:45:01 +0000 (16:45 +0200)]
add to TODO: use licenses from spdx.org/licenses/

13 years agouse wiki.o.o instead of en.o.o
Pavol Rusnak [Fri, 27 May 2011 12:16:17 +0000 (14:16 +0200)]
use wiki.o.o instead of en.o.o

13 years agohandle %patch -P <num> properly and improve patch test
Petr Uzel [Fri, 27 May 2011 12:01:17 +0000 (14:01 +0200)]
handle %patch -P <num> properly and improve patch test

Before:
%patch -P0 -p1  ---> %patch0 -P0 -p1

Now:
%patch -P0 -p1  ---> %patch0 -p1
%patch -P12 -p0 ---> %patch12 -p0

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agotests: fix patches test
Petr Uzel [Fri, 27 May 2011 12:00:36 +0000 (14:00 +0200)]
tests: fix patches test

Update url in PATCH-MISSING-TAG

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agoVersion 0.2 spec-cleaner-0.2
Vincent Untz [Mon, 2 May 2011 16:34:45 +0000 (18:34 +0200)]
Version 0.2

13 years agoPut pkgconfig()-style package names at the end of their list
Vincent Untz [Mon, 2 May 2011 16:32:34 +0000 (18:32 +0200)]
Put pkgconfig()-style package names at the end of their list

It makes the spec file more readable to group all the pkgconfig()-style
names together, at the end. This is most visible for BuildRequires,
where it's easy to forget there might be something after the pkgconfig()
BuildRequires.

13 years agostart writing proof of concept of rewrite
Pavol Rusnak [Tue, 26 Apr 2011 15:10:53 +0000 (17:10 +0200)]
start writing proof of concept of rewrite

13 years agonew dos2unix testcase
Pavol Rusnak [Fri, 22 Apr 2011 15:02:01 +0000 (17:02 +0200)]
new dos2unix testcase
start documenting new code architecure

13 years agoMerge branch 'master' of gitorious.org:opensuse/spec-cleaner
Pavol Rusnak [Mon, 28 Mar 2011 14:20:11 +0000 (16:20 +0200)]
Merge branch 'master' of gitorious.org:opensuse/spec-cleaner

Conflicts:
spec-cleaner

13 years agoadd .spec extension to spec files (to make syntax highlighting work)
Pavol Rusnak [Mon, 28 Mar 2011 14:16:47 +0000 (16:16 +0200)]
add .spec extension to spec files (to make syntax highlighting work)

13 years agoadd FDL licenses (patch by securelinux)
Pavol Rusnak [Thu, 10 Mar 2011 12:24:05 +0000 (13:24 +0100)]
add FDL licenses (patch by securelinux)

13 years agoMerge commit 'refs/merge-requests/1' of git://gitorious.org/opensuse/spec-cleaner...
Pavol Rusnak [Thu, 10 Mar 2011 12:15:39 +0000 (13:15 +0100)]
Merge commit 'refs/merge-requests/1' of git://gitorious.org/opensuse/spec-cleaner into merge-requests/1

13 years agosmall changes
Pavol Rusnak [Thu, 10 Mar 2011 12:14:42 +0000 (13:14 +0100)]
small changes

13 years agouse spaces instead tabs
Mariusz Fik [Mon, 24 Jan 2011 17:44:18 +0000 (18:44 +0100)]
use spaces instead tabs

13 years agocut summary after the first dot
Pavol Rusnak [Fri, 21 Jan 2011 09:24:31 +0000 (10:24 +0100)]
cut summary after the first dot

13 years agoAdd a bug and a change we could do in TODO
Vincent Untz [Sat, 15 Jan 2011 07:46:23 +0000 (08:46 +0100)]
Add a bug and a change we could do in TODO

13 years agoAlso replace plain %patch to %patch0
Vincent Untz [Tue, 11 Jan 2011 12:54:33 +0000 (13:54 +0100)]
Also replace plain %patch to %patch0

We were only looking at "%patch ", assuming all the lines had a -pX.

13 years agoupdated url for PATCH-MISSING-TAG
Mariusz Fik [Tue, 14 Dec 2010 14:34:58 +0000 (15:34 +0100)]
updated url for PATCH-MISSING-TAG

Signed-off-by: Mariusz Fik <fisiu@opensuse.org>
13 years agosmall fixes in pkgconfig symbols
Pavol Rusnak [Wed, 1 Dec 2010 19:37:26 +0000 (20:37 +0100)]
small fixes in pkgconfig symbols

13 years agoadd more pkgconfig symbols
Pavol Rusnak [Wed, 1 Dec 2010 19:05:58 +0000 (20:05 +0100)]
add more pkgconfig symbols

13 years agoput brackets around %name, %version, %release, ...
Pavol Rusnak [Wed, 1 Dec 2010 18:36:19 +0000 (19:36 +0100)]
put brackets around %name, %version, %release, ...

13 years agoAdd --diff and --diff-prog options
Petr Uzel [Sat, 27 Nov 2010 16:48:48 +0000 (17:48 +0100)]
Add --diff and --diff-prog options

13 years agoadd first batch of xfce-related libraries
Pavol Rusnak [Wed, 1 Dec 2010 17:54:28 +0000 (18:54 +0100)]
add first batch of xfce-related libraries

13 years agostart replacing requirements for pkgconfig() symbols
Pavol Rusnak [Wed, 10 Nov 2010 23:43:18 +0000 (00:43 +0100)]
start replacing requirements for pkgconfig() symbols

13 years agosimplify headers in unittests too
Pavol Rusnak [Wed, 10 Nov 2010 23:19:15 +0000 (00:19 +0100)]
simplify headers in unittests too

13 years agorequire -k param for unit tests to keep failed diffs
Pavol Rusnak [Wed, 10 Nov 2010 23:19:02 +0000 (00:19 +0100)]
require -k param for unit tests to keep failed diffs

13 years agomake header much more simple
Pavol Rusnak [Wed, 10 Nov 2010 23:00:58 +0000 (00:00 +0100)]
make header much more simple

13 years agoforgot one case
Pavol Rusnak [Wed, 27 Oct 2010 16:59:31 +0000 (18:59 +0200)]
forgot one case

13 years agoadd test for testing make parameters (fails too atm :-/)
Pavol Rusnak [Wed, 27 Oct 2010 16:58:10 +0000 (18:58 +0200)]
add test for testing make parameters (fails too atm :-/)

13 years agoadd test for patches replacement
Pavol Rusnak [Mon, 25 Oct 2010 13:32:41 +0000 (15:32 +0200)]
add test for patches replacement

13 years agoreplace Patch: with Patch0:, replace %patch with %patch0
Pavol Rusnak [Sun, 24 Oct 2010 20:14:46 +0000 (22:14 +0200)]
replace Patch: with Patch0:, replace %patch with %patch0

13 years agounify formatting
Pavol Rusnak [Sun, 24 Oct 2010 12:56:19 +0000 (14:56 +0200)]
unify formatting

13 years agofix missing \
Pavol Rusnak [Sun, 24 Oct 2010 08:45:42 +0000 (10:45 +0200)]
fix missing \

13 years agoremove #usedforbuild as well
Pavol Rusnak [Sat, 23 Oct 2010 14:58:50 +0000 (16:58 +0200)]
remove #usedforbuild as well

13 years agostart using unit tests :-)
Pavol Rusnak [Sat, 23 Oct 2010 13:08:35 +0000 (15:08 +0200)]
start using unit tests :-)

13 years agouse parser.print_help() if there is wrong number of arguments
Pavol Rusnak [Sat, 23 Oct 2010 12:35:02 +0000 (14:35 +0200)]
use parser.print_help() if there is wrong number of arguments

13 years agoAdd TODO note about %py_requires
Vincent Untz [Sat, 23 Oct 2010 11:08:14 +0000 (13:08 +0200)]
Add TODO note about %py_requires

13 years agouse dictionary while replacing utility macros
Pavol Rusnak [Sat, 23 Oct 2010 09:44:42 +0000 (11:44 +0200)]
use dictionary while replacing utility macros

13 years agoReplace %makeinstall by %make_install
Vincent Untz [Fri, 22 Oct 2010 18:16:36 +0000 (20:16 +0200)]
Replace %makeinstall by %make_install

13 years agoDo not check for AutoReqProv in %install
Vincent Untz [Fri, 22 Oct 2010 18:13:40 +0000 (20:13 +0200)]
Do not check for AutoReqProv in %install

13 years agoAlso handle suse_version
Vincent Untz [Fri, 22 Oct 2010 18:12:11 +0000 (20:12 +0200)]
Also handle suse_version

13 years agoremove spec-polish-macros script as it is already merged into spec-cleaner
Pavol Rusnak [Wed, 20 Oct 2010 21:10:19 +0000 (23:10 +0200)]
remove spec-polish-macros script as it is already merged into spec-cleaner
replace useless %__foo macros with direct calls
fix usage of obs macros like suse_version

13 years agoAdd --version and use 0.1 as initial version for spec-cleaner spec-cleaner-0.1
Vincent Untz [Thu, 30 Sep 2010 14:02:25 +0000 (16:02 +0200)]
Add --version and use 0.1 as initial version for spec-cleaner

13 years agofix license headers
Pavol Rusnak [Mon, 19 Jul 2010 10:03:20 +0000 (12:03 +0200)]
fix license headers

13 years agohandle initddir
Pavol Rusnak [Tue, 29 Jun 2010 16:05:22 +0000 (18:05 +0200)]
handle initddir

13 years agowe use short licenses now and _smp_mflags too
Pavol Rusnak [Tue, 15 Jun 2010 14:12:33 +0000 (16:12 +0200)]
we use short licenses now and _smp_mflags too

14 years agoExpand ~/ instead of crashing
Vincent Untz [Fri, 18 Sep 2009 16:15:14 +0000 (18:15 +0200)]
Expand ~/ instead of crashing

14 years agoAdd TODO
Vincent Untz [Fri, 4 Sep 2009 15:18:09 +0000 (17:18 +0200)]
Add TODO

There are several things we can do with rpm 4.7.

14 years agoSupport %ifnarch too
Vincent Untz [Thu, 27 Aug 2009 10:58:30 +0000 (12:58 +0200)]
Support %ifnarch too

14 years agoHandle %ifarch (the same way as %if)
Vincent Untz [Tue, 25 Aug 2009 11:11:33 +0000 (13:11 +0200)]
Handle %ifarch (the same way as %if)

14 years agoMake the cleaning of description less aggressive
Vincent Untz [Fri, 21 Aug 2009 12:19:53 +0000 (14:19 +0200)]
Make the cleaning of description less aggressive

It was removing stuff like %lang_package because it's not a new section.
Now, if a line starts with a macro, we just copy the rest of the
description without trying to clean it, since we don't know exactly
what's going on.

14 years agoFix %package lines being moved while they shouldn't
Vincent Untz [Fri, 21 Aug 2009 12:12:16 +0000 (14:12 +0200)]
Fix %package lines being moved while they shouldn't

They were handled like a normal preamble line, with no specific meaning,
and therefore moved at the end of the paragraph.

14 years agoAdd spec-cleaner script
Vincent Untz [Tue, 18 Aug 2009 08:40:49 +0000 (10:40 +0200)]
Add spec-cleaner script

The script certainly needs some testing, and the adopted style can be
debated, but it works reasonably well so far.

14 years agoadd spec-polish-macros
Pavol Rusnak [Mon, 17 Aug 2009 12:32:18 +0000 (14:32 +0200)]
add spec-polish-macros