upgrade version to 2.00
This commit is contained in:
parent
c95960d70a
commit
59e02ec38f
Binary file not shown.
BIN
GD-Barcode-2.00.tar.gz
Normal file
BIN
GD-Barcode-2.00.tar.gz
Normal file
Binary file not shown.
@ -1,13 +1,13 @@
|
|||||||
Name: perl-GD-Barcode
|
Name: perl-GD-Barcode
|
||||||
Version: 1.15
|
Version: 2.00
|
||||||
Release: 31
|
Release: 1
|
||||||
Summary: Create barcode image with GD
|
Summary: Create barcode image with GD
|
||||||
License: GPL-1.0-or-later or Artistic-1.0-Perl
|
License: GPL-1.0-or-later or Artistic-1.0-Perl
|
||||||
URL: https://metacpan.org/release/GD-Barcode
|
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
|
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)
|
Requires: perl(GD)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -15,6 +15,14 @@ GD::Barcode is a subclass of GD and allows you to create barcode image with GD.
|
|||||||
|
|
||||||
%package_help
|
%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
|
%prep
|
||||||
%autosetup -n GD-Barcode-%{version}
|
%autosetup -n GD-Barcode-%{version}
|
||||||
find sample/ -type f -exec sed -i 's/\r//' {} +
|
find sample/ -type f -exec sed -i 's/\r//' {} +
|
||||||
@ -26,6 +34,14 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
%{_fixperms} $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
|
%check
|
||||||
make test
|
make test
|
||||||
@ -38,10 +54,15 @@ make test
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
%doc sample/
|
%doc sample/
|
||||||
%doc test.pl
|
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%files tests
|
||||||
|
%{_libexecdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Nov 02 2022 wangjiang <wangjiang37@h-partners.com> - 1.15-31
|
||||||
- modify the license to make it specification
|
- modify the license to make it specification
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user