Name: perl-SQL-Interp Version: 1.27 Release: 12%{?dist} Summary: Interpolate Perl variables into SQL statements License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/SQL-Interp Source0: https://cpan.metacpan.org/authors/id/Y/YO/YORHEL/SQL-Interp-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(Module::Build) # Run-time BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(DBI) >= 1 BuildRequires: perl(Exporter) # perl(Filter::Simple) BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) BuildRequires: perl(strict) BuildRequires: perl(warnings) # perl(Text::Balanced) >= 1.87 # Tests BuildRequires: perl(Data::Dumper) BuildRequires: perl(lib) BuildRequires: perl(Test::More) # Optional tests BuildRequires: perl(Test::Pod) >= 1.00 Requires: perl(DBI) >= 1 %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(DBI\\)\s*$ %global __requires_exclude %{__requires_exclude}|^perl\\(DBI::db)\s*$ # Filter modules bundled for tests %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} %global __requires_exclude %{__requires_exclude}|^perl\\(DBD::Mock)\s*$ %global __requires_exclude %{__requires_exclude}|^perl\\(t::lib.pl\\) %description SQL::Interp converts a list of intermixed SQL fragments and variable references into a conventional SQL string and list of bind values suitable for passing onto DBI. This simple technique creates database calls that are simpler to create and easier to read, while still giving you full access to custom SQL. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}-%{version}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n SQL-Interp-%{version} %build perl Build.PL installdirs=vendor # Help file to recognise the Perl scripts for F in t/*.t t/*.pl; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done ./Build %install ./Build install destdir=%{buildroot} create_packlist=0 %{_fixperms} %{buildroot}/* # Remove author/release tests rm t/pod.t # Install tests mkdir -p %{buildroot}/%{_libexecdir}/%{name} cp -a t %{buildroot}/%{_libexecdir}/%{name} cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}/%{_libexecdir}/%{name}/test %check ./Build test %files %doc Changes ex README.md %{perl_vendorlib}/* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Thu Jan 25 2024 Fedora Release Engineering - 1.27-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.27-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.27-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jan 24 2023 Jitka Plesnikova - 1.27-9 - Filter run-require perl(t::lib.pl) (BZ#2163999) * Fri Jan 20 2023 Fedora Release Engineering - 1.27-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.27-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 1.27-6 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.27-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.27-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 1.27-3 - Perl 5.34 rebuild * Mon Feb 15 2021 Jitka Plesnikova - 1.27-2 - Package tests * Mon Feb 15 2021 Jitka Plesnikova - 1.27-1 - 1.27 bump * Wed Jan 27 2021 Fedora Release Engineering - 1.26-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.26-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 1.26-2 - Perl 5.32 rebuild * Mon Apr 20 2020 Jitka Plesnikova - 1.26-1 - 1.26 bump * Thu Jan 30 2020 Fedora Release Engineering - 1.25-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Oct 22 2019 Jitka Plesnikova - 1.25-1 - 1.25 bump * Fri Jul 26 2019 Fedora Release Engineering - 1.24-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 1.24-10 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.24-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.24-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 1.24-7 - Perl 5.28 rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.24-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.24-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 1.24-4 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.24-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 1.24-2 - Perl 5.24 rebuild * Fri Feb 12 2016 Jitka Plesnikova - 1.24-1 - 1.24 bump * Wed Feb 10 2016 Jitka Plesnikova - 1.22-1 - Initial release