Name: perl-Database-DumpTruck Version: 1.2 Release: 30%{?dist} Summary: Relaxing interface to SQLite License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Database-DumpTruck Source0: https://cpan.metacpan.org/authors/id/L/LK/LKUNDRAK/Database-DumpTruck-%{version}.tar.gz # Adapt tests to SQLite 3.37.0, bug #2066618, CPAN RT#140749, # proposed to the upstream. Patch0: Database-DumpTruck-1.2-sqlite-case-insensitive.patch # Fix JSON comparison in tests bug #2115214, https://github.com/lkundrak/perl-database-dumptruck/issues/2 Patch1: Database-DumpTruck-1.2-fix-json-comparison-in-tests.patch BuildArch: noarch BuildRequires: perl-generators BuildRequires: perl(DBD::SQLite) BuildRequires: perl(DBI) BuildRequires: perl(File::Temp) BuildRequires: perl(JSON) BuildRequires: perl(Module::Build) BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::Deep::JSON) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) >= 1.00 %description This is a simple document-oriented interface to a SQLite database, modelled after Scraperwiki's Python dumptruck module. It allows for easy (and maybe inefficient) storage and retrieval of structured data to and from a database without interfacing with SQL. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -p1 -n Database-DumpTruck-%{version} # Help generators to recognize Perl scripts for F in $(find t/ -name '*.t'); do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" chmod +x "$F" done %build %{__perl} Build.PL installdirs=vendor ./Build %install ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} rm -f %{buildroot}%{_libexecdir}/%{name}/t/pod* cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" -r EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %{_fixperms} $RPM_BUILD_ROOT/* %check ./Build test %files %doc META.json %{perl_vendorlib}/* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Thu Jan 25 2024 Fedora Release Engineering - 1.2-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.2-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.2-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.2-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 08 2022 Michal Josef Špaček - 1.2-26 - Package tests - Update license to SPDX format * Tue Sep 06 2022 Michal Josef Špaček - 1.2-25 - Fix JSON comparison in tests (bug #2115214) * Fri Jul 22 2022 Fedora Release Engineering - 1.2-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 1.2-23 - Perl 5.36 rebuild * Wed Apr 27 2022 Petr Pisar - 1.2-22 - Adapt tests to SQLite 3.37.0 (bug #2066618) * Fri Jan 21 2022 Fedora Release Engineering - 1.2-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 1.2-19 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 1.2-16 - Perl 5.32 rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 1.2-13 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 1.2-10 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 1.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 1.2-7 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 1.2-5 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Jitka Plesnikova - 1.2-2 - Perl 5.22 rebuild * Fri Jul 25 2014 Lubomir Rintel 1.2-1 - Specfile autogenerated by cpanspec 1.78.