On 06/12/12 15:44, Marcela Maslanova wrote:
----- Original Message -----
> From: "Andrew Ford" <A.Ford(a)ford-mason.co.uk>
> To: softwarecollections(a)lists.fedorahosted.org
> Sent: Thursday, December 6, 2012 3:29:00 PM
> Subject: Building perl-5.16.1 collection on CentOS 5.8
>
> I am trying to build Marcela Mašláňov's perl516 and perl-5.16.1
> packages
> on CentOS 5.8.
>
> I had a couple of problems getting perl516 to build: firstly rpmbuild
> requires a Group directive - I specified application/development, and
> secondly rpm 4.4.2.3 seems to require BuildRoot. I was wondering
> whether
> it would be possible to detect the RPM version and add those
> directives
> conditionally.
>
That should be easy by adding condition if rpm < 4.8 or what is in EL-6.
> Next I tried to build perl-5.16.1, initially without scl. That failed
> immediately as the line
>
> BuildRequires: perl516-build
>
> should be wrapped in a conditional scl macro, i.e.:
>
> %{?scl:BuildRequires: %{scl}-build}
>
Yes.
Found a couple of other missing scl macros - patch follows
Andrew
--- perl.spec.orig 2012-12-05 16:56:00.000000000 +0000
+++ perl.spec 2012-12-07 18:09:54.000000000 +0000
@@ -7,6 +7,8 @@
%global perl_arch_stem -thread-multi
%global perl_archname %{_arch}-%{_os}%{perl_arch_stem}
+%global debug_package %{nil}
+
%global multilib_64_archs x86_64 s390x ppc64 sparc64
%global parallel_tests 1
%global tapsetdir %{_datadir}/systemtap/tapset
@@ -116,7 +118,7 @@
BuildRequires: db4-devel, groff, tcsh, zlib-devel, bzip2-devel,
systemtap-sdt-devel
%{?scl:BuildRequires: %{scl}-runtime}
BuildRequires: gdbm-devel
-BuildRequires: perl516-build
+%{?scl:BuildRequires: %{scl}-build}
# For tests
BuildRequires: procps, rsyslog
@@ -128,7 +130,7 @@
%if %{rebuild_from_scratch}
Provides: %{?scl_prefix}perl(:MODULE_COMPAT_5.10.1)
%endif
-Provides: perl(:MODULE_COMPAT_5.16.1)
+Provides: %{?scl_prefix)perl(:MODULE_COMPAT_5.16.1)
# scl provide for biding to meta package
Provides: %{?scl_prefix}perl
@@ -590,7 +592,7 @@
Version: 1.61
Requires: %{?scl_prefix}perl-devel
Requires: %{?scl_prefix}perl =
%{perl_epoch}:%{perl_version}-%{release}
-Requires: perl(File::Path)
+Requires: %(?scl_prefix)perl(File::Path)
BuildArch: noarch
%description ExtUtils-Manifest