summaryrefslogtreecommitdiff
path: root/build/parseSpec.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-02Eliminate uses of headerNVR() and friends in librpmbuild codePanu Matilainen1-3/+2
2009-08-31Replace equal/not equal uses of str[n]cmp() with rstreq[n] in build codePanu Matilainen1-9/+9
2009-08-17Add default %clean section unless overridden in spec (ticket #81)Panu Matilainen1-0/+7
- avoids silly clutter in every specfile in the regular case but permits overriding if needed for whatever reason - it's a spec behavior change but mostly backwards compatible: existing specs will do whatever the %clean does, and if you need to avoid calling %clean for whatever reason just keep an empty %clean in the spec
2009-08-12rpmbuild won't segfault when %including spec with zero sizeJindrich Novy1-1/+1
2009-07-23Kill off lclint remnants everywherePanu Matilainen1-3/+0
- remove ancient and likely irrelevant LCL comments and bogus NULL checks
2009-06-01Generate spec part string lengths at build time and make it constPanu Matilainen1-36/+26
2008-12-05Tighten up setting and checking of buildroot (ticket #10)Panu Matilainen1-9/+0
- expand, set and verify buildroot just once for after main package preamble is parsed to avoid sub-packages from overriding it - spec can still mess with %buildroot by defining it to something else after preamble but that's another issue...
2008-10-23Make noarch subpackages actually workPanu Matilainen1-1/+4
- noarch subpackages get their arch tag from parsePreamble() already, don't stomp over it later in parseSpec()
2008-08-06Simplify spec buildroot hysteriaPanu Matilainen1-17/+12
- BuildRoot: in spec is now really ignored - parseSpec() uses default %{buildroot} unless overridden - BuildRoot is forced for all builds
2008-06-19Use type-specific headerPut() on all of build/parseSpec.cPanu Matilainen1-12/+3
2008-06-17Convert parseSpec to headerPut()Panu Matilainen1-5/+12
2008-05-21Include rpmtypes.h first instead of rpmtag.h everywherePanu Matilainen1-1/+1
2008-05-05Trap RPMRC_FAIL returns from spec parse with abort() for nowPanu Matilainen1-0/+4
2008-05-05Make readLine() return PART_ERROR on errorsPanu Matilainen1-7/+7
2008-05-05Fix (hopefully ;) signaling for line continuations on spec parsingPanu Matilainen1-8/+9
2008-05-05Indentation fixesPanu Matilainen1-10/+9
2008-05-05Make parseSpec() return PART_ERROR on all errorsPanu Matilainen1-6/+4
- also fix memleak from buildroot errors
2008-05-05Start cleaning up the rpmerr removal mess of build/ return codesPanu Matilainen1-11/+11
- define PART_ERROR for error returns from various parse bits, teach parseSpec() about it - streamline parseSpec() exists
2008-04-11Don't warn about BuildRoot being "/" while it is actually emptyJindrich Novy1-2/+6
2008-04-09Yet more url ripping - buildroot is never an urlPanu Matilainen1-11/+9
- this is a bit nasty as it changes public interfaces but rename to make it explicit they're just plain paths, not urls
2008-03-24Eliminate bogus const's from OFI_t and spectags structsPanu Matilainen1-2/+2
2008-03-18Minimal namespacing for locale-insensitive x*() string functionsPanu Matilainen1-7/+7
2008-03-06Make yet more build tables readonlyPanu Matilainen1-2/+1
- preambleList and partList are modified runtime for silly reasons, reminders to fix later..
2008-01-30rpmlib.h mass evictionPanu Matilainen1-0/+2
- explicitly include what's really needed instead - document remaining uses
2008-01-09Implementation of triggerprein scriptlets.Panu Matilainen1-0/+2
Ported from rpm5.org work of Jeff Johnson to 4.4.x by Pascal Rigaux, further adopted to fit HEAD...
2007-12-22Fix multi-line macro expansion in last line of spec (mdvbz#27417)Panu Matilainen1-18/+39
Patch from Pascal Rigaux: 1. creating functions restoreFirstChar(), copyNextLineFromOFI() and copyNextLineFinish() out of copyNextLine() 2. creating function readLineFromOFI() out of readLine() 3. inline copyNextLine 4. if we can restoreFirstChar, then use it, otherwise read from file (ie don't read from file when we have a remaining multiline macro in spec->nextline)
2007-12-16More constfree for spec exposed stuff for nowPanu Matilainen1-2/+2
- openfileinfo seems easily made opaque, revisit later
2007-12-14Bogus const removal continued...Panu Matilainen1-7/+7
2007-12-14More size_t type pedantryPanu Matilainen1-1/+1
2007-12-08Switch to <rpm/foo.h> style for public headersPanu Matilainen1-5/+5
- adjust include paths accordingly
2007-12-07rpm5.org: fixup spec parsing from rpmerr.h removalPanu Matilainen1-16/+20
- renumber rpmParseState enums to leave room for error codes
2007-11-23Move rpmGetPath and rpmGenPath to rpmfileutil.hPanu Matilainen1-0/+1
2007-11-23Use #include <x.h> syntax to include public headers.Ralf Corsépius1-4/+4
2007-11-19Lose rpmerr.h for goodPanu Matilainen1-1/+1
2007-11-19Replace all RPMERR_* etc uses with corresponding RPMLOG_* levelsPanu Matilainen1-25/+25
2007-11-08Remove dead rpmrc-related code from spec parsingPanu Matilainen1-49/+0
2007-10-29Add SKIPSPACE, SKIPNONSPACE.Ralf Corsépius1-0/+3
2007-10-29Use fdGetFILE() instead of rpmio internal fdGetFp() everywherePanu Matilainen1-3/+1
2007-10-28Include "rpmbuild.h" instead of <rpmbuild.h>.Ralf Corsépius1-1/+1
2007-10-28Include "rpmio_internal.h" instead of <rpmio_internal.h>.Ralf Corsépius1-1/+1
2007-10-09Make rpmerr.h private, include directly where needed.Panu Matilainen1-0/+1
2007-10-09Replace all rpmError() uses with rpmlog()Panu Matilainen1-11/+11
2007-09-21Rename Spec -> rpmSpec for namespacingPanu Matilainen1-6/+6
2007-09-11Remove splint tags.Ralf Corsépius1-74/+26
2007-07-12Kill of RPMTAG_RHNPLATFORM: don't add to header, mark deprecated.Panu Matilainen1-3/+0
2007-07-12parseSpec() cookie should be const, make it so...Panu Matilainen1-1/+1
2004-10-09Splint fiddles.jbj1-13/+19
CVS patchset: 7438 CVS date: 2004/10/09 18:23:00
2004-04-08Implemented multiline macro support.niemeyer1-3/+41
CVS patchset: 7231 CVS date: 2004/04/08 20:27:53
2004-03-16- Implemented support for internal Lua scripts.niemeyer1-0/+4
- Implemented %pretrans and %posttrans script slots. Changed files: Makefile.am configure.ac build/pack.c build/parseScript.c build/parseSpec.c build/rpmbuild.h build/rpmspec.h lib/Makefile.am lib/psm.c lib/rpmlib.h lib/rpmlibprov.c lib/rpmts.c lib/rpmts.h lib/transaction.c Added files: lib/rpmlua.c lib/rpmlua.h lua/* CVS patchset: 7175 CVS date: 2004/03/16 21:58:25
2003-12-30- use -fPIC -DPIC on all platforms, not just mandatory (#112713).jbj1-3/+0
CVS patchset: 7051 CVS date: 2003/12/30 15:12:50