openpkg/rpm-config.8

changeset 13
cb59d6afeb61
child 428
f880f219c566
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/openpkg/rpm-config.8	Tue Jan 06 23:40:39 2009 +0100
     1.3 @@ -0,0 +1,220 @@
     1.4 +.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
     1.5 +.\"
     1.6 +.\" Standard preamble:
     1.7 +.\" ========================================================================
     1.8 +.de Sh \" Subsection heading
     1.9 +.br
    1.10 +.if t .Sp
    1.11 +.ne 5
    1.12 +.PP
    1.13 +\fB\\$1\fR
    1.14 +.PP
    1.15 +..
    1.16 +.de Sp \" Vertical space (when we can't use .PP)
    1.17 +.if t .sp .5v
    1.18 +.if n .sp
    1.19 +..
    1.20 +.de Vb \" Begin verbatim text
    1.21 +.ft CW
    1.22 +.nf
    1.23 +.ne \\$1
    1.24 +..
    1.25 +.de Ve \" End verbatim text
    1.26 +.ft R
    1.27 +.fi
    1.28 +..
    1.29 +.\" Set up some character translations and predefined strings.  \*(-- will
    1.30 +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
    1.31 +.\" double quote, and \*(R" will give a right double quote.  | will give a
    1.32 +.\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
    1.33 +.\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
    1.34 +.\" expand to `' in nroff, nothing in troff, for use with C<>.
    1.35 +.tr \(*W-|\(bv\*(Tr
    1.36 +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
    1.37 +.ie n \{\
    1.38 +.    ds -- \(*W-
    1.39 +.    ds PI pi
    1.40 +.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
    1.41 +.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
    1.42 +.    ds L" ""
    1.43 +.    ds R" ""
    1.44 +.    ds C` 
    1.45 +.    ds C' 
    1.46 +'br\}
    1.47 +.el\{\
    1.48 +.    ds -- \|\(em\|
    1.49 +.    ds PI \(*p
    1.50 +.    ds L" ``
    1.51 +.    ds R" ''
    1.52 +'br\}
    1.53 +.\"
    1.54 +.\" If the F register is turned on, we'll generate index entries on stderr for
    1.55 +.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
    1.56 +.\" entries marked with X<> in POD.  Of course, you'll have to process the
    1.57 +.\" output yourself in some meaningful fashion.
    1.58 +.if \nF \{\
    1.59 +.    de IX
    1.60 +.    tm Index:\\$1\t\\n%\t"\\$2"
    1.61 +..
    1.62 +.    nr % 0
    1.63 +.    rr F
    1.64 +.\}
    1.65 +.\"
    1.66 +.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
    1.67 +.\" way too many mistakes in technical documents.
    1.68 +.hy 0
    1.69 +.if n .na
    1.70 +.\"
    1.71 +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
    1.72 +.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
    1.73 +.    \" fudge factors for nroff and troff
    1.74 +.if n \{\
    1.75 +.    ds #H 0
    1.76 +.    ds #V .8m
    1.77 +.    ds #F .3m
    1.78 +.    ds #[ \f1
    1.79 +.    ds #] \fP
    1.80 +.\}
    1.81 +.if t \{\
    1.82 +.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
    1.83 +.    ds #V .6m
    1.84 +.    ds #F 0
    1.85 +.    ds #[ \&
    1.86 +.    ds #] \&
    1.87 +.\}
    1.88 +.    \" simple accents for nroff and troff
    1.89 +.if n \{\
    1.90 +.    ds ' \&
    1.91 +.    ds ` \&
    1.92 +.    ds ^ \&
    1.93 +.    ds , \&
    1.94 +.    ds ~ ~
    1.95 +.    ds /
    1.96 +.\}
    1.97 +.if t \{\
    1.98 +.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
    1.99 +.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
   1.100 +.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
   1.101 +.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
   1.102 +.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
   1.103 +.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
   1.104 +.\}
   1.105 +.    \" troff and (daisy-wheel) nroff accents
   1.106 +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
   1.107 +.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
   1.108 +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
   1.109 +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
   1.110 +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
   1.111 +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
   1.112 +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
   1.113 +.ds ae a\h'-(\w'a'u*4/10)'e
   1.114 +.ds Ae A\h'-(\w'A'u*4/10)'E
   1.115 +.    \" corrections for vroff
   1.116 +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
   1.117 +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
   1.118 +.    \" for low resolution devices (crt and lpr)
   1.119 +.if \n(.H>23 .if \n(.V>19 \
   1.120 +\{\
   1.121 +.    ds : e
   1.122 +.    ds 8 ss
   1.123 +.    ds o a
   1.124 +.    ds d- d\h'-1'\(ga
   1.125 +.    ds D- D\h'-1'\(hy
   1.126 +.    ds th \o'bp'
   1.127 +.    ds Th \o'LP'
   1.128 +.    ds ae ae
   1.129 +.    ds Ae AE
   1.130 +.\}
   1.131 +.rm #[ #] #H #V #F C
   1.132 +.\" ========================================================================
   1.133 +.\"
   1.134 +.IX Title "RPM-CONFIG 8"
   1.135 +.TH RPM-CONFIG 8 "OpenPKG" "RPM-CONFIG(8)" "OpenPKG"
   1.136 +.SH "NAME"
   1.137 +\&\fBrpm\-config\fR \- OpenPKG RPM library build utility
   1.138 +.SH "VERSION"
   1.139 +.IX Header "VERSION"
   1.140 +OpenPKG \s-1RPM\s0 \s-1RPM_VERSION\s0
   1.141 +.SH "SYNOPSIS"
   1.142 +.IX Header "SYNOPSIS"
   1.143 +\&\fBrpm-config\fR
   1.144 +[\fB\-\-help\fR]
   1.145 +[\fB\-\-version\fR]
   1.146 +[\fB\-\-cc\fR]
   1.147 +[\fB\-\-cppflags\fR]
   1.148 +[\fB\-\-cflags\fR]
   1.149 +[\fB\-\-ldflags\fR]
   1.150 +[\fB\-\-libs\fR]
   1.151 +.SH "DESCRIPTION"
   1.152 +.IX Header "DESCRIPTION"
   1.153 +The \fBrpm-config\fR program is a little helper utility for easy
   1.154 +configuring and building applications based on the OpenPKG \s-1RPM\s0 library.
   1.155 +It can be used to query the C compiler and linker flags which are
   1.156 +required to correctly compile and link the application against the
   1.157 +\&\s-1RPM\s0 library.
   1.158 +.SH "OPTIONS"
   1.159 +.IX Header "OPTIONS"
   1.160 +\&\fBrpm-config\fR accepts the following options:
   1.161 +.IP "\fB\-\-help\fR" 4
   1.162 +.IX Item "--help"
   1.163 +Prints the short usage information.
   1.164 +.IP "\fB\-\-version\fR" 4
   1.165 +.IX Item "--version"
   1.166 +Prints the version number and date of the installed \s-1RPM\s0 library.
   1.167 +.IP "\fB\-\-cc\fR" 4
   1.168 +.IX Item "--cc"
   1.169 +.PD 0
   1.170 +.IP "\fB\-\-cppflags\fR" 4
   1.171 +.IX Item "--cppflags"
   1.172 +.PD
   1.173 +Prints the C pre-processor flags (\f(CW\*(C`\-I\*(C'\fR) which are needed to compile the
   1.174 +RPM-based application. The output is usually added to the \f(CW\*(C`CPPFLAGS\*(C'\fR
   1.175 +variable of the applications \f(CW\*(C`Makefile\*(C'\fR.
   1.176 +.IP "\fB\-\-cflags\fR" 4
   1.177 +.IX Item "--cflags"
   1.178 +Prints the C compiler flags which are needed to compile the RPM-based
   1.179 +application. The output is usually added to the \f(CW\*(C`CFLAGS\*(C'\fR variable of the
   1.180 +applications \f(CW\*(C`Makefile\*(C'\fR.
   1.181 +.IP "\fB\-\-ldflags\fR" 4
   1.182 +.IX Item "--ldflags"
   1.183 +Prints the linker flags (\f(CW\*(C`\-L\*(C'\fR) which are needed to link the application with
   1.184 +the \s-1RPM\s0 library. The output is usually added to the \f(CW\*(C`LDFLAGS\*(C'\fR variable of
   1.185 +the applications \f(CW\*(C`Makefile\*(C'\fR.
   1.186 +.IP "\fB\-\-libs\fR" 4
   1.187 +.IX Item "--libs"
   1.188 +Prints the library flags (\f(CW\*(C`\-l\*(C'\fR) which are needed to link the application with
   1.189 +the \s-1RPM\s0 library. The output is usually added to the \f(CW\*(C`LIBS\*(C'\fR variable of the
   1.190 +applications \f(CW\*(C`Makefile\*(C'\fR.
   1.191 +.SH "EXAMPLE"
   1.192 +.IX Header "EXAMPLE"
   1.193 +.Vb 5
   1.194 +\& CC       = `rpm-config --cc`
   1.195 +\& CPPFLAGS = `rpm-config --cppflags`
   1.196 +\& CFLAGS   = `rpm-config --cflags`
   1.197 +\& LDFLAGS  = `rpm-config --ldflags`
   1.198 +\& LIBS     = `rpm-config --libs`
   1.199 +.Ve
   1.200 +.PP
   1.201 +.Vb 1
   1.202 +\& all: foo
   1.203 +.Ve
   1.204 +.PP
   1.205 +.Vb 2
   1.206 +\& foo: foo.o
   1.207 +\&     $(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
   1.208 +.Ve
   1.209 +.PP
   1.210 +.Vb 2
   1.211 +\& foo.o: foo.c
   1.212 +\&     $(CC) $(CPPFLAGS) $(CFLAGS) -o foo.o -c foo.c
   1.213 +.Ve
   1.214 +.SH "SEE ALSO"
   1.215 +.IX Header "SEE ALSO"
   1.216 +\&\fIrpm\fR\|(1), \fIcc\fR\|(1).
   1.217 +.SH "AUTHOR"
   1.218 +.IX Header "AUTHOR"
   1.219 +.Vb 3
   1.220 +\& Ralf S. Engelschall
   1.221 +\& rse@engelschall.com
   1.222 +\& www.engelschall.com
   1.223 +.Ve

mercurial