From 6008f0017ee4ddea5b04b1d81fa7eff28e642b8e07d092fea247ba3ad6fc35e4 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 11 Jan 2012 09:43:04 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-API2?expand=0&rev=20 --- PDF-API2-0.72.003.tar.bz2 | 3 -- PDF-API2-2.019.tar.gz | 3 ++ UnicodeData.txt.bz2 | 3 ++ perl-PDF-API2.changes | 58 ++++++++++++++++++++++++ perl-PDF-API2.spec | 93 ++++++++++++++++++++------------------- 5 files changed, 112 insertions(+), 48 deletions(-) delete mode 100644 PDF-API2-0.72.003.tar.bz2 create mode 100644 PDF-API2-2.019.tar.gz create mode 100644 UnicodeData.txt.bz2 diff --git a/PDF-API2-0.72.003.tar.bz2 b/PDF-API2-0.72.003.tar.bz2 deleted file mode 100644 index 1a87866..0000000 --- a/PDF-API2-0.72.003.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4cf6248a8a932ff051caf89e468cc300e1493c40acb66a202411dff788e920c9 -size 6212502 diff --git a/PDF-API2-2.019.tar.gz b/PDF-API2-2.019.tar.gz new file mode 100644 index 0000000..411e3d5 --- /dev/null +++ b/PDF-API2-2.019.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93385cf3d6b74583195572c0018706e4f7ab95c81f1ab50efc46b18dec44bc13 +size 3496615 diff --git a/UnicodeData.txt.bz2 b/UnicodeData.txt.bz2 new file mode 100644 index 0000000..e22aa7e --- /dev/null +++ b/UnicodeData.txt.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b4b03725d313f0cc1056b80a4ea6d30a3b0a959316228c60b7a05e958d90486 +size 159460 diff --git a/perl-PDF-API2.changes b/perl-PDF-API2.changes index 7702ab9..510c74c 100644 --- a/perl-PDF-API2.changes +++ b/perl-PDF-API2.changes @@ -1,3 +1,61 @@ +------------------------------------------------------------------- +Tue Sep 6 22:18:58 UTC 2011 - jw@suse.com + +- workround broken Unicode::UCD in 11.4 and 11.3: + We providing our own UnicodeData.txt to make + t/00-all-usable.t happy. + +------------------------------------------------------------------- +Thu Mar 31 18:41:56 UTC 2011 - coolo@novell.com + +- update to 2.019 + - [RT #66167] Fix a typo in the require statement for code128 + barcodes (TC Kuan). + + - Numerous modules are now only loaded when they're needed, which + should help speed up the load time and reduce the memory + footprint. + + - Test coverage is up to about 45% of the codebase. + + - The tests in 2.017 exposed a floating point issue where some + computers give more trailing zeros than others. It doesn't + affect the output, but it does break the tests on those + computers, since the PDFs are slightly different. This version + modifies the float() method to remove trailing zeros, which + should fix the test breakage and give consistent PDFs. + + - The DejaVu fonts have been removed from the distribution, since + they were only used by one example script. If you need them for + your project, you can download them from http://dejavu-fonts.org + +------------------------------------------------------------------- +Fri Dec 10 11:02:36 UTC 2010 - coolo@novell.com + +- fix buildrequires + +------------------------------------------------------------------- +Wed Dec 1 13:34:25 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Mon Nov 29 18:30:51 UTC 2010 - coolo@novell.com + +- remove /var/adm/perl-modules + +------------------------------------------------------------------- +Sun Nov 28 11:37:55 UTC 2010 - coolo@novell.com + +- remove .packlist file + +------------------------------------------------------------------- +Fri Jan 8 17:56:27 UTC 2010 - coolo@novell.com + +- update to version 0.73 + - only released to get a "final" version +- build require perl-doc for the test suite + ------------------------------------------------------------------- Mon Jul 27 14:37:05 CEST 2009 - coolo@novell.com diff --git a/perl-PDF-API2.spec b/perl-PDF-API2.spec index 8a51042..d3e7523 100644 --- a/perl-PDF-API2.spec +++ b/perl-PDF-API2.spec @@ -1,64 +1,67 @@ # -# spec file for package perl-PDF-API2 +# spec file for package perl-PDF-API2 (Version 2.019) +# +# 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.72.003 -Release: 1 -Vendor: openSUSE-Education -Source: %{real_name}-%{version}.tar.bz2 -Requires: perl = %{perl_version} -%if 0%{?suse_version} < 1100 -BuildRequires: perl-Compress-Zlib -%endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Name: perl-PDF-API2 +Version: 2.019 +Release: 1 +License: LGPLv2+ +%define cpan_name PDF-API2 +Summary: Facilitates the creation and modification of PDF files +Url: http://search.cpan.org/dist/PDF-API2/ +Group: Development/Libraries/Perl +#Source: http://www.cpan.org/authors/id/S/SS/SSIMMS/PDF-API2-%{version}.tar.gz +Source: %{cpan_name}-%{version}.tar.gz +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} %description -PDF::API2 - A Perl Module Chain to faciliate the Creation and Modification of -High-Quality "Portable Document Format (aka. PDF)" Files. - -Author: -------- - alfred reibenschuh - +sorry, no description found %prep -%setup -n %{real_name}-%{version} +%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 %build -perl Makefile.PL -make %{?jobs:-j%jobs} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check -make test +%{__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 +%perl_gen_filelist %clean -rm -rf %{buildroot} +%{__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_vendorarch}/auto/PDF/API2/.packlist -%{perl_vendorlib}/PDF/* -/var/adm/perl-modules/%{name} +%files -f %{name}.files +%defattr(644,root,root,755) +%doc Changes CONTACT contrib examples HACKING LICENSE PATENTS README -%changelog +%changelog