Package init
This commit is contained in:
commit
5afdc825b6
56
perl-perlfaq.spec
Normal file
56
perl-perlfaq.spec
Normal file
@ -0,0 +1,56 @@
|
||||
%global perl_package_name perlfaq
|
||||
Name: perl-perlfaq
|
||||
Version: 5.20180915
|
||||
Release: 4
|
||||
Summary: Frequently asked questions about Perl
|
||||
License: (GPL+ or Artistic) and Public Domain
|
||||
URL: https://metacpan.org/release/perlfaq
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{perl_package_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: gcc git make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(Test::Simple)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Conflicts: perl < 4:5.22.0-347
|
||||
|
||||
%description
|
||||
The perlfaq comprises several documents that answer the most commonly asked
|
||||
questions about Perl and Perl programming.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n %{perl_package_name}-%{version} -S git
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||||
%{_fixperms} -c $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/*
|
||||
|
||||
%files help
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Thu Sep 26 2019 shenyangyang<shenyangyang4@huawei.com> -5.20180915-4
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:revise help package
|
||||
|
||||
* Tue Aug 13 2019 openEuler Buildteam <buildteam@openeuler.com> -5.20180915-3
|
||||
- Package Init
|
||||
BIN
perlfaq-5.20180915.tar.gz
Normal file
BIN
perlfaq-5.20180915.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user