upgrade version to 2.00

This commit is contained in:
wangjiang 2024-01-19 16:22:21 +08:00
parent c95960d70a
commit 59e02ec38f
3 changed files with 26 additions and 5 deletions

Binary file not shown.

BIN
GD-Barcode-2.00.tar.gz Normal file

Binary file not shown.

View File

@ -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 <wangjiang37@h-partners.com> - 2.00-1
- upgrade version to 2.00
* Wed Nov 02 2022 wangjiang <wangjiang37@h-partners.com> - 1.15-31
- modify the license to make it specification