File perl-Pod-Abstract.spec of Package perl-Pod-Abstract

# vim: set sw=4 ts=4 et nu:

Name:           perl-Pod-Abstract
Version:        0.20
Release:        0
Summary:        Load POD Documents
Source:         http://search.cpan.org/CPAN/authors/id/B/BL/BLILBURNE/Pod-Abstract-%{version}.tar.gz
URL:            http://search.cpan.org/dist/Pod-Abstract
Group:          Development/Libraries/Perl
License:        Perl License
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
Requires:       perl = %{perl_version}
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  make
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(IO::String)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Pod::Parser)
BuildRequires:  perl(Task::Weaken)
Requires:       perl(Scalar::Util)
Requires:       perl(IO::String)
Requires:       perl(File::Temp)
Requires:       perl(Pod::Parser)
Requires:       perl(Task::Weaken)

%description
POD::Abstract provides a means to load a POD (or POD compatible) document
without direct reference to it's syntax, and perform manipulations on the
abstract syntax tree.
This can be used to support additional features for POD, to format output,
to compile into alternative formats, etc.

%package -n paf
Summary:        Load POD Documents
Group:          Development/Tools/Other
Requires:       %{name} = %{version}
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif

%description -n paf
POD::Abstract provides a means to load a POD (or POD compatible) document
without direct reference to it's syntax, and perform manipulations on the
abstract syntax tree.
This can be used to support additional features for POD, to format output,
to compile into alternative formats, etc.

%prep
%setup -q -n "Pod-Abstract-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL

%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}

%install
%perl_make_install
%perl_process_packlist

mkdir .rpmdoc
for f in Changes README; do
    %__ln_s -f ../%{name}/$f .rpmdoc/$f
done

find "%{buildroot}%{perl_vendorlib}" -type f -name '*.pm' -exec %__chmod 0644 {} \;

%check
%__make test

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Pod
%{perl_vendorlib}/Pod/Abstract.pm
%{perl_vendorlib}/Pod/Abstract
%dir %{perl_vendorarch}/auto/Pod
%{perl_vendorarch}/auto/Pod/Abstract
%doc %{perl_man3dir}/Pod::Abstract.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Pod::Abstract::*.%{perl_man3ext}%{ext_man}

%files -n paf
%defattr(-,root,root)
%doc .rpmdoc/*
%{_bindir}/paf
%doc %{_mandir}/man1/paf.1%{ext_man}

openSUSE Build Service is sponsored by