Ralf S. Engelschall 21 éve
szülő
commit
71cfa0e91a
1 módosított fájl, 15 hozzáadás és 1 törlés
  1. 15 1
      perl-parse/perl-parse.spec

+ 15 - 1
perl-parse/perl-parse.spec

@@ -40,6 +40,7 @@
 %define       V_appconfig_std             1.07
 %define       V_template                  2.14
 %define       V_yaml                      0.35
+%define       V_ogdl                      20041124
 
 #   package information
 Name:         perl-parse
@@ -52,7 +53,7 @@ Class:        BASE
 Group:        Language
 License:      GPL/Artistic
 Version:      %{V_perl}
-Release:      20041107
+Release:      20041126
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/Config/Config-IniFiles-%{V_config_inifiles}.tar.gz
@@ -70,6 +71,7 @@ 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
 
 #   build information
 Prefix:       %{l_prefix}
@@ -96,6 +98,7 @@ AutoReqProv:  no
     - AppConfig::Std (%{V_appconfig_std})
     - Template (%{V_template})
     - YAML (%{V_yaml})
+    - OGDL (%{V_ogdl})
 
 %track
     prog perl-parse:Config-General = {
@@ -173,6 +176,11 @@ AutoReqProv:  no
         url       = http://www.cpan.org/modules/by-module/YAML/
         regex     = YAML-(__VER__)\.tar\.gz
     }
+    prog perl-parse:OGDL = {
+        version   = %{V_ogdl}
+        url       = http://prdownloads.sourceforge.net/ogdl/
+        regex     = ogdltools-(__VER__)\.tgz
+    }
 
 %prep
     %setup -q -c
@@ -190,6 +198,7 @@ AutoReqProv:  no
     %setup -q -T -D -a 12
     %setup -q -T -D -a 13
     %setup -q -T -D -a 14
+    %setup -q -T -D -a 15
 
 %build
 
@@ -214,6 +223,11 @@ AutoReqProv:  no
         -A TT_QUIET=n -A TT_ACCEPT=y \
         configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} 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 -F perl-openpkg-files fixate cleanup
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`