| 36 %define V_yaml_spec 2004-12-28 |
36 %define V_yaml_spec 2004-12-28 |
| 37 %define V_java_jvyaml 0.2.1 |
37 %define V_java_jvyaml 0.2.1 |
| 38 %define V_java_jyaml 1.3 |
38 %define V_java_jyaml 1.3 |
| 39 %define V_php_syck 0.9.3 |
39 %define V_php_syck 0.9.3 |
| 40 %define V_php_yaml 1.0.1 |
40 %define V_php_yaml 1.0.1 |
| 41 %define V_php_spyc 0.4.5 |
|
| 42 |
41 |
| 43 # package information |
42 # package information |
| 44 Name: yaml |
43 Name: yaml |
| 45 Summary: YAML Ain't Markup Language (YAML) |
44 Summary: YAML Ain't Markup Language (YAML) |
| 46 URL: http://yaml.org/ |
45 URL: http://yaml.org/ |
| 73 Source10: https://jvyaml.dev.java.net/files/documents/5215/41455/jvyaml-src-%{V_java_jvyaml}.tar.gz |
72 Source10: https://jvyaml.dev.java.net/files/documents/5215/41455/jvyaml-src-%{V_java_jvyaml}.tar.gz |
| 74 Source11: http://switch.dl.sourceforge.net/jyaml/jyaml-src-%{V_java_jyaml}.tgz |
73 Source11: http://switch.dl.sourceforge.net/jyaml/jyaml-src-%{V_java_jyaml}.tgz |
| 75 Source12: http://www.cpan.org/authors/id/E/EI/EIDOLON/YAML-Object-%{V_perl_yaml_object}.tar.gz |
74 Source12: http://www.cpan.org/authors/id/E/EI/EIDOLON/YAML-Object-%{V_perl_yaml_object}.tar.gz |
| 76 Source13: http://pecl.php.net/get/syck-%{V_php_syck}.tgz |
75 Source13: http://pecl.php.net/get/syck-%{V_php_syck}.tgz |
| 77 Source14: http://pecl.php.net/get/yaml-%{V_php_yaml}.tgz |
76 Source14: http://pecl.php.net/get/yaml-%{V_php_yaml}.tgz |
| 78 Source15: http://spyc.googlecode.com/files/spyc-%{V_php_spyc}.zip |
77 Source15: http://yaml.org/spec/history/%{V_yaml_spec}/%{V_yaml_spec}.pdf |
| 79 Source16: http://yaml.org/spec/history/%{V_yaml_spec}/%{V_yaml_spec}.pdf |
78 Source16: yaml.yml |
| 80 Source17: yaml.yml |
|
| 81 Patch0: yaml.patch |
79 Patch0: yaml.patch |
| 82 |
80 |
| 83 # build information |
81 # build information |
| 84 BuildPreReq: OpenPKG, openpkg >= 20100101, make, bison |
82 Prefix: %{l_prefix} |
| 85 PreReq: OpenPKG, openpkg >= 20100101 |
83 BuildRoot: %{l_buildroot} |
| |
84 BuildPreReq: OpenPKG, openpkg >= 20060823, make, bison |
| |
85 PreReq: OpenPKG, openpkg >= 20060823 |
| 86 %if "%{with_perl}" == "yes" |
86 %if "%{with_perl}" == "yes" |
| 87 BuildPreReq: perl, perl-openpkg, perl-module |
87 BuildPreReq: perl, perl-openpkg, perl-module |
| 88 PreReq: perl |
88 PreReq: perl |
| 89 %endif |
89 %endif |
| 90 %if "%{with_php}" == "yes" |
90 %if "%{with_php}" == "yes" |
| 97 %endif |
97 %endif |
| 98 %if "%{with_java}" == "yes" |
98 %if "%{with_java}" == "yes" |
| 99 BuildPreReq: java, JAVA-JDK, ant |
99 BuildPreReq: java, JAVA-JDK, ant |
| 100 PreReq: java, JAVA-JDK |
100 PreReq: java, JAVA-JDK |
| 101 %endif |
101 %endif |
| |
102 AutoReq: no |
| |
103 AutoReqProv: no |
| 102 |
104 |
| 103 %description |
105 %description |
| 104 YAML Ain't Markup Language (YAML) is an international collaboration |
106 YAML Ain't Markup Language (YAML) is an international collaboration |
| 105 to make a sophisticated data serialization language which is both |
107 to make a sophisticated data serialization language which is both |
| 106 human readable and computationally powerful. This OpenPKG package |
108 human readable and computationally powerful. This OpenPKG package |
| 188 } |
190 } |
| 189 prog yaml:PHP-YAML = { |
191 prog yaml:PHP-YAML = { |
| 190 version = %{V_php_yaml} |
192 version = %{V_php_yaml} |
| 191 url = http://pecl.php.net/package/yaml |
193 url = http://pecl.php.net/package/yaml |
| 192 regex = yaml-(__VER__)\.tgz |
194 regex = yaml-(__VER__)\.tgz |
| 193 } |
|
| 194 prog yaml:PHP-spyc = { |
|
| 195 version = %{V_php_spyc} |
|
| 196 url = http://spyc.googlecode.com/files/ |
|
| 197 regex = spyc-(__VER__)\.zip |
|
| 198 } |
195 } |
| 199 |
196 |
| 200 %prep |
197 %prep |
| 201 %setup -q -c |
198 %setup -q -c |
| 202 %setup -q -T -D -a 1 |
199 %setup -q -T -D -a 1 |
| 211 %setup -q -T -D -a 10 |
208 %setup -q -T -D -a 10 |
| 212 %setup -q -T -D -a 11 |
209 %setup -q -T -D -a 11 |
| 213 %setup -q -T -D -a 12 |
210 %setup -q -T -D -a 12 |
| 214 %setup -q -T -D -a 13 |
211 %setup -q -T -D -a 13 |
| 215 %setup -q -T -D -a 14 |
212 %setup -q -T -D -a 14 |
| 216 %setup -q -T -D -a 15 |
|
| 217 %patch -p0 |
213 %patch -p0 |
| 218 |
214 |
| 219 %build |
215 %build |
| 220 # build YAML C API |
216 # build YAML C API |
| 221 ( cd yaml-%{V_libyaml} |
217 ( cd yaml-%{V_libyaml} |
| 309 ( cd syck-%{V_php_syck} |
306 ( cd syck-%{V_php_syck} |
| 310 %{l_make} %{l_mflags} install INSTALL_ROOT=$RPM_BUILD_ROOT |
307 %{l_make} %{l_mflags} install INSTALL_ROOT=$RPM_BUILD_ROOT |
| 311 ) || exit $? |
308 ) || exit $? |
| 312 ( cd yaml-%{V_php_yaml} |
309 ( cd yaml-%{V_php_yaml} |
| 313 %{l_make} %{l_mflags} install INSTALL_ROOT=$RPM_BUILD_ROOT |
310 %{l_make} %{l_mflags} install INSTALL_ROOT=$RPM_BUILD_ROOT |
| 314 ) || exit $? |
|
| 315 ( cd spyc-%{V_php_spyc} |
|
| 316 %{l_shtool} mkdir -f -p -m 755 \ |
|
| 317 $RPM_BUILD_ROOT%{l_prefix}/share/yaml |
|
| 318 %{l_shtool} install -c -m 644 \ |
|
| 319 spyc.php $RPM_BUILD_ROOT%{l_prefix}/share/yaml/ |
|
| 320 ) || exit $? |
311 ) || exit $? |
| 321 %endif |
312 %endif |
| 322 |
313 |
| 323 # install Ruby API |
314 # install Ruby API |
| 324 %if "%{with_ruby}" == "yes" |
315 %if "%{with_ruby}" == "yes" |