From 7c745b394421d799f100d78dd33bae1d99064a6e Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 26 Sep 2023 16:07:30 +0300 Subject: [PATCH] import perl-SQL-Abstract-Classic-1.91-9.el9 --- .gitignore | 1 + .perl-SQL-Abstract-Classic.metadata | 1 + ...it-installing-dependencies-from-CPAN.patch | 31 ++++++ SPECS/perl-SQL-Abstract-Classic.spec | 104 ++++++++++++++++++ 4 files changed, 137 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-SQL-Abstract-Classic.metadata create mode 100644 SOURCES/SQL-Abstract-Classic-1.91-Inhibit-installing-dependencies-from-CPAN.patch create mode 100644 SPECS/perl-SQL-Abstract-Classic.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b0d346 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/SQL-Abstract-Classic-1.91.tar.gz diff --git a/.perl-SQL-Abstract-Classic.metadata b/.perl-SQL-Abstract-Classic.metadata new file mode 100644 index 0000000..07780c3 --- /dev/null +++ b/.perl-SQL-Abstract-Classic.metadata @@ -0,0 +1 @@ +166271047e2c032574ac2755ee8a56f674d7dcff SOURCES/SQL-Abstract-Classic-1.91.tar.gz diff --git a/SOURCES/SQL-Abstract-Classic-1.91-Inhibit-installing-dependencies-from-CPAN.patch b/SOURCES/SQL-Abstract-Classic-1.91-Inhibit-installing-dependencies-from-CPAN.patch new file mode 100644 index 0000000..45bcebc --- /dev/null +++ b/SOURCES/SQL-Abstract-Classic-1.91-Inhibit-installing-dependencies-from-CPAN.patch @@ -0,0 +1,31 @@ +From 29c290200108cf185fcbc06f5870e6a1c6b8dc66 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Thu, 27 Aug 2020 09:38:03 +0200 +Subject: [PATCH] Inhibit installing dependencies from CPAN +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +When boostrapping Perl, MRO::Compat is not available and Makefile.PL +attempts to install this unneeded dependency from CPAN. + +https://bugzilla.redhat.com/show_bug.cgi?id=1873016 +Signed-off-by: Petr Písař +--- + Makefile.PL | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 3c947e3..4326d66 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -40,6 +40,4 @@ test_requires "Storable" => '0'; # for cloning in tests + + tests_recursive 't'; + +-auto_install(); +- + WriteAll(); +-- +2.25.4 + diff --git a/SPECS/perl-SQL-Abstract-Classic.spec b/SPECS/perl-SQL-Abstract-Classic.spec new file mode 100644 index 0000000..56e0292 --- /dev/null +++ b/SPECS/perl-SQL-Abstract-Classic.spec @@ -0,0 +1,104 @@ +Name: perl-SQL-Abstract-Classic +Version: 1.91 +Release: 9%{?dist} +Summary: Generate SQL from Perl data structures +License: GPL+ or Artistic +URL: https://metacpan.org/release/SQL-Abstract-Classic/ +Source0: https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/SQL-Abstract-Classic-%{version}.tar.gz +# Inhibit installing dependencies from CPAN, bug #1873016 +Patch0: SQL-Abstract-Classic-1.91-Inhibit-installing-dependencies-from-CPAN.patch +BuildArch: noarch +# Build +BuildRequires: make +BuildRequires: coreutils +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.6.0 +BuildRequires: perl(inc::Module::Install) >= 1.06 +BuildRequires: perl(Module::Install::Makefile) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: sed +# Run-time +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) >= 5.57 +BuildRequires: perl(List::Util) +BuildRequires: perl(mro) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Text::Balanced) >= 2.00 +# Tests +BuildRequires: perl(constant) +BuildRequires: perl(overload) +BuildRequires: perl(SQL::Abstract::Test) +BuildRequires: perl(Storable) +BuildRequires: perl(Test::Exception) >= 0.31 +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Warn) +Requires: perl(Exporter) >= 5.57 +Requires: perl(mro) +Requires: perl(Text::Balanced) >= 2.00 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Exporter\\) + +%description +This module was inspired by the excellent DBIx::Abstract. However, in using +that module I found that what I really wanted to do was generate SQL, but +still retain complete control over my statement handles and use the DBI +interface. So, I set out to create an abstract SQL generation module. + +%prep +%setup -q -n SQL-Abstract-Classic-%{version} +%patch0 -p1 +# Remove bundled libraries +rm -r inc +sed -i -e '/^inc\// d' MANIFEST + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Sep 26 2023 Arkady L. Shane - 1.91-9 +- Rebuilt for MSVSphere 9.2 + +* Wed Jun 01 2022 Jitka Plesnikova - 1.91-9 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.91-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.91-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 1.91-6 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.91-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Aug 27 2020 Petr Pisar - 1.91-4 +- Inhibit installing dependencies from CPAN (bug #1873016) + +* Tue Jul 28 2020 Fedora Release Engineering - 1.91-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 2020 Jitka Plesnikova - 1.91-2 +- Perl 5.32 rebuild + +* Wed Jun 17 2020 Jitka Plesnikova - 1.91-1 +- Specfile autogenerated by cpanspec 1.78.