Cross Reference: json-c.spec
xref
: /
solaris-desktop
/
base-specs
/
json-c.spec
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
json-c.spec revision 20843
20843
N/A
#
20843
N/A
# spec file for package json-c
20843
N/A
#
20843
N/A
# Copyright (c) 2011, Oracle
and
/
or
its affiliates. All rights reserved.
20843
N/A
# This file and all modifications and additions to the pristine
20843
N/A
# package are under the same license as the package itself.
20843
N/A
#
20843
N/A
%
define
owner
yippi
20843
N/A
#
20843
N/A
20843
N/A
Name
:
json
-c
20843
N/A
Summary
:
JSON
Implementation
in
C
20843
N/A
Version
:
0.9
20843
N/A
License
:
MIT
20843
N/A
Source
:
http
://
oss.metaparadigm.com
/
json-c
/
json-c
-%{
version
}
.tar.gz
20843
N/A
Patch1
:
json-c-01-compile.diff
20843
N/A
BuildRoot
: %{
_tmppath
}/%{
name
}-%{
version
}-
build
20843
N/A
20843
N/A
%
prep
20843
N/A
%
setup
-q -n
json
-c-%
version
20843
N/A
%
patch1
-
p1
20843
N/A
20843
N/A
%
build
20843
N/A
CPUS
=
`/
usr
/
sbin
/
psrinfo
|
grep
on
-
line
|
wc
-l |
tr
-d
' '
`
20843
N/A
if
test
"x
$CPUS
"
=
"x"
-o
$CPUS
=
0
;
then
20843
N/A
CPUS
=
1
20843
N/A
fi
20843
N/A
20843
N/A
export
CFLAGS
=
"%optflags"
20843
N/A
export
LDFLAGS
=
"%{_ldflags}"
20843
N/A
20843
N/A
libtoolize
--
force
20843
N/A
aclocal
$ACLOCAL_FLAGS
20843
N/A
automake
-a -c -f
20843
N/A
./
configure
--
prefix
=%{
_prefix
} \
20843
N/A
--
bindir
=%{
_bindir
} \
20843
N/A
--
libdir
=%{
_libdir
} \
20843
N/A
--
includedir
=%{
_includedir
} \
20843
N/A
--
mandir
=%{
_mandir
} \
20843
N/A
--
disable
-
static
20843
N/A
20843
N/A
gmake
-j
$CPUS
20843
N/A
20843
N/A
20843
N/A
%
install
20843
N/A
gmake
install
DESTDIR
=
$RPM_BUILD_ROOT
20843
N/A
rm
-f
$RPM_BUILD_ROOT
%{
_libdir
}/
lib
*.*a
20843
N/A
20843
N/A
%
if
%{!?
_without_gtk_doc
:
0
}%{?
_without_gtk_doc
:
1
}
20843
N/A
rm
-
rf
$RPM_BUILD_ROOT
%{
_datadir
}/
gtk
-
doc
20843
N/A
%
endif
20843
N/A
20843
N/A
%
clean
20843
N/A
rm
-
rf
$RPM_BUILD_ROOT
20843
N/A
20843
N/A
%
changelog
20843
N/A
*
Thu
Oct
06
2011
-
Brian
Cameron
20843
N/A
-
Split
from
SUNWjson-c.spec
and
now
build
amd64
.
20843
N/A