Re: SPEC file for pkgconfig



On 19 Jan 2002, Gregory Leblanc wrote:

> > > >
> > > > %build
> > > > ./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir}
> > >
> > > I much prefer this method to using %configure, as %configure almost
> > > always requires you to put "%define __libtoolize /bin/true" somewhere in
> > > your spec file to avoid having things break.  If you're passing
> > > arguments to configure that don't have to do with file paths, such as
> > > --disable-gtk-doc for example, I place them first on the line.  It's
> > > also nice to break things up onto multiple lines.  Here's a snip from
> > > the gail.spec file I just wrote:

What breaks for libtoolize? I guess you mean the relinking mess, isn't
it patched already?

> This does -not- work properly unless you have gettext 0.10.40.  I try to
> use the things that will be most portable, and this isn't.  
> 
> > And if that doesn't work (for example, doesn't install .po files):
> > 
> > make install DESTDIR=$RPM_BUILD_ROOT gnulocaledir=$RPM_BUILD_ROOT/%{_gnulocaledir}

Where is %{_gnulocaledir} or %{_localedir} defined? Sorry for my
ignorance...


> > > > %clean
> > > > rm -rf $RPM_BUILD_ROOT
> > 
> > test $RPM_BUILD_ROOT != / && rm -rf $RPM_BUILD_ROOT
> 
> Erm, yeah, good idea.  I mostly don't because my portable bourne shell
> scripting sucks.  :-)

You are building RPM as *root* ???

Abel




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]