mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-01-23 14:32:15 +08:00
more perl stuff
This commit is contained in:
parent
84101ecabb
commit
f281e54f5c
26
SOURCES/WWW-Curl-4.17-curl-8.0.1.patch
Normal file
26
SOURCES/WWW-Curl-4.17-curl-8.0.1.patch
Normal file
@ -0,0 +1,26 @@
|
||||
diff -ur WWW-Curl-4.17.orig/Curl.xs WWW-Curl-4.17/Curl.xs
|
||||
--- WWW-Curl-4.17.orig/Curl.xs 2014-02-21 08:08:30.000000000 -0800
|
||||
+++ WWW-Curl-4.17/Curl.xs 2023-05-09 13:47:16.532736770 -0700
|
||||
@@ -18,6 +18,10 @@
|
||||
#include <curl/easy.h>
|
||||
#include <curl/multi.h>
|
||||
|
||||
+#ifdef CURLINC_MULTI_H
|
||||
+#define __CURL_MULTI_H
|
||||
+#endif
|
||||
+
|
||||
#define header_callback_func writeheader_callback_func
|
||||
|
||||
/* Do a favor for older perl versions */
|
||||
diff -ur WWW-Curl-4.17.orig/Makefile.PL WWW-Curl-4.17/Makefile.PL
|
||||
--- WWW-Curl-4.17.orig/Makefile.PL 2014-02-21 08:08:09.000000000 -0800
|
||||
+++ WWW-Curl-4.17/Makefile.PL 2023-05-09 13:48:59.409533111 -0700
|
||||
@@ -127,7 +127,7 @@
|
||||
close H;
|
||||
|
||||
for my $e (sort @syms) {
|
||||
- if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z)/) {
|
||||
+ if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z|^CURLINC_)/) {
|
||||
next;
|
||||
}
|
||||
my ($group) = $e =~ m/^([^_]+_)/;
|
90
SPECS/perl-File-Remove.spec
Normal file
90
SPECS/perl-File-Remove.spec
Normal file
@ -0,0 +1,90 @@
|
||||
%global cpanname File-Remove
|
||||
|
||||
Name: perl-%{cpanname}
|
||||
Version: 1.61
|
||||
Release: %{?repo}0.rc1%{?dist}
|
||||
Summary: Remove files and directories
|
||||
BuildArch: noarch
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL-1.0-or-later or Artistic-1.0-Perl
|
||||
URL: https://metacpan.org/dist/%{cpanname}
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{cpanname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl(Module::Build) >= 0.28
|
||||
# for test
|
||||
%if 0%{?runtests:1} == 1
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(File::Copy)
|
||||
BuildRequires: perl(File::Spec) >= 3.29
|
||||
BuildRequires: perl(File::Spec::Functions)
|
||||
BuildRequires: perl(IO::Handle)
|
||||
BuildRequires: perl(IPC::Open3)
|
||||
BuildRequires: perl(Cwd) >= 3.29
|
||||
BuildRequires: perl(File::Glob)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(constant)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(vars)
|
||||
BuildRequires: perl(warnings)
|
||||
%endif
|
||||
# runtime
|
||||
Requires: perl(Cwd) >= 3.29
|
||||
Requires: perl(File::Glob)
|
||||
Requires: perl(File::Path)
|
||||
Requires: perl(File::Spec) >= 3.29
|
||||
Requires: perl(constant)
|
||||
Requires: perl(strict)
|
||||
Requires: perl(vars)
|
||||
Requires: perl(warnings)
|
||||
# /end runtime
|
||||
# Change both perl5_API below to perl5_ABI for binary packages
|
||||
%if 0%{?perl5_API:1} == 1
|
||||
Requires: %{perl5_API}
|
||||
%endif
|
||||
|
||||
%description
|
||||
File::Remove::remove removes files and directories. It acts like /bin/rm,
|
||||
for the most part. Although unlink can be given a list of files, it
|
||||
will not remove directories; this module remedies that. It also accepts
|
||||
wildcards, * and ?, as arguments for filenames.
|
||||
|
||||
File::Remove::trash accepts the same arguments as remove, with the
|
||||
addition of an optional, infrequently used "other platforms" hashref.
|
||||
|
||||
%prep
|
||||
%setup -n %{cpanname}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
perl Build.PL destdir=%{buildroot} installdirs=vendor
|
||||
./Build
|
||||
|
||||
|
||||
%check
|
||||
%if 0%{?runtests:1} == 1
|
||||
./Build test > %{name}-Build.test.log 2>&1
|
||||
%else
|
||||
echo "make test not run during package build." > %{name}-Build.test.log
|
||||
%endif
|
||||
|
||||
%install
|
||||
./Build install DESTDIR=%{buildroot}
|
||||
rm -f %{buildroot}%{perl5_vendorarch}/auto/File/Remove/.packlist
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{perl5_vendorarch}/File
|
||||
%attr(0444,root,root) %{perl5_vendorarch}/File/Remove.pm
|
||||
%attr(0644,root,root) %{_mandir}/man3/File::Remove.3*
|
||||
%license LICENSE
|
||||
%doc Changes LICENSE README
|
||||
%doc %{name}-Build.test.log
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon May 08 2023 Michael A. Peters <anymouseprophet@gmail.com> - 1.61-0.rc1
|
||||
- Initial spec file for YJL
|
153
SPECS/perl-Module-Build.spec
Normal file
153
SPECS/perl-Module-Build.spec
Normal file
@ -0,0 +1,153 @@
|
||||
%global cpanname Module-Build
|
||||
|
||||
Name: perl-%{cpanname}
|
||||
Version: 0.4234
|
||||
Release: %{?repo}0.rc1%{?dist}
|
||||
Summary: Build and install Perl modules
|
||||
BuildArch: noarch
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL-1.0-or-later or Artistic-1.0-Perl
|
||||
URL: https://metacpan.org/dist/%{cpanname}
|
||||
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/%{cpanname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(CPAN::Meta) >= 2.142060
|
||||
BuildRequires: perl(File::Basename)
|
||||
BuildRequires: perl(File::Copy)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(File::Spec) >= 0.82
|
||||
BuildRequires: perl(Module::Metadata) >= 1.000002
|
||||
BuildRequires: perl(Perl::OSType) >= 1
|
||||
BuildRequires: perl(version) >= 0.87
|
||||
# for test
|
||||
%if 0%{?runtests:1} == 1
|
||||
BuildRequires: perl(CPAN::Meta::YAML) >= 0.003
|
||||
BuildRequires: perl(File::Temp) >= 0.15
|
||||
BuildRequires: perl(Parse::CPAN::Meta) >= 1.4401
|
||||
BuildRequires: perl(TAP::Harness) >= 3.29
|
||||
BuildRequires: perl(Test::More) >= 0.49
|
||||
#
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(Data::Dumper)
|
||||
BuildRequires: perl(ExtUtils::CBuilder) >= 0.27
|
||||
BuildRequires: perl(ExtUtils::Install) >= 0.3
|
||||
BuildRequires: perl(ExtUtils::Manifest) >= 1.54
|
||||
BuildRequires: perl(ExtUtils::Mkbootstrap)
|
||||
BuildRequires: perl(ExtUtils::ParseXS) >= 2.21
|
||||
BuildRequires: perl(File::Compare)
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: perl(Getopt::Long)
|
||||
BuildRequires: perl(Text::Abbrev)
|
||||
BuildRequires: perl(Text::ParseWords)
|
||||
%endif
|
||||
# runtime
|
||||
Requires: perl(CPAN::Meta) >= 2.142060
|
||||
Requires: perl(Cwd)
|
||||
Requires: perl(Data::Dumper)
|
||||
Requires: perl(ExtUtils::CBuilder) >= 0.27
|
||||
Requires: perl(ExtUtils::Install) >= 0.3
|
||||
Requires: perl(ExtUtils::Manifest) >= 1.54
|
||||
Requires: perl(ExtUtils::Mkbootstrap)
|
||||
Requires: perl(ExtUtils::ParseXS) >= 2.21
|
||||
Requires: perl(File::Basename)
|
||||
Requires: perl(File::Compare)
|
||||
Requires: perl(File::Copy)
|
||||
Requires: perl(File::Find)
|
||||
Requires: perl(File::Path)
|
||||
Requires: perl(File::Spec) >= 0.82
|
||||
Requires: perl(Getopt::Long)
|
||||
Requires: perl(Module::Metadata) >= 1.000002
|
||||
Requires: perl(Perl::OSType) >= 1
|
||||
Requires: perl(TAP::Harness) >= 3.29
|
||||
Requires: perl(Text::Abbrev)
|
||||
Requires: perl(Text::ParseWords)
|
||||
Requires: perl(version) >= 0.87
|
||||
# /end runtime
|
||||
%if 0%{?perl5_API:1} == 1
|
||||
Requires: %{perl5_API}
|
||||
%endif
|
||||
|
||||
%description
|
||||
This package is needed to install perl modules that use the Build.PL
|
||||
build system.
|
||||
|
||||
%prep
|
||||
%setup -n %{cpanname}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%if 0%{?runtests:1} == 1
|
||||
make test > %{name}-make.test.log 2>&1
|
||||
%else
|
||||
echo "make test not run during package build." > %{name}-make.test.log
|
||||
%endif
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
rm -f %{buildroot}%{perl5_vendorarch}/auto/Module/Build/.packlist
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%attr(0755,root,root) %{_bindir}/config_data
|
||||
%dir %{perl5_vendorlib}/Module
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build.pm
|
||||
%dir %{perl5_vendorlib}/Module/Build
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/API.pod
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Authoring.pod
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Base.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Bundling.pod
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Compat.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Config.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/ConfigData.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Cookbook.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Dumper.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Notes.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/PPMMaker.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/PodParser.pm
|
||||
%dir %{perl5_vendorlib}/Module/Build/Platform
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Platform/Default.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Platform/MacOS.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Platform/Unix.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Platform/VMS.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Platform/VOS.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Platform/Windows.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Platform/aix.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Platform/cygwin.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Platform/darwin.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Build/Platform/os2.pm
|
||||
%attr(0644,root,root) %{_mandir}/man1/config_data.1*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::API.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Authoring.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Base.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Bundling.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::ConfigData.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Compat.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Cookbook.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Notes.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::PPMMaker.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Platform::Default.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Platform::MacOS.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Platform::Unix.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Platform::VMS.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Platform::VOS.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Platform::Windows.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Platform::aix.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Platform::cygwin.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Platform::darwin.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Build::Platform::os2.3*
|
||||
%license LICENSE
|
||||
%doc Changes LICENSE README
|
||||
%doc %{name}-make.test.log
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon May 08 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.4234-0.rc1
|
||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
153
SPECS/perl-Module-Install.spec
Normal file
153
SPECS/perl-Module-Install.spec
Normal file
@ -0,0 +1,153 @@
|
||||
%global cpanname Module-Install
|
||||
|
||||
Name: perl-%{cpanname}
|
||||
Version: 1.21
|
||||
Release: %{?repo}0.rc1%{?dist}
|
||||
Summary: Standalone, extensible Perl module installer
|
||||
BuildArch: noarch
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL-1.0-or-later or Artistic-1.0-Perl
|
||||
URL: https://metacpan.org/dist/%{cpanname}
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpanname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(YAML::Tiny)
|
||||
# for test
|
||||
%if 0%{?runtests:1} == 1
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Harness)
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(File::Remove)
|
||||
BuildRequires: perl(File::Path)
|
||||
%endif
|
||||
# runtime
|
||||
Requires: perl(File::Remove)
|
||||
# /end runtime
|
||||
# Change both perl5_API below to perl5_ABI for binary packages
|
||||
%if 0%{?perl5_API:1} == 1
|
||||
Requires: %{perl5_API}
|
||||
%endif
|
||||
%if 0%{?perl5_cpanlic:1} == 1
|
||||
Requires: common-CPAN-licenses
|
||||
%endif
|
||||
|
||||
%description
|
||||
Module::Install is a package for writing installers for CPAN (or CPAN-like)
|
||||
distributions that are clean, simple, minimalist, act in a strictly
|
||||
correct manner with ExtUtils::MakeMaker, and will run on any Perl
|
||||
installation version 5.005 or newer.
|
||||
|
||||
The intent is to make it as easy as possible for CPAN authors (and
|
||||
especially for first-time CPAN authors) to have installers that follow
|
||||
all the best practices for distribution installation, but involve as
|
||||
much DWIM (Do What I Mean) as possible when writing them.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -n %{cpanname}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%if 0%{?runtests:1} == 1
|
||||
make test > %{name}-make.test.log 2>&1
|
||||
%else
|
||||
echo "make test not run during package build." > %{name}-make.test.log
|
||||
%endif
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%if 0%{?perl5_cpanlic:1} == 1
|
||||
cat > Perl5-Licenses.txt << "EOF"
|
||||
This package specifies it uses the Perl 5 licenses but did not include
|
||||
them in the package source.
|
||||
|
||||
They can be found in the following directory:
|
||||
|
||||
%{perl5_cpanlic}/Perl5/
|
||||
|
||||
EOF
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{perl5_vendorlib}/Module
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/AutoInstall.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install.pod
|
||||
%dir %{perl5_vendorlib}/Module/Install
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/API.pod
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Admin.pm
|
||||
%dir %{perl5_vendorlib}/Module/Install/Admin
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Admin/Bundle.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Admin/Compiler.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Admin/Find.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Admin/Include.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Admin/Makefile.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Admin/Manifest.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Admin/Metadata.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Admin/ScanDeps.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Admin/WriteAll.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/AutoInstall.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Base.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Bundle.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Can.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Compiler.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Deprecated.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/External.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/FAQ.pod
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Fetch.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Include.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Inline.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/MakeMaker.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Makefile.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Metadata.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/PAR.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Philosophy.pod
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Run.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Scripts.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Share.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/Win32.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/With.pm
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/Module/Install/WriteAll.pm
|
||||
%dir %{perl5_vendorlib}/inc
|
||||
%dir %{perl5_vendorlib}/inc/Module
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/inc/Module/Install.pm
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::AutoInstall.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::API.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Admin.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Admin::Include.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Admin::Manifest.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Base.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Bundle.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Can.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Compiler.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Deprecated.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::External.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::FAQ.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Makefile.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::PAR.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Philosophy.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::Share.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/Module::Install::With.3*
|
||||
%attr(0644,root,root) %{_mandir}/man3/inc::Module::Install.3*
|
||||
%if 0%{?perl5_cpanlic:1} == 1
|
||||
%license Perl5-Licenses.txt
|
||||
%doc Changes README TODO Perl5-Licenses.txt
|
||||
%else
|
||||
%doc Changes README TODO
|
||||
%endif
|
||||
%doc %{name}-make.test.log
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon May 08 2023 Michael A. Peters <anymouseprophet@gmail.com> - 1.21-0.rc1
|
||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
103
SPECS/perl-WWW-Curl.spec
Normal file
103
SPECS/perl-WWW-Curl.spec
Normal file
@ -0,0 +1,103 @@
|
||||
%global cpanname WWW-Curl
|
||||
|
||||
Name: perl-%{cpanname}
|
||||
Version: 4.17
|
||||
Release: %{?repo}0.rc1%{?dist}
|
||||
Summary: Perl extension interface for libcurl
|
||||
#BuildArch: noarch
|
||||
|
||||
Group: Development/Libraries
|
||||
License: MIT
|
||||
URL: https://metacpan.org/dist/%{cpanname}
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SZ/SZBALINT/WWW-Curl-%{version}.tar.gz
|
||||
#Patch0: WWW-Curl-4.17-curl-7.87.0.patch
|
||||
Patch0: WWW-Curl-4.17-curl-8.0.1.patch
|
||||
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(Module::Install)
|
||||
BuildRequires: libcurl-devel
|
||||
# for test
|
||||
%if 0%{?runtests:1} == 1
|
||||
BuildRequires: perl(Test::More)
|
||||
%endif
|
||||
# runtime
|
||||
#Requires:
|
||||
# /end runtime
|
||||
# Change both perl5_API below to perl5_ABI for binary packages
|
||||
%if 0%{?perl5_ABI:1} == 1
|
||||
Requires: %{perl5_ABI}
|
||||
%endif
|
||||
%if 0%{?perl5_cpanlic:1} == 1
|
||||
Requires: common-CPAN-licenses
|
||||
%endif
|
||||
|
||||
%description
|
||||
WWW::Curl is a Perl extension interface for libcurl.
|
||||
|
||||
%prep
|
||||
%setup -n %{cpanname}-%{version}
|
||||
%patch 0 -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
|
||||
%__sed -i '/DEPRECAT/d' curlopt-constants.c
|
||||
%__sed -i '/STRICTER/d' curlopt-constants.c
|
||||
%__sed -i '/return CURL_WIN32;/d' curlopt-constants.c
|
||||
%__sed -i '/return CURLOPT;/d' curlopt-constants.c
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%if 0%{?runtests:1} == 1
|
||||
make test > %{name}-make.test.log 2>&1
|
||||
%else
|
||||
echo "make test not run during package build." > %{name}-make.test.log
|
||||
%endif
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
# if binary
|
||||
%{_fixperms} %{buildroot}%{perl5_vendorarch}
|
||||
|
||||
%if 0%{?perl5_cpanlic:1} == 1
|
||||
cat > MIT-License.txt << "EOF"
|
||||
This package specifies it uses the MIT licenses but did not include
|
||||
the license in the package source.
|
||||
|
||||
The MIT license can be found in the following directory:
|
||||
|
||||
%{perl5_cpanlic}/MIT/
|
||||
|
||||
EOF
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{perl5_vendorarch}/WWW
|
||||
%attr(0444,root,root) %{perl5_vendorarch}/WWW/Curl.pm
|
||||
%dir %{perl5_vendorarch}/WWW/Curl
|
||||
%attr(0444,root,root) %{perl5_vendorarch}/WWW/Curl/Easy.pm
|
||||
%attr(0444,root,root) %{perl5_vendorarch}/WWW/Curl/Form.pm
|
||||
%attr(0444,root,root) %{perl5_vendorarch}/WWW/Curl/Multi.pm
|
||||
%attr(0444,root,root) %{perl5_vendorarch}/WWW/Curl/Share.pm
|
||||
%dir %{perl5_vendorarch}/auto/WWW
|
||||
%dir %{perl5_vendorarch}/auto/WWW/Curl
|
||||
%attr(0555,root,root) %{perl5_vendorarch}/auto/WWW/Curl/Curl.so
|
||||
%attr(0644,root,root) %{_mandir}/man3/WWW::Curl.3*
|
||||
%if 0%{?perl5_cpanlic:1} == 1
|
||||
%license LICENSE MIT-License.txt
|
||||
%doc Changes README LICENSE MIT-License.txt
|
||||
%else
|
||||
%license LICENSE
|
||||
%doc Changes README LICENSE
|
||||
%endif
|
||||
%doc %{name}-make.test.log
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue May 09 2023 Michael A. Peters <anymouseprophet@gmail.com> - 4.17-0.rc1
|
||||
- Initial spec file
|
72
SPECS/perl-YAML-Tiny.spec
Normal file
72
SPECS/perl-YAML-Tiny.spec
Normal file
@ -0,0 +1,72 @@
|
||||
%global cpanname YAML-Tiny
|
||||
|
||||
Name: perl-%{cpanname}
|
||||
Version: 1.74
|
||||
Release: %{?repo}0.rc1%{?dist}
|
||||
Summary: Read/Write YAML files with as little code as possible
|
||||
BuildArch: noarch
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL-1.0-or-later or Artistic-1.0-Perl
|
||||
URL: https://metacpan.org/dist/%{cpanname}
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/YAML-Tiny-%{version}.tar.gz
|
||||
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
# for test
|
||||
%if 0%{?runtests:1} == 1
|
||||
BuildRequires: perl(Test::More)
|
||||
%endif
|
||||
# runtime
|
||||
#Requires:
|
||||
# /end runtime
|
||||
%if 0%{?perl5_API:1} == 1
|
||||
Requires: %{perl5_API}
|
||||
%endif
|
||||
|
||||
%description
|
||||
The YAML specification is huge. Really, really huge. It contains all
|
||||
the functionality of XML, except with flexibility and choice, which
|
||||
makes it easier to read, but with a formal specification that is more
|
||||
complex than XML.
|
||||
|
||||
Like the other ::Tiny modules, YAML::Tiny has no non-core dependencies,
|
||||
does not require a compiler to install, is back-compatible to Perl v5.8.1,
|
||||
and can be inlined into other modules if needed.
|
||||
|
||||
In exchange for adding this extreme flexibility, it provides support
|
||||
for only a limited subset of YAML. But the subset supported contains
|
||||
most of the features for the more common uses of YAML.
|
||||
|
||||
%prep
|
||||
%setup -n %{cpanname}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%if 0%{?runtests:1} == 1
|
||||
make test > %{name}-make.test.log 2>&1
|
||||
%else
|
||||
echo "make test not run during package build." > %{name}-make.test.log
|
||||
%endif
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{perl5_vendorlib}/YAML
|
||||
%attr(0444,root,root) %{perl5_vendorlib}/YAML/Tiny.pm
|
||||
%attr(0644,root,root) %{_mandir}/man3/YAML::Tiny.3*
|
||||
%license LICENSE
|
||||
%doc Changes LICENSE README
|
||||
%doc %{name}-make.test.log
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon May 08 2023 Michael A. Peters <anymouseprophet@gmail.com> - 1.74-0.rc1
|
||||
- Initial spec file
|
Loading…
Reference in New Issue
Block a user