ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] spec file for json-c-0.8


From: Robert P. J. Day
Subject: Re: [Ltib] spec file for json-c-0.8
Date: Mon, 12 Jan 2009 04:54:54 -0500 (EST)
User-agent: Alpine 2.00 (LFD 1167 2008-08-23)

On Mon, 12 Jan 2009, Stuart Hughes wrote:

> Hi Robert,
>
> Looks good to me.  It just needs entries for Packager, Group and URL.
>
> Regards, Stuart
>
> On Sat, 2009-01-10 at 15:07 -0500, Robert P. J. Day wrote:
> >    i'm open to comments on the following spec file for json-c-0.8 -- i
> > lashed it together based on the existing one for json-c-0.7 that
> > already existed in our local pool.  the patch is strictly for
> > increasing some of the macro values, it's not in any way required.
> > thoughts?
> >
> >
> > %define pfx /opt/freescale/rootfs/%{_target_cpu}
> >
> > Summary         : JSON C Parser
> > Name            : json-c
> > Version         : 0.8
> > Release         : 0
> > License         : GPL
> > Vendor          : Freescale
> > Packager        : xxxx
> > Group           : xxxx
> > URL             : http://xxxx
> > Source          : %{name}-%{version}.tar.gz
> > Patch1          : json-c-0.8-extended_memory.patch
> > BuildRoot       : %{_tmppath}/%{name}
> > Prefix          : %{pfx}
> >
> > %Description
> > %{summary}
> >
> > %Prep
> > %setup
> > %patch1 -p1
> >
> > %Build
> > ac_cv_func_malloc_0_nonnull='yes' \
> > jm_cv_func_working_malloc='yes' \
> > ac_cv_func_realloc_0_nonnull='yes' \
> > jm_cv_func_working_realloc='yes' \
> > ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
> > make
> >
> > %Install
> > rm -rf $RPM_BUILD_ROOT
> > make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
> >
> > %Clean
> > rm -rf $RPM_BUILD_ROOT
> >
> > %Files
> > %defattr(-,root,root)
> > %{pfx}/*

  ok, i can do that shortly.  in the interests of full disclosure, i'm
not clear on the necessity for the malloc- and realloc- related
content in the %Build section, but i'm just basing this on what's been
a working json-c-0.7 build that's been used here for a while.  and
i'll remove the reference to the patch since all that represented was
bumping up some values for stack depth and so on that was purely
local.

  what "Group" would that belong to, or i'll just submit it and you
can fill it in?

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]