json/json.spec

changeset 758
a2c6460cfb16
parent 304
fbf6cb91be09
equal deleted inserted replaced
1:37d512f7acd5 2:cc838eed03b9
22 ## 22 ##
23 23
24 # package version 24 # package version
25 %define V_api_c 0.9 25 %define V_api_c 0.9
26 %define V_api_c2 1.1.0 26 %define V_api_c2 1.1.0
27 %define V_api_c3 0.3 27 %define V_api_c3 0.8
28 %define V_api_pl1 2.16 28 %define V_api_pl1 2.53
29 %define V_api_pl2 0.39 29 %define V_api_pl2 0.47
30 %define V_api_pl3 2.26 30 %define V_api_pl3 2.33
31 %define V_api_pl4 0.011 31 %define V_api_pl4 0.011
32 %define V_api_js1 20090929 32 %define V_api_js1 20091209
33 %define V_api_js2 20090929 33 %define V_api_js2 20091209
34 34
35 # package information 35 # package information
36 Name: json 36 Name: json
37 Summary: JavaScript Object Notation (JSON) 37 Summary: JavaScript Object Notation (JSON)
38 URL: http://www.json.org/ 38 URL: http://www.json.org/
41 Distribution: OpenPKG Community 41 Distribution: OpenPKG Community
42 Class: PLUS 42 Class: PLUS
43 Group: Language 43 Group: Language
44 License: Open Source 44 License: Open Source
45 Version: %{V_api_js2} 45 Version: %{V_api_js2}
46 Release: 20091120 46 Release: 20120800
47 47
48 # list of sources 48 # list of sources
49 Source0: http://oss.metaparadigm.com/json-c/json-c-%{V_api_c}.tar.gz 49 Source0: http://oss.metaparadigm.com/json-c/json-c-%{V_api_c}.tar.gz
50 Source1: http://switch.dl.sourceforge.net/zzjson/zzjson-%{V_api_c2}.tar.gz 50 Source1: http://switch.dl.sourceforge.net/zzjson/zzjson-%{V_api_c2}.tar.gz
51 Source2: http://projects.snarc.org/libjson/download/libjson-%{V_api_c3}.tar.bz2 51 Source2: http://projects.snarc.org/libjson/download/libjson-%{V_api_c3}.tar.bz2
57 Source8: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/json/json2-%{V_api_js2}.js 57 Source8: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/json/json2-%{V_api_js2}.js
58 Source9: http://www.ietf.org/rfc/rfc4627.txt 58 Source9: http://www.ietf.org/rfc/rfc4627.txt
59 Patch0: json.patch 59 Patch0: json.patch
60 60
61 # build information 61 # build information
62 Prefix: %{l_prefix} 62 BuildPreReq: OpenPKG, openpkg >= 20100101, perl, perl-openpkg, make
63 BuildRoot: %{l_buildroot} 63 PreReq: OpenPKG, openpkg >= 20100101, perl
64 BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg, make
65 PreReq: OpenPKG, openpkg >= 20040130, perl
66 AutoReq: no
67 AutoReqProv: no
68 64
69 %description 65 %description
70 JSON (JavaScript Object Notation) is a lightweight data-interchange 66 JSON (JavaScript Object Notation) is a lightweight data-interchange
71 format. It is easy for humans to read and write. It is easy for 67 format. It is easy for humans to read and write. It is easy for
72 machines to parse and generate. It is based on a subset of the 68 machines to parse and generate. It is based on a subset of the
162 %{l_prefix}/bin/perl-openpkg -d JSON-DWIW-%{V_api_pl2} configure build 158 %{l_prefix}/bin/perl-openpkg -d JSON-DWIW-%{V_api_pl2} configure build
163 %{l_prefix}/bin/perl-openpkg -d JSON-XS-%{V_api_pl3} configure build 159 %{l_prefix}/bin/perl-openpkg -d JSON-XS-%{V_api_pl3} configure build
164 %{l_prefix}/bin/perl-openpkg -d JavaScript-Dumper-%{V_api_pl4} configure build 160 %{l_prefix}/bin/perl-openpkg -d JavaScript-Dumper-%{V_api_pl4} configure build
165 161
166 %install 162 %install
167 rm -rf $RPM_BUILD_ROOT
168 ( cd json-c-%{V_api_c} 163 ( cd json-c-%{V_api_c}
169 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 164 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
170 ) || exit $? 165 ) || exit $?
171 ( cd zzjson-%{V_api_c2} 166 ( cd zzjson-%{V_api_c2}
172 %{l_shtool} install -c -m 644 \ 167 %{l_shtool} install -c -m 644 \
208 '%config %{l_prefix}/etc/apache/apache.d/*' 203 '%config %{l_prefix}/etc/apache/apache.d/*'
209 204
210 %files -f files 205 %files -f files
211 206
212 %clean 207 %clean
213 rm -rf $RPM_BUILD_ROOT 208
214

mercurial