| 1 |
|
|---|
| 2 | %define perl_version 5.10.0
|
|---|
| 3 | %define perl_epoch 0
|
|---|
| 4 |
|
|---|
| 5 | Name: perl
|
|---|
| 6 | Version: %{perl_version}
|
|---|
| 7 | Release: 3%{?dist}
|
|---|
| 8 | Epoch: %{perl_epoch}
|
|---|
| 9 | Summary: The Perl programming language
|
|---|
| 10 | Group: Development/Languages
|
|---|
| 11 | # Modules Tie::File and Getopt::Long are licenced under "GPLv2+ or Artistic,"
|
|---|
| 12 | # we have to reflect that in the sub-package containing them.
|
|---|
| 13 | # FIXME: Digest::MD5 has a must-advertise-RSA license with an exception,
|
|---|
| 14 | # the tag does not reflect that (yet).
|
|---|
| 15 | License: (GPL+ or Artistic) and (GPLv2+ or Artistic)
|
|---|
| 16 | Url: http://www.perl.org/
|
|---|
| 17 | Source0: perl.zip
|
|---|
| 18 |
|
|---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{perl_version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 20 | #BuildRequires: tcsh, dos2unix, man, groff
|
|---|
| 21 | #BuildRequires: gdbm-devel, db4-devel
|
|---|
| 22 |
|
|---|
| 23 | %description
|
|---|
| 24 | Perl is a high-level programming language with roots in C, sed, awk
|
|---|
| 25 | and shell scripting. Perl is good at handling processes and files,
|
|---|
| 26 | and is especially good at handling text. Perl's hallmarks are
|
|---|
| 27 | practicality and efficiency. While it is used to do a lot of
|
|---|
| 28 | different things, Perl's most common applications are system
|
|---|
| 29 | administration utilities and web programming. A large proportion of
|
|---|
| 30 | the CGI scripts on the web are written in Perl. You need the perl
|
|---|
| 31 | package installed on your system so that your system can handle Perl
|
|---|
| 32 | scripts.
|
|---|
| 33 |
|
|---|
| 34 | Install this package if you want to program in Perl or enable your
|
|---|
| 35 | system to handle Perl scripts.
|
|---|
| 36 |
|
|---|
| 37 | %prep
|
|---|
| 38 | %setup -q -n %{name}-%{perl_version}
|
|---|
| 39 |
|
|---|
| 40 | %build
|
|---|
| 41 |
|
|---|
| 42 | %install
|
|---|
| 43 | rm -rf %{buildroot}
|
|---|
| 44 | mkdir -p %{buildroot}%{_bindir}
|
|---|
| 45 |
|
|---|
| 46 | cp -p usr/bin/perl %{buildroot}%{_bindir}
|
|---|
| 47 |
|
|---|
| 48 | %clean
|
|---|
| 49 | rm -rf %{buildroot}
|
|---|
| 50 |
|
|---|
| 51 | %files
|
|---|
| 52 | %defattr(-,root,root)
|
|---|
| 53 | %{_bindir}/perl
|
|---|