home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / misc / src / rpm / build / spec.h < prev    next >
C/C++ Source or Header  |  1997-09-17  |  472b  |  24 lines

  1. /* RPM - Copyright (C) 1995 Red Hat Software
  2.  * 
  3.  * spec.h - routines for parsing are looking up info in a spec file
  4.  */
  5.  
  6. #ifndef _SPEC_H_
  7. #define _SPEC_H_
  8.  
  9. #include <stdio.h>
  10.  
  11. typedef struct SpecRec *Spec;
  12.  
  13. Spec *parseSpec(FILE *f, char *specfile, char *buildRootOverride);
  14. void freeSpec(Spec s);
  15.  
  16. void dumpSpec(Spec s, FILE *f);
  17.  
  18. char *getSource(Spec s, int ispatch, int num);
  19. char *getFullSource(Spec s, int ispatch, int num);
  20.  
  21. int verifySpec(Spec s);
  22.  
  23. #endif _SPEC_H_
  24.