Parcourir la source

add YAML::Syck, a fast YAML/JSON loader/saver

Ralf S. Engelschall il y a 19 ans
Parent
commit
af30f18c8b
1 fichiers modifiés avec 19 ajouts et 9 suppressions
  1. 19 9
      perl-parse/perl-parse.spec

+ 19 - 9
perl-parse/perl-parse.spec

@@ -42,6 +42,7 @@
 %define       V_appconfig_std             1.07
 %define       V_template                  2.14
 %define       V_yaml                      0.58
+%define       V_yaml_syck                 0.40
 %define       V_ogdl                      20041124
 %define       V_text_csv_pp               1.01
 %define       V_text_csv_xs               0.23
@@ -58,7 +59,7 @@ Class:        BASE
 Group:        Language
 License:      GPL/Artistic
 Version:      %{V_perl}
-Release:      20060217
+Release:      20060331
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/Config/Config-IniFiles-%{V_config_inifiles}.tar.gz
@@ -76,13 +77,14 @@ Source11:     http://www.cpan.org/modules/by-module/AppConfig/AppConfig-%{V_appc
 Source12:     http://www.cpan.org/modules/by-module/AppConfig/AppConfig-Std-%{V_appconfig_std}.tar.gz
 Source13:     http://www.cpan.org/modules/by-module/Template/Template-Toolkit-%{V_template}.tar.gz
 Source14:     http://www.cpan.org/modules/by-module/YAML/YAML-%{V_yaml}.tar.gz
-Source15:     http://osdn.dl.sourceforge.net/ogdl/ogdlutils-%{V_ogdl}.tgz
-Source16:     http://www.cpan.org/modules/by-module/String/String-Tokenizer-%{V_string_tokenizer}.tar.gz
-Source17:     http://www.cpan.org/modules/by-module/Config/Config-Context-%{V_config_context}.tar.gz
-Source18:     http://www.cpan.org/modules/by-module/Config/Config-Scoped-%{V_config_scoped}.tar.gz
-Source19:     http://www.cpan.org/modules/by-module/Text/Text-CSV_PP-%{V_text_csv_pp}.tar.gz
-Source20:     http://www.cpan.org/modules/by-module/Text/Text-CSV_XS-%{V_text_csv_xs}.tar.gz
-Source21:     http://www.cpan.org/modules/by-module/Text/Text-CSV-Simple-%{V_text_csv_simple}.tar.gz
+Source15:     http://www.cpan.org/modules/by-module/YAML/YAML-Syck-%{V_yaml_syck}.tar.gz
+Source16:     http://osdn.dl.sourceforge.net/ogdl/ogdlutils-%{V_ogdl}.tgz
+Source17:     http://www.cpan.org/modules/by-module/String/String-Tokenizer-%{V_string_tokenizer}.tar.gz
+Source18:     http://www.cpan.org/modules/by-module/Config/Config-Context-%{V_config_context}.tar.gz
+Source19:     http://www.cpan.org/modules/by-module/Config/Config-Scoped-%{V_config_scoped}.tar.gz
+Source20:     http://www.cpan.org/modules/by-module/Text/Text-CSV_PP-%{V_text_csv_pp}.tar.gz
+Source21:     http://www.cpan.org/modules/by-module/Text/Text-CSV_XS-%{V_text_csv_xs}.tar.gz
+Source22:     http://www.cpan.org/modules/by-module/Text/Text-CSV-Simple-%{V_text_csv_simple}.tar.gz
 
 #   build information
 Prefix:       %{l_prefix}
@@ -114,6 +116,7 @@ AutoReqProv:  no
     - AppConfig::Std (%{V_appconfig_std})
     - Template (%{V_template})
     - YAML (%{V_yaml})
+    - YAML::Syck (%{V_yaml_syck})
     - OGDL (%{V_ogdl})
     - Text::CSV_PP (%{V_text_csv_pp})
     - Text::CSV_XS (%{V_text_csv_xs})
@@ -195,6 +198,11 @@ AutoReqProv:  no
         url       = http://www.cpan.org/modules/by-module/YAML/
         regex     = YAML-(__VER__)\.tar\.gz
     }
+    prog perl-parse:YAML-Syck = {
+        version   = %{V_yaml_syck}
+        url       = http://www.cpan.org/modules/by-module/YAML/
+        regex     = YAML-Syck-(__VER__)\.tar\.gz
+    }
     prog perl-parse:OGDL = {
         version   = %{V_ogdl}
         url       = http://prdownloads.sourceforge.net/ogdl/
@@ -254,6 +262,7 @@ AutoReqProv:  no
     %setup -q -T -D -a 19
     %setup -q -T -D -a 20
     %setup -q -T -D -a 21
+    %setup -q -T -D -a 22
 
 %build
 
@@ -278,17 +287,18 @@ AutoReqProv:  no
         -A TT_QUIET=n -A TT_ACCEPT=y \
         configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
     ( cd ogdlutils-%{V_ogdl}/c
       %{l_cc} %{l_cflags} -c ogdlparser.c graph.c path.c ogdllog.c
       ar cr libogdl.a ogdlparser.o graph.o path.o ogdllog.o
     ) || exit $?
     %{l_prefix}/bin/perl-openpkg -d ogdlutils-%{V_ogdl}/perl configure build install
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
     %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`