소스 검색

add system headers

Ralf S. Engelschall 24 년 전
부모
커밋
a4c2488d22
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  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}