Modernize a spec file

This commit is contained in:
Petr Písař 2020-02-10 09:59:33 +01:00
parent 7bc5eb21e7
commit 3cadec0250

View File

@ -1,6 +1,6 @@
Name: perl-Bit-Vector
Version: 7.4
Release: 18%{?dist}
Release: 19%{?dist}
Summary: Efficient bit vector, set of integers and "big int" math library
# Outdated FSF address reported, rt#85827
# Clarified by a private mail from the author:
@ -17,7 +17,7 @@ BuildRequires: perl(Carp::Clan) >= 5.3
BuildRequires: perl(Config)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(integer)
BuildRequires: perl(overload)
BuildRequires: perl(Storable) >= 2.21
@ -37,15 +37,16 @@ Bit::Vector is an efficient C library which allows you to handle bit
vectors, sets (of integers), "big integer arithmetic" and boolean
matrices, all of arbitrary sizes.
The library is efficient (in terms of algorithmical complexity) and
The library is efficient (in terms of algorithmic complexity) and
therefore fast (in terms of execution speed) for instance through the
widespread use of divide-and-conquer algorithms.
%prep
%setup -q -n Bit-Vector-%{version}
chmod -c 644 examples/*.pl
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' examples/benchmk1.pl
perl -pi -e 's|^#!perl\b|#!%{__perl}|' \
perl -MConfig -pi -e 's|^#!/usr/local/bin/perl\b|$Config{startperl}|' \
examples/benchmk1.pl
perl -MConfig -pi -e 's|^#!perl\b|$Config{startperl}|' \
examples/{benchmk{2,3},primes,SetObject}.pl
%build
@ -62,7 +63,7 @@ find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
make test
%files
%doc Artistic.txt GNU_GPL.txt GNU_LGPL.txt
%license Artistic.txt GNU_GPL.txt GNU_LGPL.txt
%doc CHANGES.txt CREDITS.txt README.txt examples/
%{perl_vendorarch}/Bit/
%{perl_vendorarch}/auto/Bit/
@ -70,6 +71,9 @@ make test
%changelog
* Mon Feb 10 2020 Petr Pisar <ppisar@redhat.com> - 7.4-19
- Correct a spelling
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 7.4-18
- Use make_build macro