|
|
861813 |
%{?scl:%scl_package perl-Pod-Usage}
|
|
|
861813 |
%{!?scl:%global pkg_name %{name}}
|
|
|
861813 |
|
|
|
861813 |
Name: %{?scl_prefix}perl-Pod-Usage
|
|
|
861813 |
Version: 1.63
|
|
|
861813 |
Release: 2%{?dist}
|
|
|
861813 |
Summary: Print a usage message from embedded POD documentation
|
|
|
861813 |
License: GPL+ or Artistic
|
|
|
861813 |
Group: Development/Libraries
|
|
|
861813 |
URL: http://search.cpan.org/dist/Pod-Usage/
|
|
|
861813 |
Source0: http://www.cpan.org/authors/id/M/MA/MAREKR/Pod-Usage-%{version}.tar.gz
|
|
|
861813 |
BuildArch: noarch
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl
|
|
|
861813 |
# scripts/pod2usage.PL uses Cwd
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(Cwd)
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker)
|
|
|
861813 |
# scripts/pod2usage.PL uses File::Basename
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(File::Basename)
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(File::Spec) >= 0.82
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(strict)
|
|
|
861813 |
# Run-time:
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(Carp)
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(Config)
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(Exporter)
|
|
|
861813 |
# Getopt::Long not used, scripts/pod2usage not called
|
|
|
861813 |
# Pod::Usage executes perldoc from perl-Pod-Perldoc by default
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl-Pod-Perldoc
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(Pod::Text) >= 3.15
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(vars)
|
|
|
861813 |
# Tests:
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(FileHandle)
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(Pod::PlainText)
|
|
|
861813 |
BuildRequires: %{?scl_prefix}perl(Test::More) >= 0.6
|
|
|
861813 |
%{?scl:%global perl_version %(scl enable %{scl} 'eval "`perl -V:version`"; echo $version')}
|
|
|
861813 |
%{!?scl:%global perl_version %(eval "`perl -V:version`"; echo $version)}
|
|
|
861813 |
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version})
|
|
|
861813 |
Requires: %{?scl_prefix}perl(File::Spec) >= 0.82
|
|
|
861813 |
# Pod::Usage executes perldoc from perl-Pod-Perldoc by default
|
|
|
861813 |
Requires: %{?scl_prefix}perl-Pod-Perldoc
|
|
|
861813 |
Requires: %{?scl_prefix}perl(Pod::Text) >= 3.15
|
|
|
861813 |
|
|
|
861813 |
# Remove under-specified dependencies
|
|
|
861813 |
%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}perl\\(File::Spec\\)$
|
|
|
861813 |
|
|
|
861813 |
%if ( 0%{?rhel} && 0%{?rhel} < 7 )
|
|
|
861813 |
%filter_from_requires /perl(File::Spec)$/d
|
|
|
861813 |
%filter_setup
|
|
|
861813 |
%endif
|
|
|
861813 |
|
|
|
861813 |
%description
|
|
|
861813 |
pod2usage will print a usage message for the invoking script (using its
|
|
|
861813 |
embedded POD documentation) and then exit the script with the desired exit
|
|
|
861813 |
status. The usage message printed may have any one of three levels of
|
|
|
861813 |
"verboseness": If the verbose level is 0, then only a synopsis is printed.
|
|
|
861813 |
If the verbose level is 1, then the synopsis is printed along with a
|
|
|
861813 |
description (if present) of the command line options and arguments. If the
|
|
|
861813 |
verbose level is 2, then the entire manual page is printed.
|
|
|
861813 |
|
|
|
861813 |
%prep
|
|
|
861813 |
%setup -q -n Pod-Usage-%{version}
|
|
|
861813 |
find -type f -exec chmod a-x {} +
|
|
|
861813 |
for F in CHANGES README; do
|
|
|
861813 |
sed -i -e 's/\r//' "$F"
|
|
|
861813 |
done
|
|
|
861813 |
|
|
|
861813 |
%build
|
|
|
861813 |
%{?scl:scl enable %{scl} "}
|
|
|
861813 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
861813 |
%{?scl:"}
|
|
|
861813 |
%{?scl:scl enable %{scl} "}
|
|
|
861813 |
make %{?_smp_mflags}
|
|
|
861813 |
%{?scl:"}
|
|
|
861813 |
|
|
|
861813 |
%install
|
|
|
861813 |
%{?scl:scl enable %{scl} "}
|
|
|
861813 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
861813 |
%{?scl:"}
|
|
|
861813 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
861813 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
861813 |
|
|
|
861813 |
%check
|
|
|
861813 |
%{?scl:scl enable %{scl} "}
|
|
|
861813 |
make test
|
|
|
861813 |
%{?scl:"}
|
|
|
861813 |
|
|
|
861813 |
%files
|
|
|
861813 |
%doc CHANGES README
|
|
|
861813 |
%{_bindir}/*
|
|
|
861813 |
%{perl_vendorlib}/*
|
|
|
861813 |
%{_mandir}/man1/*
|
|
|
861813 |
%{_mandir}/man3/*
|
|
|
861813 |
|
|
|
861813 |
%changelog
|
|
|
861813 |
* Thu Feb 13 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.63-2
|
|
|
861813 |
- Updated conditions to work properly for non-RHEL systems
|
|
|
861813 |
- Resolves: rhbz#1064855
|
|
|
861813 |
|
|
|
861813 |
* Mon Nov 18 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.63-1
|
|
|
861813 |
- 1.63 bump
|
|
|
861813 |
|
|
|
861813 |
* Mon Feb 18 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.61-1
|
|
|
861813 |
- SCL package - initial import
|