!2 Init package
From: @xinghe_1 Reviewed-by: @shenyangyang01 Signed-off-by: @shenyangyang01
This commit is contained in:
commit
97aca22b2d
BIN
relocatable-perl-5.34.0.0.tar.gz
Normal file
BIN
relocatable-perl-5.34.0.0.tar.gz
Normal file
Binary file not shown.
48
relocatable-perl.spec
Normal file
48
relocatable-perl.spec
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
%define debug_package %{nil}
|
||||||
|
%define perl_version 5.34.0
|
||||||
|
|
||||||
|
Name: relocatable-perl
|
||||||
|
Version: %{perl_version}.0
|
||||||
|
Release: 1
|
||||||
|
Summary: self-contained, portable perl binaries
|
||||||
|
License: Artistic-1.0 and GPL-1.0-or-later
|
||||||
|
URL: https://github.com/skaji/%{name}/
|
||||||
|
Source0: https://github.com/skaji/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: make perl-Devel-PatchPerl perl-File-pushd perl-Module-Pluggable perl-IPC-Run3
|
||||||
|
BuildRequires: perl-App-ChangeShebang
|
||||||
|
|
||||||
|
%description
|
||||||
|
self-contained, portable perl binaries
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n %{name}-%{version}
|
||||||
|
|
||||||
|
mkdir -p %{_builddir}/perl.src/
|
||||||
|
pushd %{_builddir}/perl.src
|
||||||
|
yumdownloader --source perl
|
||||||
|
rpm2cpio perl-%{perl_version}*.src.rpm | cpio -div
|
||||||
|
popd
|
||||||
|
|
||||||
|
%build
|
||||||
|
# close darwin and close remote download
|
||||||
|
sed -i "s/^use Devel::PatchPerl::Plugin::FixCompoundTokenSplitByMacro;/# &/" build/relocatable-perl-build
|
||||||
|
sed -i "s/^use CPAN::Perl::Releases::MetaCPAN 'perl_tarballs';/# &/" build/relocatable-perl-build
|
||||||
|
sed -i "s/^use HTTP::Tinyish;/# &/" build/relocatable-perl-build
|
||||||
|
%{__perl} build/relocatable-perl-build --prefix %{_builddir}/%{name}-%{version} --tarball %{_builddir}/perl.src/perl-%{perl_version}.tar.xz
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
|
change-shebang -f bin/*
|
||||||
|
%{_fixperms} lib/*
|
||||||
|
cp -apr bin/* %{buildroot}%{_bindir}
|
||||||
|
cp -apr lib/* %{buildroot}%{_libdir}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_libdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Apr 07 2025 xinghe <xinghe2@h-partners.com> - 5.34.0.0-1
|
||||||
|
- Init package
|
||||||
4
relocatable-perl.yaml
Normal file
4
relocatable-perl.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: skaji/relocatable-perl
|
||||||
|
tag_prefix: ^v
|
||||||
|
separator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user