perl-File-Find-Rule-Perl/perl-File-Find-Rule-Perl.spec

69 lines
2.2 KiB
RPMSpec
Raw Normal View History

%global _empty_manifest_terminate_build 0
2020-08-10 14:52:13 +08:00
Name: perl-File-Find-Rule-Perl
2022-06-21 18:16:28 +08:00
Version: 1.16
Release: 1
2020-08-10 14:52:13 +08:00
Summary: Common rules for searching for Perl things
2022-06-21 18:16:28 +08:00
License: GPL-1.0-or-later or Artistic-1.0
Group: Development/Libraries
URL: http://search.cpan.org/dist/File-Find-Rule-Perl/
Source0: http://www.cpan.org/authors/id/E/ET/ETHER/File-Find-Rule-Perl-%{version}.tar.gz
2022-06-21 18:16:28 +08:00
# Filter out the files rpm generates in sourcedir.
Patch0001: 0001-File-Find-Rule-Perl-1.16-fedora.patch
2020-08-10 14:52:13 +08:00
BuildArch: noarch
BuildRequires: perl >= 0:5.006
2020-08-10 14:52:13 +08:00
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find::Rule) >= 0.20
BuildRequires: perl(File::Spec) >= 0.82
BuildRequires: perl(Params::Util) >= 0.38
BuildRequires: perl(Parse::CPAN::Meta) >= 1.38
BuildRequires: perl(Test::More)
Requires: perl(File::Find::Rule) >= 0.20
Requires: perl(File::Spec) >= 0.82
Requires: perl(Params::Util) >= 0.38
Requires: perl(Parse::CPAN::Meta) >= 1.38
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
2020-08-10 14:52:13 +08:00
%description
I write a lot of things that muck with Perl files. And it always annoyed
me that finding "perl files" requires a moderately complex
File::Find::Rule pattern.
%package help
Summary : Common rules for searching for Perl things
Provides: perl-File-Find-Rule-Perl-doc
%description help
I write a lot of things that muck with Perl files. And it always annoyed
me that finding "perl files" requires a moderately complex
File::Find::Rule pattern.
2020-08-10 14:52:13 +08:00
%prep
2021-06-30 16:51:18 +08:00
%autosetup -n File-Find-Rule-Perl-%{version} -p1
2020-08-10 14:52:13 +08:00
%build
2022-06-21 18:16:28 +08:00
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
2020-08-10 14:52:13 +08:00
%install
2022-06-21 18:16:28 +08:00
%{make_install} DESTDIR="$RPM_BUILD_ROOT"
%{_fixperms} "$RPM_BUILD_ROOT"/*
2020-08-10 14:52:13 +08:00
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
2022-06-21 18:16:28 +08:00
%files
%defattr(-,root,root,-)
2022-06-21 18:16:28 +08:00
%doc Changes
%{perl_vendorlib}/*
%files help
%{_mandir}/*
2020-08-10 14:52:13 +08:00
%changelog
2022-06-21 18:16:28 +08:00
* Tue Jun 21 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.16-1
- Upgrade to version 1.16
2021-06-30 16:51:18 +08:00
* Wed Jun 30 2021 lingsheng <lingsheng@huawei.com> 1.15-2
- Add ignore files to fix test fail
2020-08-13 15:56:20 +08:00
* Wed Aug 12 2020 weidong <weidong@uniontech.com> 1.15-1
2020-08-10 14:52:13 +08:00
- Initial release for OpenEuler