Parcourir la source

add system headers

Ralf S. Engelschall il y a 24 ans
Parent
commit
a4c2488d22
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 9 1
      perl/perl.spec

+ 9 - 1
perl/perl.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [REL]
 Group:        Language
 License:      GPL/Artistic
 Version:      5.6.1
-Release:      20020604
+Release:      20020619
 
 #   list of sources
 Source0:      ftp://ftp.cpan.org/pub/CPAN/src/%{name}-%{version}.tar.gz
@@ -111,6 +111,14 @@ AutoReqProv:  no
     #   install the Perl package via standard procedure
     %{l_make} %{l_mflags} -f Makefile install
 
+    #   install Perl versions of system header files
+    ( cd /usr/include 
+      eval `$RPM_BUILD_ROOT%{l_prefix}/bin/perl -V:installsitearch`
+      echo *.h sys/*.h |\
+      xargs $RPM_BUILD_ROOT%{l_prefix}/bin/h2ph \
+          -d "$RPM_BUILD_ROOT$installsitearch"
+    )
+
     #   post-adjustments to installation tree
     rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/perl%{version}