Import
This commit is contained in:
parent
1aaae12e01
commit
cc274255a6
|
@ -0,0 +1 @@
|
|||
/Pod-Perldoc-3.15_10.tar.gz
|
|
@ -0,0 +1,66 @@
|
|||
%global cpan_version 3.15_10
|
||||
Name: perl-Pod-Perldoc
|
||||
Version: %(eval echo '%{cpan_version}' | tr '_' '.')
|
||||
Release: 1%{?dist}
|
||||
Summary: Look up Perl documentation in Pod format
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Pod-Perldoc/
|
||||
Source0: http://www.cpan.org/authors/id/F/FE/FERREIRA/Pod-Perldoc-%{cpan_version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(File::Spec::Functions)
|
||||
# Tests:
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(parent)
|
||||
BuildRequires: perl(Pod::Man) >= 2.18
|
||||
BuildRequires: perl(Pod::Simple::RTF) >= 3.16
|
||||
BuildRequires: perl(Pod::Simple::XMLOutStream) >= 3.16
|
||||
BuildRequires: perl(Pod::Text)
|
||||
BuildRequires: perl(Test::More)
|
||||
# Optional tests:
|
||||
#BuildRequires: perl(Tk)
|
||||
#BuildRequires: perl(Tk::Pod) # Not yet packaged
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(File::Temp) >= 0.22
|
||||
Requires: perl(Pod::Simple::RTF) >= 3.16
|
||||
Requires: perl(Pod::Simple::XMLOutStream) >= 3.16
|
||||
Requires: perl(Text::ParseWords)
|
||||
|
||||
# Remove underspecified dependencies
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Pod::Man|Pod::Simple::XMLOutStream\\)\\s*$
|
||||
|
||||
%description
|
||||
perldoc looks up a piece of documentation in .pod format that is embedded
|
||||
in the perl installation tree or in a perl script, and displays it via
|
||||
"groff -man | $PAGER". This is primarily used for the documentation for
|
||||
the perl library modules.
|
||||
|
||||
%prep
|
||||
%setup -q -n Pod-Perldoc-%{cpan_version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes README
|
||||
%{_bindir}/perldoc
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon Nov 21 2011 Petr Pisar <ppisar@redhat.com> 3.15-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
- Remove BuildRoot and defattr from spec code.
|
Loading…
Reference in New Issue