perl-perlfaq/perl-perlfaq.spec

62 lines
1.7 KiB
RPMSpec
Raw Normal View History

2015-07-10 11:18:45 +00:00
Name: perl-perlfaq
2015-07-29 11:04:08 +00:00
Version: 5.021010
Release: 1%{?dist}
2015-07-10 11:18:45 +00:00
Summary: Frequently asked questions about Perl
# Code examples are Public Domain
License: (GPL+ or Artistic) and Public Domain
Group: Development/Libraries
URL: http://search.cpan.org/dist/perlfaq/
2015-07-29 11:04:08 +00:00
Source0: http://www.cpan.org/authors/id/L/LL/LLAP/perlfaq-%{version}.tar.gz
2015-07-10 11:18:45 +00:00
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
2015-07-29 11:04:08 +00:00
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
2015-07-10 11:18:45 +00:00
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
2015-07-29 11:04:08 +00:00
BuildRequires: sed
2015-07-10 11:18:45 +00:00
# Tests:
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More)
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.
%prep
%setup -q -n perlfaq-%{version}
2015-07-29 11:04:08 +00:00
# Do not install README.pod,
# <https://github.com/perl-doc-cats/perlfaq/issues/61>
rm README.pod
sed -i -e '/^README\.pod/d' MANIFEST
2015-07-10 11:18:45 +00:00
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
2015-07-29 11:04:08 +00:00
* Wed Jul 29 2015 Petr Pisar <ppisar@redhat.com> - 5.021010-1
- 5.021010 bump
* Thu Jul 02 2015 Petr Pisar <ppisar@redhat.com> 5.021009-348
2015-07-10 11:18:45 +00:00
- Specfile autogenerated by cpanspec 1.78.