File perl-PDF-API2.spec of Package perl-PDF-API2

#
# spec file for package perl-PDF-API2 (Version 0.73)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-PDF-API2
%define        real_name PDF-API2
Summary:        Perl Module Chain to faciliate the Creation and Modification of PDF Files
Url:            http://search.cpan.org/perldoc?PDF::API2
Group:          Development/Libraries/Perl
License:        Artistic License ..
Version:        0.73
Release:        7
Source:         %{real_name}-%{version}.tar.bz2
%if 0%{?suse_version} < 1100
BuildRequires:  perl-Compress-Zlib
%endif 
BuildRequires:  perl perl-doc perl-macros
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}

%description
PDF::API2 - A Perl Module Chain to faciliate the Creation and Modification of
High-Quality "Portable Document Format (aka. PDF)" Files.

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

%build
perl Makefile.PL 
make %{?jobs:-j%jobs}

%check
make test

%install
%perl_make_install
%perl_process_packlist
for filename in AUTHORS CONTACT COPYING LICENSE MANIFEST README TODO VERSION; do
    perl -pi -e 's/\r\n/\n/g' $filename
done

%clean
rm -rf %{buildroot}

%files 
%defattr(-, root, root)
%doc AUTHORS CONTACT COPYING LICENSE MANIFEST README TODO VERSION
%dir %{perl_vendorarch}/auto/PDF
%dir %{perl_vendorarch}/auto/PDF/API2
%dir %{perl_vendorlib}/PDF
%dir %{perl_vendorlib}/PDF/API2
%dir %{perl_vendorlib}/PDF/API2/fonts
%{perl_vendorlib}/PDF/*

%changelog