- added -Dcccdlflags='-fPIC',
- use -Dcc=%%{__cc} instead directly -Dcc=gcc (potentialy this allow build
perl on axp using ccc),
- removed -Duseshrplib (this disallow compile perl on sparc),
- use conditionaly on sparc -Ud_longdbl,
- added using new rpm automation.
Changed files:
perl.spec -> 1.61
Summary(tr): Kabuk yorumlama dili
Name: perl
Version: 5.6.0
Summary(tr): Kabuk yorumlama dili
Name: perl
Version: 5.6.0
Epoch: 1
License: GPL
Group: Utilities/Text
Epoch: 1
License: GPL
Group: Utilities/Text
-Darchname=%{_target_platform} \
-Darchname=%{_target_platform} \
-Dprefix=%{_prefix} \
-Dscriptdir=%{_bindir} \
-Dman1dir=%{_mandir}/man1 \
-Dman3dir=%{_mandir}/man3 \
-Dman3ext=3pm \
-Doptimize="$RPM_OPT_FLAGS" \
-Dprefix=%{_prefix} \
-Dscriptdir=%{_bindir} \
-Dman1dir=%{_mandir}/man1 \
-Dman3dir=%{_mandir}/man3 \
-Dman3ext=3pm \
-Doptimize="$RPM_OPT_FLAGS" \
-Dusethreads \
-Uuselargefiles \
-Dusethreads \
-Uuselargefiles \
- -Dd_dosuid \
- -Ud_setresuid \
- -Ud_setresgid
+%ifarch sparc sparc64
+ -Ud_longdbl \
+%endif
+ -Dd_dosuid
-## Strip binaries (done now rather than at install)
-
-strip {perl,suidperl,x2p/a2p}
-
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT
find $RPM_BUILD_ROOT%{_libdir}/perl5 -name \*.ph -exec chmod 444 {} \;
find $RPM_BUILD_ROOT%{_libdir}/perl5 -type d -exec chmod 755 {} \;
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
%clean
rm -rf $RPM_BUILD_ROOT