]> git.pld-linux.org Git - packages/perl.git/blobdiff - perl.spec
enable -Duseshrplib for non sparc* arch; test release
[packages/perl.git] / perl.spec
index 844180c023dd6b1498a2081bcb348315258b749c..880de72a0a414061dfb41f96cdac1bf52cd2e30e 100644 (file)
--- a/perl.spec
+++ b/perl.spec
@@ -7,7 +7,7 @@ Summary(pl):    Practical Extraction and Report Language (Perl)
 Summary(tr):   Kabuk yorumlama dili
 Name:          perl
 Version:       5.6.0
-Release:       1
+Release:       11.1
 Epoch:         1
 License:       GPL
 Group:         Utilities/Text
@@ -126,27 +126,29 @@ EOF
 
 sh Configure \
        -des \
-       -Dcc=gcc \
+       -Dcc=%{__cc} \
        -Darchname=%{_target_platform} \
+       -Dcccdlflags='-fPIC' \
        -Dprefix=%{_prefix} \
        -Dscriptdir=%{_bindir} \
        -Dman1dir=%{_mandir}/man1 \
        -Dman3dir=%{_mandir}/man3 \
        -Dman3ext=3pm \
        -Doptimize="$RPM_OPT_FLAGS" \
-       -Duseshrplib \
        -Dusethreads \
        -Uuselargefiles \
+%ifarch sparc sparc64
+       -Ud_longdbl \
+%endif
+%ifnarch sparc sparc64
+       -Duseshrplib \
+%endif 
        -Dd_dosuid \
        -Ud_setresuid \
-       -Ud_setresgid 
-
+       -Ud_setresgid
+       
 %{__make}
 
-## Strip binaries (done now rather than at install)
-
-strip {perl,suidperl,x2p/a2p}
-
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT
@@ -197,11 +199,7 @@ mv -f .packlist.new .packlist
 find $RPM_BUILD_ROOT%{_libdir}/perl5 -name \*.ph -exec chmod 444 {} \;
 find $RPM_BUILD_ROOT%{_libdir}/perl5 -type d -exec chmod 755 {} \;
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       README Change*
-
-find $RPM_BUILD_ROOT%{_libdir}/perl5 -name \*.so \
-       -exec strip --strip-unneeded {} \;
+gzip -9nf README Change*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -225,6 +223,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/pod2latex
 %attr(755,root,root) %{_bindir}/pod2man
 %attr(755,root,root) %{_bindir}/pod2text
+%attr(755,root,root) %{_bindir}/podselect
 %attr(755,root,root) %{_bindir}/pstruct
 %attr(755,root,root) %{_bindir}/s2p
 %attr(755,root,root) %{_bindir}/splain
This page took 0.256123 seconds and 4 git commands to generate.