perl-Text-PDF/perl-Text-PDF.spec

Name: perl-Text-PDF
Summary: PDF Functions
Version: 0.29a
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Text-PDF/
Description: PDF functions for Perl.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: Martin Hosken <martin_hosken$sil,org>

### EL6 ships with perl-Text-PDF-0.29a-2.1.el6
%{?el6:# Tag: rfx}

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Text-PDF
%define real_version 0.29

Summary: PDF Functions
Name: perl-Text-PDF
Version: 0.29a
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Text-PDF/

Source: http://www.cpan.org/modules/by-module/Text/Text-PDF-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)

%description
PDF functions for Perl.

%prep
%setup -n %{real_name}-%{real_version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

### Clean up docs
find examples/ -type f -exec %{__chmod} a-x {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc MANIFEST MANIFEST.SKIP META.yml readme.txt examples/
%doc %{_mandir}/man3/Text::PDF.3pm*
%doc %{_mandir}/man3/Text::PDF::*.3pm*
%{_bindir}/pdfbklt
%{_bindir}/pdfrevert
%{_bindir}/pdfstamp
%dir %{perl_vendorlib}/Text/
%{perl_vendorlib}/Text/PDF/
%{perl_vendorlib}/Text/PDF.pm

%changelog
* Mon Nov 19 2007 Dag Wieers <dag@wieers.com> - 0.29a-1
- Updated to release 0.29a.

* Sun Nov 18 2007 Dag Wieers <dag@wieers.com> - 0.29-1
- Updated to release 0.29.

* Sat Apr  9 2005 Dries Verachtert <dries@ulyssis.org> - 0.25-1
- Initial package.