diff --git a/GD-Barcode-1.15.tar.gz b/GD-Barcode-1.15.tar.gz deleted file mode 100644 index 30106f4add218a5138ab0fa470680053dceb31c2..0000000000000000000000000000000000000000 Binary files a/GD-Barcode-1.15.tar.gz and /dev/null differ diff --git a/GD-Barcode-2.00.tar.gz b/GD-Barcode-2.00.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bd374872eee4ece7167521988a2091ca38db2fb4 Binary files /dev/null and b/GD-Barcode-2.00.tar.gz differ diff --git a/perl-GD-Barcode.spec b/perl-GD-Barcode.spec index 4512b19602576a1267f54ced53b934d87a995624..cd0a3282e388436ba2b19e17f933c6064ab2babd 100644 --- a/perl-GD-Barcode.spec +++ b/perl-GD-Barcode.spec @@ -1,13 +1,13 @@ Name: perl-GD-Barcode -Version: 1.15 -Release: 31 +Version: 2.00 +Release: 1 Summary: Create barcode image with GD License: GPL-1.0-or-later or Artistic-1.0-Perl URL: https://metacpan.org/release/GD-Barcode -Source0: https://cpan.metacpan.org/authors/id/K/KW/KWITKNR/GD-Barcode-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/M/MI/MICHIELB/GD-Barcode-%{version}.tar.gz BuildArch: noarch -BuildRequires: perl-generators perl(Exporter) perl(ExtUtils::MakeMaker) perl(GD) +BuildRequires: perl-generators perl(Exporter) perl(ExtUtils::MakeMaker) perl(GD) perl(Test2::Require::Module) Requires: perl(GD) %description @@ -15,6 +15,14 @@ GD::Barcode is a subclass of GD and allows you to create barcode image with GD. %package_help +%package tests +Summary: Test for %{name} +Requires: %{name} = %{version}-%{release} +Requires: perl(Test2::Require::Module) + +%description tests +Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". + %prep %autosetup -n GD-Barcode-%{version} find sample/ -type f -exec sed -i 's/\r//' {} + @@ -26,6 +34,14 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT %{_fixperms} $RPM_BUILD_ROOT/* +# 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 make test @@ -38,10 +54,15 @@ make test %defattr(-,root,root) %doc Changes README %doc sample/ -%doc test.pl %{_mandir}/man3/* +%files tests +%{_libexecdir}/%{name} + %changelog +* Fri Jan 19 2024 wangjiang - 2.00-1 +- upgrade version to 2.00 + * Wed Nov 02 2022 wangjiang - 1.15-31 - modify the license to make it specification