perl 5.42.0
This commit is contained in:
commit
418ef8e840
1 changed files with 68 additions and 0 deletions
68
perl.spec
Normal file
68
perl.spec
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
Name: perl
|
||||||
|
Version: 5.42.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Practical Extraction and Report Language
|
||||||
|
|
||||||
|
License: GPL
|
||||||
|
URL: https://www.perl.org
|
||||||
|
Source0: https://www.cpan.org/src/5.0/perl-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: make gcc chrpath
|
||||||
|
Requires: bash
|
||||||
|
|
||||||
|
%global privlib %{_prefix}/share/perl5
|
||||||
|
%global archlib %{_libdir}/perl5
|
||||||
|
|
||||||
|
%global perl_vendorlib %{privlib}/vendor_perl
|
||||||
|
%global perl_vendorarch %{archlib}/vendor_perl
|
||||||
|
|
||||||
|
%global perl_abi %(echo '%{perl_version}' | sed 's/^\\([^.]*\\.[^.]*\\).*/\\1/')
|
||||||
|
|
||||||
|
%description
|
||||||
|
Perl is a highly capable, feature-rich programming language
|
||||||
|
with over 37 years of development.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
sh Configure -des \
|
||||||
|
-Dccflags="$RPM_OPT_FLAGS" \
|
||||||
|
-Dldflags="$RPM_LD_FLAGS" \
|
||||||
|
-Dccdlflags="-Wl,--enable-new-dtags $RPM_LD_FLAGS" \
|
||||||
|
-Dlddlflags="-shared $RPM_LD_FLAGS" \
|
||||||
|
-Dshrpdir="%{_libdir}" \
|
||||||
|
-Dprefix=%{_prefix} \
|
||||||
|
-Dman1dir="%{_mandir}/man1" \
|
||||||
|
-Dman3dir="%{_mandir}/man3" \
|
||||||
|
-Dvendorprefix=%{_prefix} \
|
||||||
|
-Dsiteprefix=%{_prefix}/local \
|
||||||
|
-Dsitelib="%{_prefix}/local/share/perl5/%{perl_abi}" \
|
||||||
|
-Dsitearch="%{_prefix}/local/%{_lib}/perl5/%{perl_abi}" \
|
||||||
|
-Dprivlib="%{privlib}" \
|
||||||
|
-Dvendorlib="%{perl_vendorlib}" \
|
||||||
|
-Dvendorarch="%{perl_vendorarch}" \
|
||||||
|
-Darchname=%{perl_archname} \
|
||||||
|
-Darchlib="%{archlib}" \
|
||||||
|
-Duseshrplib \
|
||||||
|
-Dusethreads \
|
||||||
|
-Duseithreads \
|
||||||
|
-Duselargefiles \
|
||||||
|
-Dd_semctl_semun \
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
chrpath -d %{buildroot}/usr/lib64/perl5/auto/Time/HiRes/HiRes.so
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_bindir}
|
||||||
|
%{_libdir}
|
||||||
|
%{_datadir}
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Dec 29 2025 Dmitrii Tochanskii <tochanskiy@tochlab.ru>
|
||||||
|
-
|
||||||
Loading…
Add table
Add a link
Reference in a new issue