opensuse:spec-cleaner.git
10 years agoimplement contents_of, length_of, remove, remove_from, replace_in dsl
Pavol Rusnak [Fri, 11 Nov 2011 17:55:58 +0000 (18:55 +0100)]
implement contents_of, length_of, remove, remove_from, replace_in

10 years agofinish tagging
Pavol Rusnak [Fri, 11 Nov 2011 16:40:26 +0000 (17:40 +0100)]
finish tagging

10 years agostart tagging lines
Pavol Rusnak [Fri, 7 Oct 2011 17:20:19 +0000 (19:20 +0200)]
start tagging lines

10 years agoadd more comments into dsl file
Pavol Rusnak [Fri, 7 Oct 2011 15:39:42 +0000 (17:39 +0200)]
add more comments into dsl file

10 years agoreworked DSL
Pavol Rusnak [Thu, 6 Oct 2011 15:51:23 +0000 (17:51 +0200)]
reworked DSL

10 years agoadd more stuff from old spec cleaner
Pavol Rusnak [Mon, 3 Oct 2011 17:24:10 +0000 (19:24 +0200)]
add more stuff from old spec cleaner

10 years agocreate separate branch for dsl version
Pavol Rusnak [Mon, 3 Oct 2011 16:37:04 +0000 (18:37 +0200)]
create separate branch for dsl version

10 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

10 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

10 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

10 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

10 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

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

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

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

10 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

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

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

10 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

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

11 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/

11 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

11 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>
11 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>
11 years agoVersion 0.2 spec-cleaner-0.2
Vincent Untz [Mon, 2 May 2011 16:34:45 +0000 (18:34 +0200)]
Version 0.2

11 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.

11 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

11 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

11 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

11 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)

11 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)

11 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

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

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

11 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

11 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

11 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.

11 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>
11 years agosmall fixes in pkgconfig symbols
Pavol Rusnak [Wed, 1 Dec 2010 19:37:26 +0000 (20:37 +0100)]
small fixes in pkgconfig symbols

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

11 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, ...

11 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

11 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

11 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

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

11 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

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

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

11 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 :-/)

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

11 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

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

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

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

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

11 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

11 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

11 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

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

11 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

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

11 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

11 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

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

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

12 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

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

12 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.

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

12 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)

12 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.

12 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.

12 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.

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