Thu, 15 Sep 2011 17:10:15 +0200
Import package vendor original specs for necessary manipulations,
requiring YAML module for upcoming davical package database update.
yaml/yaml.patch | file | annotate | diff | comparison | revisions | |
yaml/yaml.spec | file | annotate | diff | comparison | revisions | |
yaml/yaml.yml | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/yaml/yaml.patch Thu Sep 15 17:10:15 2011 +0200 1.3 @@ -0,0 +1,126 @@ 1.4 +Index: YAML-AppConfig-0.16/Makefile.PL 1.5 +--- YAML-AppConfig-0.16/Makefile.PL.orig 2006-07-02 23:21:51 +0200 1.6 ++++ YAML-AppConfig-0.16/Makefile.PL 2009-11-27 13:24:07 +0100 1.7 +@@ -21,6 +21,7 @@ 1.8 + eval "require $info->[0]; 0;"; 1.9 + push @yamls, @$info unless $@; 1.10 + } 1.11 +- die "YAML >= 0.38 or YAML::Syck >= 0 required.\n" unless @yamls; 1.12 ++ # die "YAML >= 0.38 or YAML::Syck >= 0 required.\n" unless @yamls; 1.13 + return @yamls; 1.14 + } 1.15 ++ 1.16 +Index: syck-0.70/lib/bytecode.c 1.17 +--- syck-0.70/lib/bytecode.c.orig 2009-09-30 19:29:34 +0200 1.18 ++++ syck-0.70/lib/bytecode.c 2009-11-27 13:24:07 +0100 1.19 +@@ -7,6 +7,10 @@ 1.20 + * 1.21 + * Copyright (C) 2003 why the lucky stiff 1.22 + */ 1.23 ++ 1.24 ++#include <stdlib.h> 1.25 ++#include <string.h> 1.26 ++ 1.27 + #include "syck.h" 1.28 + 1.29 + #if GRAM_FILES_HAVE_TAB_SUFFIX 1.30 +Index: syck-0.70/lib/handler.c 1.31 +--- syck-0.70/lib/handler.c.orig 2009-09-30 19:29:34 +0200 1.32 ++++ syck-0.70/lib/handler.c 2009-11-27 13:24:07 +0100 1.33 +@@ -7,6 +7,9 @@ 1.34 + * Copyright (C) 2003 why the lucky stiff 1.35 + */ 1.36 + 1.37 ++#include <stdlib.h> 1.38 ++#include <string.h> 1.39 ++ 1.40 + #include "syck.h" 1.41 + 1.42 + SYMID 1.43 +Index: syck-0.70/lib/implicit.c 1.44 +--- syck-0.70/lib/implicit.c.orig 2009-09-30 19:29:34 +0200 1.45 ++++ syck-0.70/lib/implicit.c 2009-11-27 13:24:07 +0100 1.46 +@@ -8,6 +8,7 @@ 1.47 + * Copyright (C) 2003 why the lucky stiff 1.48 + */ 1.49 + 1.50 ++#include <stdlib.h> 1.51 + #include "syck.h" 1.52 + 1.53 + #define YYCTYPE char 1.54 +Index: syck-0.70/lib/node.c 1.55 +--- syck-0.70/lib/node.c.orig 2009-09-30 19:29:34 +0200 1.56 ++++ syck-0.70/lib/node.c 2009-11-27 13:24:07 +0100 1.57 +@@ -7,6 +7,9 @@ 1.58 + * Copyright (C) 2003 why the lucky stiff 1.59 + */ 1.60 + 1.61 ++#include <stdlib.h> 1.62 ++#include <string.h> 1.63 ++ 1.64 + #include "syck.h" 1.65 + 1.66 + /* 1.67 +Index: syck-0.70/lib/syck.c 1.68 +--- syck-0.70/lib/syck.c.orig 2009-09-30 19:29:34 +0200 1.69 ++++ syck-0.70/lib/syck.c 2009-11-27 13:24:07 +0100 1.70 +@@ -7,6 +7,7 @@ 1.71 + * Copyright (C) 2003 why the lucky stiff 1.72 + */ 1.73 + #include <stdio.h> 1.74 ++#include <stdlib.h> 1.75 + #include <string.h> 1.76 + 1.77 + #include "syck.h" 1.78 +@@ -67,12 +68,13 @@ 1.79 + 1.80 + ASSERT( str != NULL ); 1.81 + beg = str->ptr; 1.82 ++ 1.83 + if ( max_size >= 0 ) 1.84 + { 1.85 + max_size -= skip; 1.86 +- if ( max_size <= 0 ) max_size = 0; 1.87 +- else str->ptr += max_size; 1.88 ++ if ( max_size < 0 ) max_size = 0; 1.89 + 1.90 ++ str->ptr += max_size; 1.91 + if ( str->ptr > str->end ) 1.92 + { 1.93 + str->ptr = str->end; 1.94 +Index: syck-0.70/lib/syck.h 1.95 +--- syck-0.70/lib/syck.h.orig 2009-09-30 19:29:34 +0200 1.96 ++++ syck-0.70/lib/syck.h 2009-11-27 13:24:07 +0100 1.97 +@@ -36,6 +36,8 @@ 1.98 + 1.99 + #include <stddef.h> 1.100 + #include <stdio.h> 1.101 ++#include <stdlib.h> 1.102 ++#include <string.h> 1.103 + #include <ctype.h> 1.104 + #ifdef HAVE_ST_H 1.105 + #include <st.h> 1.106 +Index: syck-0.70/lib/token.c 1.107 +--- syck-0.70/lib/token.c.orig 2009-09-30 19:29:34 +0200 1.108 ++++ syck-0.70/lib/token.c 2009-11-27 13:24:07 +0100 1.109 +@@ -7,6 +7,8 @@ 1.110 + * 1.111 + * Copyright (C) 2003 why the lucky stiff 1.112 + */ 1.113 ++#include <stdlib.h> 1.114 ++#include <string.h> 1.115 + #include "syck.h" 1.116 + 1.117 + #if GRAM_FILES_HAVE_TAB_SUFFIX 1.118 +Index: syck-0.70/lib/yaml2byte.c 1.119 +--- syck-0.70/lib/yaml2byte.c.orig 2009-09-30 19:29:34 +0200 1.120 ++++ syck-0.70/lib/yaml2byte.c 2009-11-27 13:24:31 +0100 1.121 +@@ -11,6 +11,8 @@ 1.122 + */ 1.123 + #include "syck.h" 1.124 + #include <assert.h> 1.125 ++#include <stdlib.h> 1.126 ++#include <string.h> 1.127 + #define YAMLBYTE_UTF8 1.128 + #include "yamlbyte.h" 1.129 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/yaml/yaml.spec Thu Sep 15 17:10:15 2011 +0200 2.3 @@ -0,0 +1,379 @@ 2.4 +## 2.5 +## yaml.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# package version 2.28 +%define V_libsyck 0.70 2.29 +%define V_libyaml 0.1.4 2.30 +%define V_perl_yaml 0.73 2.31 +%define V_perl_yaml_syck 1.17 2.32 +%define V_perl_yaml_tiny 1.50 2.33 +%define V_perl_yaml_appconfig 0.16 2.34 +%define V_perl_yaml_libyaml 0.35 2.35 +%define V_perl_yaml_active 1.100810 2.36 +%define V_perl_yaml_object 0.04 2.37 +%define V_perl_io_yaml 0.08 2.38 +%define V_yaml_javascript 0.03 2.39 +%define V_yaml_spec 2004-12-28 2.40 +%define V_java_jvyaml 0.2.1 2.41 +%define V_java_jyaml 1.3 2.42 +%define V_php_syck 0.9.3 2.43 +%define V_php_yaml 1.0.1 2.44 +%define V_php_spyc 0.4.5 2.45 + 2.46 +# package information 2.47 +Name: yaml 2.48 +Summary: YAML Ain't Markup Language (YAML) 2.49 +URL: http://yaml.org/ 2.50 +Vendor: B. Ingerson, C. Evans, O. Ben-Kiki et al. 2.51 +Packager: OpenPKG Foundation e.V. 2.52 +Distribution: OpenPKG Community 2.53 +Class: PLUS 2.54 +Group: Language 2.55 +License: BSD/Artistic 2.56 +Version: 0 2.57 +Release: 20110624 2.58 + 2.59 +# package options 2.60 +%option with_perl no 2.61 +%option with_php no 2.62 +%option with_ruby no 2.63 +%option with_java no 2.64 + 2.65 +# list of sources 2.66 +Source0: http://cloud.github.com/downloads/indeyets/syck/syck-%{V_libsyck}.tar.gz 2.67 +Source1: http://pyyaml.org/download/libyaml/yaml-%{V_libyaml}.tar.gz 2.68 +Source2: http://www.cpan.org/modules/by-module/YAML/YAML-%{V_perl_yaml}.tar.gz 2.69 +Source3: http://www.cpan.org/modules/by-module/YAML/YAML-Syck-%{V_perl_yaml_syck}.tar.gz 2.70 +Source4: http://www.cpan.org/modules/by-module/YAML/YAML-Tiny-%{V_perl_yaml_tiny}.tar.gz 2.71 +Source5: http://www.cpan.org/modules/by-module/YAML/YAML-AppConfig-%{V_perl_yaml_appconfig}.tar.gz 2.72 +Source6: http://www.cpan.org/modules/by-module/YAML/YAML-LibYAML-%{V_perl_yaml_libyaml}.tar.gz 2.73 +Source7: http://www.cpan.org/modules/by-module/YAML/YAML-Active-%{V_perl_yaml_active}.tar.gz 2.74 +Source8: http://www.cpan.org/authors/id/N/NK/NKUITSE/IO-YAML-%{V_perl_io_yaml}.tar.gz 2.75 +Source9: http://osdn.dl.sourceforge.net/yaml-javascript/yaml-javascript-%{V_yaml_javascript}.tar.gz 2.76 +Source10: https://jvyaml.dev.java.net/files/documents/5215/41455/jvyaml-src-%{V_java_jvyaml}.tar.gz 2.77 +Source11: http://switch.dl.sourceforge.net/jyaml/jyaml-src-%{V_java_jyaml}.tgz 2.78 +Source12: http://www.cpan.org/authors/id/E/EI/EIDOLON/YAML-Object-%{V_perl_yaml_object}.tar.gz 2.79 +Source13: http://pecl.php.net/get/syck-%{V_php_syck}.tgz 2.80 +Source14: http://pecl.php.net/get/yaml-%{V_php_yaml}.tgz 2.81 +Source15: http://spyc.googlecode.com/files/spyc-%{V_php_spyc}.zip 2.82 +Source16: http://yaml.org/spec/history/%{V_yaml_spec}/%{V_yaml_spec}.pdf 2.83 +Source17: yaml.yml 2.84 +Patch0: yaml.patch 2.85 + 2.86 +# build information 2.87 +BuildPreReq: OpenPKG, openpkg >= 20100101, make, bison 2.88 +PreReq: OpenPKG, openpkg >= 20100101 2.89 +%if "%{with_perl}" == "yes" 2.90 +BuildPreReq: perl, perl-openpkg, perl-module 2.91 +PreReq: perl 2.92 +%endif 2.93 +%if "%{with_php}" == "yes" 2.94 +BuildPreReq: php, autoconf 2.95 +PreReq: php 2.96 +%endif 2.97 +%if "%{with_ruby}" == "yes" 2.98 +BuildPreReq: ruby 2.99 +PreReq: ruby 2.100 +%endif 2.101 +%if "%{with_java}" == "yes" 2.102 +BuildPreReq: java, JAVA-JDK, ant 2.103 +PreReq: java, JAVA-JDK 2.104 +%endif 2.105 + 2.106 +%description 2.107 + YAML Ain't Markup Language (YAML) is an international collaboration 2.108 + to make a sophisticated data serialization language which is both 2.109 + human readable and computationally powerful. This OpenPKG package 2.110 + provides C, and JavaScript plus optionally Perl, PHP, and Ruby APIs 2.111 + for the generation and parsing of YAML. 2.112 + 2.113 +%track 2.114 + prog yaml:libsyck = { 2.115 + version = %{V_libsyck} 2.116 + url = http://github.com/indeyets/syck/downloads 2.117 + regex = syck-(__VER__)\.tar\.gz 2.118 + } 2.119 + prog yaml:libyaml = { 2.120 + version = %{V_libyaml} 2.121 + url = http://pyyaml.org/download/libyaml/ 2.122 + regex = yaml-(__VER__)\.tar\.gz 2.123 + } 2.124 + prog yaml:YAML = { 2.125 + version = %{V_perl_yaml} 2.126 + url = http://www.cpan.org/modules/by-module/YAML/ 2.127 + regex = YAML-(__VER__)\.tar\.gz 2.128 + } 2.129 + prog yaml:YAML-Syck = { 2.130 + version = %{V_perl_yaml_syck} 2.131 + url = http://www.cpan.org/modules/by-module/YAML/ 2.132 + regex = YAML-Syck-(__VER__)\.tar\.gz 2.133 + } 2.134 + prog yaml:YAML-Tiny = { 2.135 + version = %{V_perl_yaml_tiny} 2.136 + url = http://www.cpan.org/modules/by-module/YAML/ 2.137 + regex = YAML-Tiny-(__VER__)\.tar\.gz 2.138 + } 2.139 + prog yaml:YAML-AppConfig = { 2.140 + version = %{V_perl_yaml_appconfig} 2.141 + url = http://www.cpan.org/modules/by-module/YAML/ 2.142 + regex = YAML-AppConfig-(__VER__)\.tar\.gz 2.143 + } 2.144 + prog yaml:YAML-LibYAML = { 2.145 + version = %{V_perl_yaml_libyaml} 2.146 + url = http://www.cpan.org/modules/by-module/YAML/ 2.147 + regex = YAML-LibYAML-(__VER__)\.tar\.gz 2.148 + } 2.149 + prog yaml:YAML-Active = { 2.150 + comment = "rse: 1.08 requires Class::Accessor::Complex and this too many others" 2.151 + version = %{V_perl_yaml_active} 2.152 + url = http://www.cpan.org/modules/by-module/YAML/ 2.153 + regex = YAML-Active-(__VER__)\.tar\.gz 2.154 + } 2.155 + prog yaml:IO-YAML = { 2.156 + version = %{V_perl_io_yaml} 2.157 + url = http://www.cpan.org/authors/id/N/NK/NKUITSE/ 2.158 + regex = IO-YAML-(__VER__)\.tar\.gz 2.159 + } 2.160 + prog yaml:yaml-javascript = { 2.161 + version = %{V_yaml_javascript} 2.162 + url = http://sourceforge.net/projects/yaml-javascript/files/ 2.163 + regex = yaml-javascript-(__VER__)\.tar\.gz 2.164 + } 2.165 + prog yaml:yaml-spec = { 2.166 + disabled 2.167 + comment = "rse: website references not existing 2004-12-30 and no updates since recently anyway" 2.168 + version = %{V_yaml_spec} 2.169 + url = http://yaml.org/spec/ 2.170 + regex = (\d{4}-\d{2}-\d{2})\.pdf 2.171 + } 2.172 + prog yaml:java-jvyaml = { 2.173 + version = %{V_java_jvyaml} 2.174 + url = http://jvyaml.dev.java.net/servlets/ProjectDocumentList 2.175 + regex = jvyaml-src-(__VER__)\.tar\.gz 2.176 + } 2.177 + prog yaml:java-jyaml = { 2.178 + version = %{V_java_jyaml} 2.179 + url = http://sourceforge.net/projects/jyaml/files/ 2.180 + regex = jyaml-src-(__VER__)\.tgz 2.181 + } 2.182 + prog yaml:YAML-Object = { 2.183 + version = %{V_perl_yaml_object} 2.184 + url = http://www.cpan.org/authors/id/E/EI/EIDOLON/ 2.185 + regex = YAML-Object-(__VER__)\.tar\.gz 2.186 + } 2.187 + prog yaml:PHP-Syck = { 2.188 + version = %{V_php_syck} 2.189 + url = http://pecl.php.net/package/syck 2.190 + regex = syck-(__VER__)\.tgz 2.191 + } 2.192 + prog yaml:PHP-YAML = { 2.193 + version = %{V_php_yaml} 2.194 + url = http://pecl.php.net/package/yaml 2.195 + regex = yaml-(__VER__)\.tgz 2.196 + } 2.197 + prog yaml:PHP-spyc = { 2.198 + version = %{V_php_spyc} 2.199 + url = http://spyc.googlecode.com/files/ 2.200 + regex = spyc-(__VER__)\.zip 2.201 + } 2.202 + 2.203 +%prep 2.204 + %setup -q -c 2.205 + %setup -q -T -D -a 1 2.206 + %setup -q -T -D -a 2 2.207 + %setup -q -T -D -a 3 2.208 + %setup -q -T -D -a 4 2.209 + %setup -q -T -D -a 5 2.210 + %setup -q -T -D -a 6 2.211 + %setup -q -T -D -a 7 2.212 + %setup -q -T -D -a 8 2.213 + %setup -q -T -D -a 9 2.214 + %setup -q -T -D -a 10 2.215 + %setup -q -T -D -a 11 2.216 + %setup -q -T -D -a 12 2.217 + %setup -q -T -D -a 13 2.218 + %setup -q -T -D -a 14 2.219 + %setup -q -T -D -a 15 2.220 + %patch -p0 2.221 + 2.222 +%build 2.223 + # build YAML C API 2.224 + ( cd yaml-%{V_libyaml} 2.225 + CC="%{l_cc}" \ 2.226 + CFLAGS="%{l_cflags -O}" \ 2.227 + ./configure \ 2.228 + --prefix=%{l_prefix} \ 2.229 + --disable-shared 2.230 + %{l_make} %{l_mflags -O} 2.231 + ) || exit $? 2.232 + 2.233 + # build Syck C API 2.234 + ( cd syck-%{V_libsyck} 2.235 + CC="%{l_cc}" \ 2.236 + CFLAGS="%{l_cflags -O}" \ 2.237 + ./configure \ 2.238 + --prefix=%{l_prefix} \ 2.239 + --disable-shared 2.240 + %{l_make} %{l_mflags} 2.241 + ) || exit $? 2.242 + 2.243 + # build PHP API 2.244 +%if "%{with_php}" == "yes" 2.245 + ( cd syck-%{V_php_syck} 2.246 + %{l_prefix}/bin/phpize 2.247 + CC="%{l_cc}" \ 2.248 + CFLAGS="%{l_cflags -O}" \ 2.249 + CPPFLAGS="-I`pwd`/../syck-%{V_libsyck}/lib" \ 2.250 + LDFLAGS="-L`pwd`/../syck-%{V_libsyck}/lib" \ 2.251 + ./configure \ 2.252 + --with-syck=`pwd`/../syck-%{V_libsyck} 2.253 + %{l_make} %{l_mflags} 2.254 + ) || exit $? 2.255 + ( cd yaml-%{V_php_yaml} 2.256 + %{l_prefix}/bin/phpize 2.257 + CC="%{l_cc}" \ 2.258 + CFLAGS="%{l_cflags -O}" \ 2.259 + CPPFLAGS="-I`pwd`/../yaml-%{V_libyaml}/include" \ 2.260 + LDFLAGS="-L`pwd`/../yaml-%{V_libyaml}/src/.libs" \ 2.261 + ./configure \ 2.262 + --with-yaml=`pwd`/../yaml-%{V_libyaml} 2.263 + %{l_make} %{l_mflags} 2.264 + ) || exit $? 2.265 +%endif 2.266 + 2.267 + # build Ruby API 2.268 +%if "%{with_ruby}" == "yes" 2.269 + ( cd syck-%{V_libsyck}/ext/ruby 2.270 + %{l_prefix}/bin/ruby install.rb config --prefix=%{l_prefix} 2.271 + %{l_prefix}/bin/ruby install.rb setup 2.272 + ) || exit $? 2.273 +%endif 2.274 + 2.275 + # build Perl API 2.276 +%if "%{with_perl}" == "yes" 2.277 + %{l_prefix}/bin/perl-openpkg prepare 2.278 + %{l_prefix}/bin/perl-openpkg -d YAML-%{V_perl_yaml} configure build 2.279 + %{l_prefix}/bin/perl-openpkg -d YAML-Syck-%{V_perl_yaml_syck} configure build 2.280 + %{l_prefix}/bin/perl-openpkg -d YAML-Tiny-%{V_perl_yaml_tiny} configure build 2.281 + %{l_prefix}/bin/perl-openpkg -d YAML-AppConfig-%{V_perl_yaml_appconfig} configure build 2.282 + %{l_prefix}/bin/perl-openpkg -d YAML-LibYAML-%{V_perl_yaml_libyaml} configure build 2.283 + %{l_prefix}/bin/perl-openpkg -d YAML-Active-%{V_perl_yaml_active} configure build 2.284 + %{l_prefix}/bin/perl-openpkg -d YAML-Object-%{V_perl_yaml_object} configure build 2.285 + %{l_prefix}/bin/perl-openpkg -d IO-YAML-%{V_perl_io_yaml} configure build 2.286 +%endif 2.287 + 2.288 + # build Java API 2.289 +%if "%{with_java}" == "yes" 2.290 + ( cd jvyaml-%{V_java_jvyaml} 2.291 + %{l_prefix}/bin/ant 2.292 + ) || exit $? 2.293 + ( cd jyaml 2.294 + %{l_prefix}/bin/ant 2.295 + ) || exit $? 2.296 +%endif 2.297 + 2.298 +%install 2.299 + 2.300 + # install YAML C API 2.301 + ( cd yaml-%{V_libyaml} 2.302 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.303 + ) || exit $? 2.304 + 2.305 + # install Syck C API 2.306 + ( cd syck-%{V_libsyck} 2.307 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.308 + ) || exit $? 2.309 + 2.310 + # install PHP API 2.311 +%if "%{with_php}" == "yes" 2.312 + ( cd syck-%{V_php_syck} 2.313 + %{l_make} %{l_mflags} install INSTALL_ROOT=$RPM_BUILD_ROOT 2.314 + ) || exit $? 2.315 + ( cd yaml-%{V_php_yaml} 2.316 + %{l_make} %{l_mflags} install INSTALL_ROOT=$RPM_BUILD_ROOT 2.317 + ) || exit $? 2.318 + ( cd spyc-%{V_php_spyc} 2.319 + %{l_shtool} mkdir -f -p -m 755 \ 2.320 + $RPM_BUILD_ROOT%{l_prefix}/share/yaml 2.321 + %{l_shtool} install -c -m 644 \ 2.322 + spyc.php $RPM_BUILD_ROOT%{l_prefix}/share/yaml/ 2.323 + ) || exit $? 2.324 +%endif 2.325 + 2.326 + # install Ruby API 2.327 +%if "%{with_ruby}" == "yes" 2.328 + ( cd syck-%{V_libsyck}/ext/ruby 2.329 + %{l_prefix}/bin/ruby install.rb install --prefix=$RPM_BUILD_ROOT 2.330 + ) || exit $? 2.331 +%endif 2.332 + 2.333 + # install Perl API 2.334 +%if "%{with_perl}" == "yes" 2.335 + %{l_prefix}/bin/perl-openpkg -d YAML-%{V_perl_yaml} install 2.336 + %{l_prefix}/bin/perl-openpkg -d YAML-Syck-%{V_perl_yaml_syck} install 2.337 + %{l_prefix}/bin/perl-openpkg -d YAML-Tiny-%{V_perl_yaml_tiny} install 2.338 + %{l_prefix}/bin/perl-openpkg -d YAML-AppConfig-%{V_perl_yaml_appconfig} install 2.339 + %{l_prefix}/bin/perl-openpkg -d YAML-LibYAML-%{V_perl_yaml_libyaml} install 2.340 + %{l_prefix}/bin/perl-openpkg -d YAML-Active-%{V_perl_yaml_active} install 2.341 + %{l_prefix}/bin/perl-openpkg -d YAML-Object-%{V_perl_yaml_object} install 2.342 + %{l_prefix}/bin/perl-openpkg -d IO-YAML-%{V_perl_io_yaml} install 2.343 + %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup 2.344 +%else 2.345 + >perl-openpkg-files 2.346 +%endif 2.347 + 2.348 + # install Java API 2.349 +%if "%{with_java}" == "yes" 2.350 + %{l_shtool} mkdir -f -p -m 755 \ 2.351 + $RPM_BUILD_ROOT%{l_prefix}/lib/yaml 2.352 + %{l_shtool} install -c -m 644 \ 2.353 + jvyaml-%{V_java_jvyaml}/lib/jvyaml.jar \ 2.354 + $RPM_BUILD_ROOT%{l_prefix}/lib/yaml/ 2.355 + %{l_shtool} install -c -m 644 \ 2.356 + jyaml/dist/jyaml-*.jar \ 2.357 + $RPM_BUILD_ROOT%{l_prefix}/lib/yaml/jyaml.jar 2.358 +%endif 2.359 + 2.360 + # install JavaScript API 2.361 + %{l_shtool} mkdir -f -p -m 755 \ 2.362 + $RPM_BUILD_ROOT%{l_prefix}/share/yaml 2.363 + %{l_shtool} install -c -m 644 \ 2.364 + yaml-javascript-%{V_yaml_javascript}/yaml_dumper.js \ 2.365 + $RPM_BUILD_ROOT%{l_prefix}/share/yaml/ 2.366 + 2.367 + # install YAML specification and quick reference 2.368 + %{l_shtool} install -c -m 644 \ 2.369 + %{SOURCE %{V_yaml_spec}.pdf} \ 2.370 + $RPM_BUILD_ROOT%{l_prefix}/share/yaml/yaml.pdf 2.371 + %{l_shtool} install -c -m 644 \ 2.372 + %{SOURCE yaml.yml} \ 2.373 + $RPM_BUILD_ROOT%{l_prefix}/share/yaml/ 2.374 + 2.375 + # determine installation files 2.376 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 2.377 + %{l_files_std} `cat perl-openpkg-files` 2.378 + 2.379 +%files -f files 2.380 + 2.381 +%clean 2.382 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/yaml/yaml.yml Thu Sep 15 17:10:15 2011 +0200 3.3 @@ -0,0 +1,62 @@ 3.4 +%YAML 1.1 # Reference card 3.5 +--- 3.6 +Collection indicators: 3.7 + '? ' : Key indicator. 3.8 + ': ' : Value indicator. 3.9 + '- ' : Nested series entry indicator. 3.10 + ', ' : Separate in-line branch entries. 3.11 + '[]' : Surround in-line series branch. 3.12 + '{}' : Surround in-line keyed branch. 3.13 +Scalar indicators: 3.14 + '''' : Surround in-line unescaped scalar ('' escaped '). 3.15 + '"' : Surround in-line escaped scalar (see escape codes below). 3.16 + '|' : Block scalar indicator. 3.17 + '>' : Folded scalar indicator. 3.18 + '-' : Strip chomp modifier ('|-' or '>-'). 3.19 + '+' : Keep chomp modifier ('|+' or '>+'). 3.20 + 1-9 : Explicit indentation modifier ('|1' or '>2'). 3.21 + # Modifiers can be combined ('|2-', '>+1'). 3.22 +Alias indicators: 3.23 + '&' : Anchor property. 3.24 + '*' : Alias indicator. 3.25 +Tag property: # Usually unspecified. 3.26 + none : Unspecified tag (automatically resolved by application). 3.27 + '!' : Non-specific tag (by default, "!!map"/"!!seq"/"!!str"). 3.28 + '!foo': Primary (by convention, means a local "!foo" tag). 3.29 + '!!foo': Secondary (by convention, means "tag:yaml.org,2002:foo"). 3.30 + '!h!foo': Requires "%TAG !h! <prefix>" (and then means "<prefix>foo"). 3.31 + '!<foo>': Verbatim tag (always means "foo"). 3.32 +Document indicators: 3.33 + '%' : Directive indicator. 3.34 + '---' : Document header. 3.35 + '...' : Document terminator. 3.36 +Misc indicators: 3.37 + ' #' : Throwaway comment indicator. 3.38 + '`@' : Both reserved for future use. 3.39 +Special keys: 3.40 + '=' : Default "value" mapping key. 3.41 + '<<' : Merge keys from another mapping. 3.42 +Core types: # Default automatic tags. 3.43 + '!!map' : [ Hash table, dictionary, mapping ] 3.44 + '!!seq' : [ List, array, tuple, vector, sequence ] 3.45 + '!!str' : Unicode string 3.46 +More types: 3.47 + '!!set' : { cherries, plums, apples } 3.48 + '!!omap' : [ one: 1, two: 2 ] 3.49 +Language Independent Scalar types: 3.50 + { ~, null } : Null (no value). 3.51 + { 1234, 0x4D2, 02333 } : [ Decimal int, Hexadecimal int, Octal int ] 3.52 + { 1_230.15, 12.3015e+02 } : [ Fixed float, Exponential float ] 3.53 + { .inf, -.Inf, .NAN } : [ Infinity (float), Negative, Not a number ] 3.54 + { Y, true, Yes, ON } : Boolean true 3.55 + { n, FALSE, No, off } : Boolean false 3.56 + ? !!binary > 3.57 + R0lG...BADS= 3.58 + : >- 3.59 + Base 64 binary value. 3.60 +Escape codes: 3.61 + Numeric : { "\xXX": 8-bit, "\uXXXX": 16-bit, "\UXXXXXXXX": 32-bit } 3.62 + Protective: { "\\": '\', "\"": '"', "\ ": ' ', "\<TAB>": "<TAB>", "\^": '^' } 3.63 + C: { "\a": BEL, "\b": BS, "\f": FF, "\n": LF, "\r": CR, "\t": TAB, "\v": VTAB } 3.64 + Additional: { "\e": ESC, "\0": NUL, "\_": NBSP, "\N": NEL, "\L": LS, "\P": PS } 3.65 +...