info:perl.spec -devel (pierwsza przymiarka)
Wojtek Slusarczyk
wojtek w SHADOW.EU.ORG
Śro, 16 Wrz 1998, 13:28:38 CEST
Hej,
Pierwsza przymiarka do perla... Wcia nie mozna go wygenerowac z
konta usera ...
Summary: Practical Extraction and Report Language
Summary(pl): Practical Extraction and Report Language (Perl)
Name: perl
%define perlver 5.005
%define perlrel 02
%define perlthread -thread
Version: %{perlver}_%{perlrel}
Release: 1d
Copyright: GPL
Group: Utilities/Text
Source: ftp://ftp.funet.fi/pub/languages/perl/CPAN/src/5.0/%{name}%{version}.tar.gz
Requires: csh
Buildroot: /var/tmp/%{name}-%{version}-%{release}-root
Summary(de): Praktische Extraktions- und Berichtsprache
Summary(fr): Practical Extraction and Report Language (Perl)
Summary(tr): Kabuk yorumlama dili
%description
Perl is an interpreted language optimized for scanning arbitrary text
files, extracting information from those text files, and printing reports
based on that information. It's also a good language for many system
management tasks. The language is intended to be practical (easy to use,
efficient, complete) rather than beautiful (tiny, elegant, minimal).
This version has support for threads compiled in.
%description -l pl
Perl jest językiem przeznaczonym do skanowania plików tekstowych, wyciągania
z nich informacji i drukowania raportu bazującego na tych informacjach. Jest
również doskonałym językiem dla wielu narzędzi do nadzoru systemu. Język ten
jest w zamierzeniu praktycznym (łatwym w użyciu, efektywnym, kompletnym)
bardziej niż piękny ;) (skromny, elegancki, minimalny).
%description -l de
Perl ist eine Interpreter-Sprache, die zum Durchsuchen beliebiger Text-
dateien, Extrahieren von Informationen aus diesen Dateien und Drucken von
auf diesen Informationen basierenden Berichten optimiert ist. Die Sprache
eignet sich außerdem für viele Systemverwaltungsaufgaben. Sie ist eher
praktisch (einfache Anwendung,effizient, vollständig) als schön (winzig,
elegant, minimal).
%description -l fr
Perl est un langage interprété, optimisé pour filtrer des fichiers texte,
extraire des informations de ces fichiers, et imprimer des rapports basés
sur ces informations. C'est aussi un bon langage pour de nombreuses procédures
de gestion systčme. Ce langage se veut pratique (simple ŕ utiliser, efficace,
complet) autant qu'agréable (conscrit, élégant, minimal).
%description -l tr
Perl, metin dosyalarýný taramak, bu metin dosyalarýndan bilgi çýkarmak ve
bu bilgiye dayalý raporlar hazýrlamak icin geliţtirilmiţ bir yorumlamalý
dildir. Ayrýca pek çok sistem yönetimi görevleri için de yararlý yetenekleri
vardýr. Perl, güzel (ufak, zarif, minimum) olmaktan çok, pratik olmaya
yönelik (kullanýmý kolay, verimli, eksiksiz) olarak tasarlanmýţtýr.
%prep
%setup -q -n %{name}%{version}
%build
# this is gross
cat > config.over <<EOF
installprefix=$RPM_BUILD_ROOT/usr
test -d \$installprefix || mkdir \$installprefix
test -d \$installprefix/bin || mkdir \$installprefix/bin
installarchlib=\`echo \$installarchlib | sed "s!\$prefix!\$installprefix!"\`
installbin=\`echo \$installbin | sed "s!\$prefix!\$installprefix!"\`
installman1dir=\`echo \$installman1dir | sed "s!\$prefix!\$installprefix!"\`
installman3dir=\`echo \$installman3dir | sed "s!\$prefix!\$installprefix!"\`
installprivlib=\`echo \$installprivlib | sed "s!\$prefix!\$installprefix!"\`
installscript=\`echo \$installscript | sed "s!\$prefix!\$installprefix!"\`
installsitelib=\`echo \$installsitelib | sed "s!\$prefix!\$installprefix!"\`
installsitearch=\`echo \$installsitearch | sed "s!\$prefix!\$installprefix!"\`
EOF
sh Configure -des -Dprefix=/usr -Darchname=${RPM_ARCH}-linux -Dd_dosuid \
-Ud_setresuid -Ud_setresgid -Dusethreads
make
# Strip binaries (done now rather than at install)
strip perl
strip suidperl
strip x2p/a2p
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT
make install
install utils/pl2pm $RPM_BUILD_ROOT/usr/bin/pl2pm
(cd /usr/include ;
PERL5LIB=$RPM_BUILD_ROOT/usr/lib/perl5 $RPM_BUILD_ROOT/usr/bin/perl $RPM_BUILD_ROOT/usr/lib/perl5/%{perlver}%{perlrel}/${RPM_ARCH}-linux%{perlthread} \
$RPM_BUILD_ROOT/usr/bin/h2ph \
-d $RPM_BUILD_ROOT/usr/lib/perl5/${RPM_ARCH}-linux/%{perlver}%{perlrel}/ \
*.h sys/*.h linux/*.h asm/*.h net/*.h netinet/*.h arpa/*.h
)
cd $RPM_BUILD_ROOT/usr/lib/perl5/%{perlver}%{perlrel}/${RPM_ARCH}-linux%{perlthread}/
mv Config.pm Config.pm.old
sed "s|$RPM_BUILD_ROOT||" < Config.pm.old > Config.pm
rm -f Config.pm.old
cd $RPM_BUILD_ROOT/usr/bin
ln -sf suidperl sperl5.00502
ln -sf perl perl5.00502
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644, root, root, 755)
%doc INSTALL
%attr(0711, root, root) /usr/bin/a2p
%attr(0711, root, root) /usr/bin/c2ph
%attr(0755, root, root) /usr/bin/find2perl
%attr(0755, root, root) /usr/bin/h2ph
%attr(0755, root, root) /usr/bin/h2xs
%attr(0711, root, root) /usr/bin/perl
%attr(-, root, root) /usr/bin/perl5.00502
%attr(0755, root, root) /usr/bin/perlbug
%attr(0755, root, root) /usr/bin/perlcc
%attr(0755, root, root) /usr/bin/perldoc
%attr(0755, root, root) /usr/bin/pl2pm
%attr(0755, root, root) /usr/bin/pod2html
%attr(0755, root, root) /usr/bin/pod2latex
%attr(0755, root, root) /usr/bin/pod2man
%attr(0755, root, root) /usr/bin/pod2text
%attr(0755, root, root) /usr/bin/pstruct
%attr(0755, root, root) /usr/bin/s2p
%attr(-, root, root) /usr/bin/sperl5.00502
%attr(4710, root, root) /usr/bin/suidperl
%attr(755, root, root) /usr/bin/splain
/usr/lib/perl5/*
%attr(0644, root, man) /usr/man/man1/*
%changelog
* Tue Sep 15 1998 Wojtek Ślusarczyk <wojtek w shadow.eu.org>
[5.005_02-1d]
- updated to 5.005_02
(based on Ian Macdonald <ianmacd w xs4all.nl> spec files),
- restricted files permission,
- install -d instead mkdir -p,
- added %defattr, but It's still unable to build from non root's account,
- removed sperl-5.00502, perl-5.00502 and made symlinks.
- minor modifications of spec file.
* Mon Jun 15 1998 Wojtek Ślusarczyk <wojtek w shadow.eu.org>
[5.005_01-1d]
- updated to perl-5.005_01,
- translation modified for pl,
- moved %changelog to end of spec,
- removed all old patches.
* Mon Jun 15 1998 Wojtek Ślusarczyk <wojtek w shadow.eu.org>
[5.004-8]
- build against glibc-2.1,
- added a glibc-2.1.patch
(prepared by Andrzej Nakonieczny <dzemik w shadow.eu.org>).
* Fri May 08 1998 Cristian Gafton <gafton w redhat.com>
- added a patch to correct the .ph constructs unless defined (foo) to read
unless(defined(foo))
* Thu May 07 1998 Prospector System <bugs w redhat.com>
- translations modified for de, fr, tr
* Tue Mar 10 1998 Cristian Gafton <gafton w redhat.com>
- fixed strftime problem
* Sun Mar 08 1998 Cristian Gafton <gafton w redhat.com>
- added a patch to fix a security race
- do not use setres[ug]id - those are not implemented on 2.0.3x kernels
* Mon Mar 02 1998 Cristian Gafton <gafton w redhat.com>
- upgraded to 5.004_04 - 5.004_01 had some nasty memory leaks.
- fixed the spec file to be version-independent
* Fri Dec 05 1997 Erik Troan <ewt w redhat.com>
- Config.pm wasn't right do to the builtrooting
* Mon Oct 20 1997 Erik Troan <ewt w redhat.com>
- fixed arch-specfic part of spec file
* Sun Oct 19 1997 Erik Troan <ewt w redhat.com>
- updated to perl 5.004_01
- users a build root
* Thu Jun 12 1997 Erik Troan <ewt w redhat.com>
- built against glibc
* Tue Apr 22 1997 Erik Troan <ewt w redhat.com>
- Incorporated security patch from Chip Salzenberg <salzench w nielsenmedia.com>
* Fri Feb 07 1997 Erik Troan <ewt w redhat.com>
1) Use -Darchname=i386-linux
2) Require csh (for glob)
3) Use RPM_ARCH during configuration and installation for arch independence
Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu
Więcej informacji o liście dyskusyjnej pld-devel-pl