%define perlver 5.005
-%define perlrel 03
+%define perlrel 61
%define perlthread -thread
Summary: Practical Extraction and Report Language
Summary(tr): Kabuk yorumlama dili
Name: perl
Version: %{perlver}_%{perlrel}
-Release: 4
+Release: 1
Copyright: GPL
Group: Utilities/Text
Group(pl): Narzêdzia/Tekst
Source: ftp://ftp.perl.org/pub/perl/CPAN/src/5.0/%{name}%{version}.tar.gz
Patch0: perl-noroot_install.patch
+Patch1: perl-DESTDIR.patch
URL: http://www.perl.org/
Requires: csh
Buildroot: /tmp/%{name}-%{version}-root
vardýr. Perl, güzel (ufak, zarif, minimum) olmaktan çok, pratik olmaya
yönelik (kullanýmý kolay, verimli, eksiksiz) olarak tasarlanmýþtýr.
-%package -n sperl
+%package -n sperl
Summary: Practical Extraction and Report Language (SUID root binary)
Summary(pl): Practical Extraction and Report Language (SUID root binaria)
Group: Utilities/Text
%prep
%setup -q -n %{name}%{version}
%patch0 -p1
+%patch1 -p1
%build
# this is gross
cat > config.over <<EOF
-installprefix=$RPM_BUILD_ROOT/usr
+installprefix=$RPM_BUILD_ROOT%{_prefix}
test -d \$installprefix || mkdir \$installprefix
test -d \$installprefix/bin || mkdir \$installprefix/bin
installarchlib=\`echo \$installarchlib | sed "s!\$prefix!\$installprefix!"\`
sh Configure \
-des \
- -Darchname=%{_target} \
- -Dprefix=/usr \
+ -Dcc=gcc \
+ -Darchname=%{_target_platform} \
+ -Dprefix=%{_prefix} \
-Dman1dir=%{_mandir}/man1 \
-Dman3dir=%{_mandir}/man3 \
-Dman3ext=3pm \
make install
install utils/pl2pm $RPM_BUILD_ROOT%{_bindir}/pl2pm
-#LD_LIBRARY_PATH=%{_builddir}/%{name}%{perlver}_%{perlrel}: $RPM_BUILD_ROOT%{_bindir}/perl
-
(cd %{_includedir} ;
+LD_LIBRARY_PATH="%{_builddir}/%{name}%{perlver}_%{perlrel}" \
PERL5LIB=$RPM_BUILD_ROOT%{_libdir}/perl5 $RPM_BUILD_ROOT%{_bindir}/perl \
-$RPM_BUILD_ROOT%{_libdir}/perl5/%{perlver}%{perlrel}/%{_target}%{perlthread} \
+$RPM_BUILD_ROOT%{_libdir}/perl5/%{perlver}%{perlrel}/%{_target_platform}%{perlthread} \
$RPM_BUILD_ROOT%{_bindir}/h2ph \
--d $RPM_BUILD_ROOT%{_libdir}/perl5/%{_target}/%{perlver}%{perlrel}/ \
+-d $RPM_BUILD_ROOT%{_libdir}/perl5/%{_target_platform}/%{perlver}%{perlrel}/ \
*.h sys/*.h linux/*.h asm/*.h net/*.h netinet/*.h arpa/*.h )
-( cd $RPM_BUILD_ROOT%{_libdir}/perl5/%{perlver}%{perlrel}/%{_target}%{perlthread}/
+( cd $RPM_BUILD_ROOT%{_libdir}/perl5/%{perlver}%{perlrel}/%{_target_platform}%{perlthread}/
mv .packlist .packlist.old
sed "s|$RPM_BUILD_ROOT||g" < .packlist.old > .packlist
%attr(755,root,root) %{_bindir}/a2p
%attr(755,root,root) %{_bindir}/c2ph
+%attr(755,root,root) %{_bindir}/dprofpp
%attr(755,root,root) %{_bindir}/find2perl
%attr(755,root,root) %{_bindir}/h2ph
%attr(755,root,root) %{_bindir}/h2xs
%attr(755,root,root) %{_bindir}/pod2latex
%attr(755,root,root) %{_bindir}/pod2man
%attr(755,root,root) %{_bindir}/pod2text
+%attr(755,root,root) %{_bindir}/pod2usage
+%attr(755,root,root) %{_bindir}/podchecker
+%attr(755,root,root) %{_bindir}/podselect
%attr(755,root,root) %{_bindir}/pstruct
%attr(755,root,root) %{_bindir}/s2p
%attr(755,root,root) %{_bindir}/splain
%dir %{_libdir}/perl5
%attr( - ,root,root) %{_libdir}/perl5/*
+%dir %{_libdir}/site_perl
+%attr( - ,root,root) %{_libdir}/site_perl/*
%{_mandir}/man[13]/*
%files -n sperl
%attr(4755,root,root) %{_bindir}/sperl%{perlver}%{perlrel}
%attr(4755,root,root) %{_bindir}/suidperl
-
-%changelog
-* Sun May 9 1999 Piotr Czerwiñski <pius@pld.org.pl>
- [5.005_03-4]
-- FHS 2.0 compliant changes.
-
-* Tue Apr 20 1999 Artur Frysiak <wiget@pld.org.pl>
- [5.005_03-2]
-- updated to 5.005_03
-- changed source URL
-- added -Dman3dir=%{_mandir}/man3 -Dman3ext=3pm -Duseshrplib to Configure
-- corrected .packlist
-- changed --strip-debug to --strip-unneeded
-- gzipped %doc (instead bzipping2)
-- commpiled on rpm 3
-
-* Mon Oct 26 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [5.005_02-2]
-- added using $RPM_OPT_FLAGS during compile,
-- added stripping modules,
-- added URL,
-- added sperl subpackage with suid perl binaries.
-
-* Tue Sep 15 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [5.005_02-1]
-- updated to 5.005_02
- (based on Ian Macdonald <ianmacd@xs4all.nl> spec files),
-- install -d instead mkdir -p,
-- added %defattr, but It's still unable to build from non root's account,
-- man3 subdirectory moved to %{_mandir}/man3,
-- minor modifications of spec file.
-
-* Mon Jun 15 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [5.005_01-1]
-- added pl translation,
-- moved %changelog to end of spec,
-- removed all old patches.
-- start at RH spec file.