Clean up the spec file
This commit is contained in:
parent
6d2224275c
commit
8b59bb6620
@ -1,6 +1,6 @@
|
||||
Name: perl-Test-Without-Module
|
||||
Version: 0.20
|
||||
Release: 16%{?dist}
|
||||
Release: 17%{?dist}
|
||||
Summary: Test fallback behavior in absence of modules
|
||||
License: GPL+ or Artistic
|
||||
|
||||
@ -22,7 +22,7 @@ BuildRequires: perl(Data::Dumper)
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: perl(Symbol)
|
||||
BuildRequires: perl(Test::More)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version))
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
@ -33,19 +33,19 @@ have a fallback when a certain dependency module is not installed.
|
||||
|
||||
%prep
|
||||
%setup -q -n Test-Without-Module-%{version}
|
||||
find . -type f -exec chmod 644 {} \;
|
||||
sed -i -e 's/\r//' README Changes
|
||||
/usr/bin/perl -pi -e 's/\r//' README Changes
|
||||
/usr/bin/chmod 644 README Changes
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
make %{?_smp_mflags}
|
||||
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
%{make_install}
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
%{make_build} test
|
||||
|
||||
%files
|
||||
%doc Changes README
|
||||
@ -53,6 +53,12 @@ make test
|
||||
%{_mandir}/man3/Test*
|
||||
|
||||
%changelog
|
||||
* Fri Dec 24 2021 Emmanuel Seyman <emmanuel@seyman.fr> - 0.20-17
|
||||
- Replace %%{__perl} with /usr/bin/perl
|
||||
- Use %%{make_build} and %%{make_install} where appropriate
|
||||
- Pass NO_PERLLOCAL to Makefile.PL
|
||||
- Minor cleanups
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user