2008-11-30 05:20:28 +00:00
|
|
|
#
|
2012-06-07 15:15:27 +00:00
|
|
|
# spec file for package perl-PDF-API2
|
2008-11-30 05:20:28 +00:00
|
|
|
#
|
2013-08-01 11:54:44 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-01-11 09:43:04 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2008-11-30 05:20:28 +00:00
|
|
|
|
2012-01-11 09:43:04 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2008-11-30 05:20:28 +00:00
|
|
|
|
2012-06-07 15:15:27 +00:00
|
|
|
|
2012-01-11 09:43:04 +00:00
|
|
|
Name: perl-PDF-API2
|
|
|
|
%define cpan_name PDF-API2
|
|
|
|
Summary: Facilitates the creation and modification of PDF files
|
2012-06-07 15:15:27 +00:00
|
|
|
License: LGPL-2.1+
|
2012-01-11 09:43:04 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-08-01 11:54:44 +00:00
|
|
|
Version: 2.020
|
2012-06-07 15:15:27 +00:00
|
|
|
Release: 0
|
|
|
|
Url: http://search.cpan.org/dist/PDF-API2/
|
|
|
|
Source: http://www.cpan.org/authors/id/S/SS/SSIMMS/PDF-API2-%{version}.tar.gz
|
2012-01-11 09:43:04 +00:00
|
|
|
Source1: UnicodeData.txt.bz2
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Font::TTF)
|
|
|
|
Requires: perl(Font::TTF)
|
|
|
|
%{perl_requires}
|
2008-11-30 05:20:28 +00:00
|
|
|
|
|
|
|
%description
|
2012-06-07 15:15:27 +00:00
|
|
|
This module facilitates the creation and modification of PDF files.
|
2008-11-30 05:20:28 +00:00
|
|
|
|
|
|
|
%prep
|
2012-01-11 09:43:04 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%if 0%{?suse_version} == 1140 || 0%{?suse_version} == 1130
|
|
|
|
# workaround for broken Unicode::UCD needed by t/00-all-usable.t
|
|
|
|
mkdir unicore
|
|
|
|
bzip2 -dc < %{S:1} > unicore/UnicodeData.txt
|
|
|
|
%endif
|
2008-11-30 05:20:28 +00:00
|
|
|
|
|
|
|
%build
|
2012-01-11 09:43:04 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2008-11-30 05:20:28 +00:00
|
|
|
|
|
|
|
%check
|
2012-01-11 09:43:04 +00:00
|
|
|
%{__make} test
|
2008-11-30 05:20:28 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2012-01-11 09:43:04 +00:00
|
|
|
%perl_gen_filelist
|
2008-11-30 05:20:28 +00:00
|
|
|
|
|
|
|
%clean
|
2012-01-11 09:43:04 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2008-11-30 05:20:28 +00:00
|
|
|
|
2012-01-11 09:43:04 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(644,root,root,755)
|
2013-08-01 11:54:44 +00:00
|
|
|
%doc Changes CONTACT contrib examples LICENSE PATENTS README
|
2008-11-30 05:20:28 +00:00
|
|
|
|
2012-01-11 09:43:04 +00:00
|
|
|
%changelog
|