| |
@@ -1,17 +1,22 @@
|
| |
Name: perl-PPI-Tester
|
| |
Version: 0.15
|
| |
- Release: 27%{?dist}
|
| |
+ Release: 28%{?dist}
|
| |
Summary: A wxPerl-based interactive PPI debugger/tester
|
| |
|
| |
- License: GPL+ or Artistic
|
| |
+ License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
| |
URL: https://metacpan.org/release/PPI-Tester
|
| |
Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/PPI-Tester-%{version}.tar.gz
|
| |
+ # Update Makefile.PL to not use Module::Install::DSL CPAN RT#148304
|
| |
+ Patch0: PPI-Tester-0.15-Remove-using-of-MI-DSL.patch
|
| |
|
| |
BuildArch: noarch
|
| |
- BuildRequires: make
|
| |
- BuildRequires: perl-interpreter
|
| |
+ BuildRequires: coreutils
|
| |
+ BuildRequires: make
|
| |
BuildRequires: perl-generators
|
| |
- BuildRequires: perl(inc::Module::Install::DSL) >= 0.86
|
| |
+ BuildRequires: perl-interpreter
|
| |
+ BuildRequires: perl(inc::Module::Install)
|
| |
+ BuildRequires: perl(Module::Install::Metadata)
|
| |
+ BuildRequires: perl(Module::Install::WriteAll)
|
| |
# Run-time:
|
| |
BuildRequires: perl(constant)
|
| |
BuildRequires: perl(Devel::Dumpvar) >= 0.04
|
| |
@@ -37,22 +42,20 @@
|
| |
|
| |
%prep
|
| |
%setup -q -n PPI-Tester-%{version}
|
| |
+ %patch -P0 -p1
|
| |
rm -rf inc/*
|
| |
- sed -i -e '/^inc\//d' MANIFEST
|
| |
+ perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
|
| |
|
| |
|
| |
%build
|
| |
# Hack, we work around weirdness in Wx probing.
|
| |
- %{__perl} Makefile.PL INSTALLDIRS=vendor || :
|
| |
- make %{?_smp_mflags}
|
| |
+ %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 || :
|
| |
+ %{make_build}
|
| |
|
| |
|
| |
%install
|
| |
- rm -rf $RPM_BUILD_ROOT
|
| |
- make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
| |
- find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
| |
- find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
| |
- chmod -R u+w $RPM_BUILD_ROOT/*
|
| |
+ %{make_install}
|
| |
+ %{_fixperms} $RPM_BUILD_ROOT/*
|
| |
|
| |
|
| |
%check
|
| |
@@ -61,7 +64,8 @@
|
| |
|
| |
|
| |
%files
|
| |
- %doc Changes LICENSE README
|
| |
+ %license LICENSE
|
| |
+ %doc Changes README
|
| |
%{_bindir}/*
|
| |
%{perl_vendorlib}/PPI/
|
| |
%{_mandir}/man1/*.1*
|
| |
@@ -69,6 +73,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Thu May 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-28
|
| |
+ - Update Makefile.PL to not use Module::Install::DSL
|
| |
+
|
| |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-27
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
| |
|
| |
Update Makefile.PL to not use Module::Install::DSL which was removed from Module-Install
Modernize a spec file - use macros %make*, update license to SPDX format, remove unneeded code