[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ltib] spec file for json-c-0.8
From: |
Robert P. J. Day |
Subject: |
[Ltib] spec file for json-c-0.8 |
Date: |
Sat, 10 Jan 2009 15:07:10 -0500 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.1.6) |
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}/*
- [Ltib] spec file for json-c-0.8,
Robert P. J. Day <=