For vendor is used macro, same as in rpm macros for perl vendor.

- macro for vendor
- descriptions align into blocks
This commit is contained in:
Marcela Mašláňová 2010-09-27 13:50:34 +02:00
parent 66a8843572
commit acb6d7fcc3

189
perl.spec
View File

@ -162,18 +162,17 @@ Requires(post): perl-libs
%description %description
Perl is a high-level programming language with roots in C, sed, awk Perl is a high-level programming language with roots in C, sed, awk and shell
and shell scripting. Perl is good at handling processes and files, scripting. Perl is good at handling processes and files, and is especially
and is especially good at handling text. Perl's hallmarks are good at handling text. Perl's hallmarks are practicality and efficiency.
practicality and efficiency. While it is used to do a lot of While it is used to do a lot of different things, Perl's most common
different things, Perl's most common applications are system applications are system administration utilities and web programming. A large
administration utilities and web programming. A large proportion of proportion of the CGI scripts on the web are written in Perl. You need the
the CGI scripts on the web are written in Perl. You need the perl perl package installed on your system so that your system can handle Perl
package installed on your system so that your system can handle Perl
scripts. scripts.
Install this package if you want to program in Perl or enable your Install this package if you want to program in Perl or enable your system to
system to handle Perl scripts. handle Perl scripts.
%package libs %package libs
Summary: The libraries for the perl runtime Summary: The libraries for the perl runtime
@ -237,11 +236,11 @@ Requires: perl(Compress::Zlib), perl(IO::Zlib)
BuildArch: noarch BuildArch: noarch
%description Archive-Tar %description Archive-Tar
Archive::Tar provides an object oriented mechanism for handling tar Archive::Tar provides an object oriented mechanism for handling tar files. It
files. It provides class methods for quick and easy files handling provides class methods for quick and easy files handling while also allowing
while also allowing for the creation of tar file objects for custom for the creation of tar file objects for custom manipulation. If you have the
manipulation. If you have the IO::Zlib module installed, Archive::Tar IO::Zlib module installed, Archive::Tar will also support compressed or
will also support compressed or gzipped tar files. gzipped tar files.
%package Compress-Raw-Zlib %package Compress-Raw-Zlib
@ -323,9 +322,8 @@ BuildArch: noarch
%description ExtUtils-CBuilder %description ExtUtils-CBuilder
This module can build the C portions of Perl modules by invoking the This module can build the C portions of Perl modules by invoking the
appropriate compilers and linkers in a cross-platform manner. It was appropriate compilers and linkers in a cross-platform manner. It was motivated
motivated by the Module::Build project, but may be useful for other by the Module::Build project, but may be useful for other purposes as well.
purposes as well.
%package ExtUtils-Embed %package ExtUtils-Embed
@ -369,9 +367,9 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description ExtUtils-ParseXS %description ExtUtils-ParseXS
ExtUtils::ParseXS will compile XS code into C code by embedding the ExtUtils::ParseXS will compile XS code into C code by embedding the constructs
constructs necessary to let C functions manipulate Perl values and necessary to let C functions manipulate Perl values and creates the glue
creates the glue necessary to let Perl access those functions. necessary to let Perl access those functions.
%package File-Fetch %package File-Fetch
@ -401,10 +399,9 @@ Obsoletes: perl-Compress-Zlib <= 2.020
Provides: perl(IO::Uncompress::Bunzip2) Provides: perl(IO::Uncompress::Bunzip2)
%description IO-Compress %description IO-Compress
This module is the base class for all IO::Compress and IO::Uncompress This module is the base class for all IO::Compress and IO::Uncompress modules.
modules. This module is not intended for direct use in application This module is not intended for direct use in application code. Its sole
code. Its sole purpose is to to be sub-classed by IO::Compress purpose is to to be sub-classed by IO::Compress modules.
modules.
%package IO-Zlib %package IO-Zlib
@ -419,10 +416,10 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description IO-Zlib %description IO-Zlib
This modules provides an IO:: style interface to the Compress::Zlib This modules provides an IO:: style interface to the Compress::Zlib package.
package. The main advantage is that you can use an IO::Zlib object in The main advantage is that you can use an IO::Zlib object in much the same way
much the same way as an IO::File object so you can have common code as an IO::File object so you can have common code that doesn't know which sort
that doesn't know which sort of file it is using. of file it is using.
%package IPC-Cmd %package IPC-Cmd
@ -436,8 +433,8 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description IPC-Cmd %description IPC-Cmd
IPC::Cmd allows you to run commands, interactively if desired, in a IPC::Cmd allows you to run commands, interactively if desired, in a platform
platform independent way, but have them still work. independent way, but have them still work.
%package Locale-Maketext-Simple %package Locale-Maketext-Simple
@ -468,12 +465,12 @@ Provides: perl(Log::Message::Handlers) = %{version}
BuildArch: noarch BuildArch: noarch
%description Log-Message %description Log-Message
Log::Message is a generic message storage mechanism. It allows you to Log::Message is a generic message storage mechanism. It allows you to store
store messages on a stack -- either shared or private -- and assign meta-data messages on a stack -- either shared or private -- and assign meta-data to it.
to it. Some meta-data will automatically be added for you, like a timestamp Some meta-data will automatically be added for you, like a timestamp and a
and a stack trace, but some can be filled in by the user, like a tag by stack trace, but some can be filled in by the user, like a tag by which to
which to identify it or group it, and a level at which to handle the identify it or group it, and a level at which to handle the message (for
message (for example, log it, or die with it). example, log it, or die with it).
%package Log-Message-Simple %package Log-Message-Simple
@ -504,15 +501,15 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description Module-Build %description Module-Build
Module::Build is a system for building, testing, and installing Perl Module::Build is a system for building, testing, and installing Perl modules.
modules. It is meant to be an alternative to ExtUtils::MakeMaker. It is meant to be an alternative to ExtUtils::MakeMaker. Developers may alter
Developers may alter the behavior of the module through subclassing in a the behavior of the module through subclassing in a much more straightforward
much more straightforward way than with MakeMaker. It also does not way than with MakeMaker. It also does not require a make on your system - most
require a make on your system - most of the Module::Build code is pure-perl and of the Module::Build code is pure-perl and written in a very cross-platform
written in a very cross-platform way. In fact, you don't even need a way. In fact, you don't even need a shell, so even platforms like MacOS
shell, so even platforms like MacOS (traditional) can use it fairly easily. Its (traditional) can use it fairly easily. Its only prerequisites are modules that
only prerequisites are modules that are included with perl 5.6.0, and it are included with perl 5.6.0, and it works fine on perl 5.005 if you can
works fine on perl 5.005 if you can install a few additional modules. install a few additional modules.
%package Module-CoreList %package Module-CoreList
@ -526,9 +523,9 @@ Requires: perl(version)
BuildArch: noarch BuildArch: noarch
%description Module-CoreList %description Module-CoreList
Module::CoreList contains the hash of hashes %Module::CoreList::version, Module::CoreList contains the hash of hashes %Module::CoreList::version, this
this is keyed on perl version as indicated in $]. The second level hash is keyed on perl version as indicated in $]. The second level hash is module
is module => version pairs. => version pairs.
%package Module-Load %package Module-Load
@ -542,8 +539,8 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description Module-Load %description Module-Load
Module::Load eliminates the need to know whether you are trying to Module::Load eliminates the need to know whether you are trying to require
require either a file or a module. either a file or a module.
%package Module-Load-Conditional %package Module-Load-Conditional
@ -556,9 +553,8 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description Module-Load-Conditional %description Module-Load-Conditional
Module::Load::Conditional provides simple ways to query and possibly Module::Load::Conditional provides simple ways to query and possibly load any
load of the modules you have installed on your system during runtime.
any of the modules you have installed on your system during runtime.
%package Module-Loaded %package Module-Loaded
@ -574,10 +570,9 @@ BuildArch: noarch
%description Module-Loaded %description Module-Loaded
When testing applications, often you find yourself needing to provide When testing applications, often you find yourself needing to provide
functionality in your test environment that would usually be provided by functionality in your test environment that would usually be provided by
external modules. Rather than munging the %INC by hand to mark these external modules. Rather than munging the %INC by hand to mark these external
external modules as loaded, so they are not attempted to be loaded by modules as loaded, so they are not attempted to be loaded by perl, this module
perl, this module offers you a very simple way to mark modules as loaded offers you a very simple way to mark modules as loaded and/or unloaded.
and/or unloaded.
%package Module-Pluggable %package Module-Pluggable
@ -591,8 +586,8 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description Module-Pluggable %description Module-Pluggable
Provides a simple but, hopefully, extensible way of having 'plugins' for Provides a simple but, hopefully, extensible way of having 'plugins' for your
your module. module.
%package Object-Accessor %package Object-Accessor
@ -606,9 +601,8 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description Object-Accessor %description Object-Accessor
Object::Accessor provides an interface to create per object accessors Object::Accessor provides an interface to create per object accessors (as
(as opposed to per Class accessors, as, for example, Class::Accessor opposed to per Class accessors, as, for example, Class::Accessor provides).
provides).
%package Package-Constants %package Package-Constants
@ -622,9 +616,9 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description Package-Constants %description Package-Constants
Package::Constants lists all the constants defined in a certain package. Package::Constants lists all the constants defined in a certain package. This
This can be useful for, among others, setting up an autogenerated can be useful for, among others, setting up an autogenerated @EXPORT/@EXPORT_OK
@EXPORT/@EXPORT_OK for a Constants.pm file. for a Constants.pm file.
%package Params-Check %package Params-Check
@ -654,8 +648,8 @@ BuildArch: noarch
Obsoletes: perl-Parse-CPAN-Meta < 1.40 Obsoletes: perl-Parse-CPAN-Meta < 1.40
%description Parse-CPAN-Meta %description Parse-CPAN-Meta
Parse::CPAN::Meta is a parser for META.yml files, based on the parser half Parse::CPAN::Meta is a parser for META.yml files, based on the parser half of
of YAML::Tiny. YAML::Tiny.
%package Pod-Escapes %package Pod-Escapes
@ -669,9 +663,8 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description Pod-Escapes %description Pod-Escapes
This module provides things that are useful in decoding Pod E<...> This module provides things that are useful in decoding Pod E<...> sequences.
sequences. Presumably, it should be used only by Pod parsers and/or Presumably, it should be used only by Pod parsers and/or formatters.
formatters.
%package Pod-Simple %package Pod-Simple
@ -701,9 +694,9 @@ Requires: perl(Log::Message::Simple)
BuildArch: noarch BuildArch: noarch
%description Term-UI %description Term-UI
Term::UI is a transparent way of eliminating the overhead of having to Term::UI is a transparent way of eliminating the overhead of having to format
format a question and then validate the reply, informing the user if the a question and then validate the reply, informing the user if the answer was not
answer was not proper and re-issuing the question. proper and re-issuing the question.
%package Test-Harness %package Test-Harness
@ -747,9 +740,9 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
%description Time-Piece %description Time-Piece
The Time::Piece module replaces the standard localtime and gmtime functions The Time::Piece module replaces the standard localtime and gmtime functions
with implementations that return objects. It does so in a backwards with implementations that return objects. It does so in a backwards compatible
compatible manner, so that using localtime or gmtime as documented in manner, so that using localtime or gmtime as documented in perlfunc still
perlfunc still behave as expected. behave as expected.
%package parent %package parent
@ -763,9 +756,8 @@ Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
BuildArch: noarch BuildArch: noarch
%description parent %description parent
parent allows you to both load one or more modules, while setting up parent allows you to both load one or more modules, while setting up
inheritance from those modules at the same time. Mostly similar in inheritance from those modules at the same time. Mostly similar in effect to:
effect to:
package Baz; package Baz;
@ -785,12 +777,12 @@ Version: 1.32
Requires: perl = %{perl_epoch}:%{perl_version}-%{release} Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
%description threads-shared %description threads-shared
By default, variables are private to each thread, and each newly created thread By default, variables are private to each thread, and each newly created thread
gets a private copy of each existing variable. This module allows you to share gets a private copy of each existing variable. This module allows you to share
variables across different threads (and pseudo-forks on Win32). It is used together variables across different threads (and pseudo-forks on Win32). It is used
with the threads module. together with the threads module. This module supports the sharing of the
This module supports the sharing of the following data types only: scalars and following data types only: scalars and scalar refs, arrays and array refs, and
scalar refs, arrays and array refs, and hashes and hash refs. hashes and hash refs.
%package version %package version
@ -833,8 +825,8 @@ Requires: perl-Test-Harness, perl-Test-Simple, perl-Time-Piece, perl-versi
Requires: perl-threads-shared, perl-parent, perl-Parse-CPAN-Meta Requires: perl-threads-shared, perl-parent, perl-Parse-CPAN-Meta
%description core %description core
A metapackage which requires all of the perl bits and modules in the A metapackage which requires all of the perl bits and modules in the upstream
upstream tarball from perl.org. tarball from perl.org.
%prep %prep
@ -924,6 +916,9 @@ echo "RPM Build arch: %{_arch}"
%define privlib %{_prefix}/share/perl5 %define privlib %{_prefix}/share/perl5
%define archlib %{_libdir}/perl5 %define archlib %{_libdir}/perl5
%define perl_vendorlib %{privlib}/vendor_perl
%define perl_vendorarch %{archlib}/vendor_perl
/bin/sh Configure -des -Doptimize="$RPM_OPT_FLAGS" \ /bin/sh Configure -des -Doptimize="$RPM_OPT_FLAGS" \
-Dccdlflags="-Wl,--enable-new-dtags" \ -Dccdlflags="-Wl,--enable-new-dtags" \
-DDEBUGGING=-g \ -DDEBUGGING=-g \
@ -938,9 +933,9 @@ echo "RPM Build arch: %{_arch}"
-Dsitelib="%{_prefix}/local/share/perl5" \ -Dsitelib="%{_prefix}/local/share/perl5" \
-Dsitearch="%{_prefix}/local/%{_lib}/perl5" \ -Dsitearch="%{_prefix}/local/%{_lib}/perl5" \
-Dprivlib="%{privlib}" \ -Dprivlib="%{privlib}" \
-Dvendorlib="%{privlib}/vendor_perl" \ -Dvendorlib="%{perl_vendorlib}" \
-Darchlib="%{archlib}" \ -Darchlib="%{archlib}" \
-Dvendorarch="%{archlib}/vendor_perl" \ -Dvendorarch="%{perl_vendorarch}" \
-Darchname=%{perl_archname} \ -Darchname=%{perl_archname} \
%ifarch %{multilib_64_archs} %ifarch %{multilib_64_archs}
-Dlibpth="/usr/local/lib64 /lib64 %{_prefix}/lib64" \ -Dlibpth="/usr/local/lib64 /lib64 %{_prefix}/lib64" \
@ -1003,8 +998,8 @@ do
done done
# vendor directories (in this case for third party rpms) # vendor directories (in this case for third party rpms)
mkdir -p $RPM_BUILD_ROOT%{archlib}/vendor_perl mkdir -p $RPM_BUILD_ROOT%{perl_vendorarch}
mkdir -p $RPM_BUILD_ROOT%{privlib}/vendor_perl mkdir -p $RPM_BUILD_ROOT%{perl_vendorlib}
# #
# libnet configuration file # libnet configuration file
@ -1079,8 +1074,8 @@ for dir in `find ext/ -type d -name t -maxdepth 2` ; do
done done
# remove files used only during build process from rpm # remove files used only during build process from rpm
rm -rf $RPM_BUILD_ROOT/%{_vendorlib}/Unicode/Collate/allkeys.txt rm -rf $RPM_BUILD_ROOT/%{privlib}/Unicode/Collate/allkeys.txt
rm -rf $RPM_BUILD_ROOT/%{_vendorlib}/unicore/*.txt rm -rf $RPM_BUILD_ROOT/%{privlib}/unicore/*.txt
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -1107,13 +1102,13 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/* %{_bindir}/*
%{privlib} %{privlib}
%{archlib} %{archlib}
%{privlib}/vendor_perl %{perl_vendorlib}
%{_prefix}/local/share/perl5 %{_prefix}/local/share/perl5
# libs # libs
%exclude %{archlib}/CORE/libperl.so %exclude %{archlib}/CORE/libperl.so
%exclude %{archlib}/vendor_perl %exclude %{perl_vendorarch}
# devel # devel
%exclude %{_bindir}/enc2xs %exclude %{_bindir}/enc2xs
@ -1405,7 +1400,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root) %defattr(-,root,root)
%{archlib}/CORE/libperl.so %{archlib}/CORE/libperl.so
%dir %{archlib} %dir %{archlib}
%dir %{archlib}/vendor_perl %dir %{perl_vendorarch}
%dir %{_prefix}/local/%{_lib}/perl5 %dir %{_prefix}/local/%{_lib}/perl5
%files devel %files devel