!1 init perl-Regexp-Common package
Merge pull request !1 from myeuler/master
This commit is contained in:
commit
ea920ffc28
BIN
Regexp-Common-2017060201.tar.gz
Normal file
BIN
Regexp-Common-2017060201.tar.gz
Normal file
Binary file not shown.
46
perl-Regexp-Common.spec
Normal file
46
perl-Regexp-Common.spec
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
Name: perl-Regexp-Common
|
||||||
|
Version: 2017060201
|
||||||
|
Release: 1
|
||||||
|
Summary: Perl Module : Regexp::Common
|
||||||
|
License: BSD or MIT
|
||||||
|
URL: https://metacpan.org/release/Regexp-Common
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/A/AB/ABIGAIL/Regexp-Common-2017060201.tar.gz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl-Test-Regexp
|
||||||
|
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
Obsoletes: %{name}-tests < %{version}-%{release}
|
||||||
|
Provides: %{name}-tests = %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Regexp::Common - Provide commonly requested regular expressions
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n Regexp-Common-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL NO_PACKLIST=1 INSTALLDIRS=vendor
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%license LICENSE
|
||||||
|
%doc TODO README
|
||||||
|
%{perl_vendorlib}/Regexp
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user