diff --git a/PDF-API2-2.038.tar.gz b/PDF-API2-2.038.tar.gz deleted file mode 100644 index d83dcc5..0000000 --- a/PDF-API2-2.038.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7447c4749b02a784f525d3c7ece99d34b0a10475db65096f6316748dd2f9bd09 -size 3567202 diff --git a/PDF-API2-2.039.tar.gz b/PDF-API2-2.039.tar.gz new file mode 100644 index 0000000..d9ca97f --- /dev/null +++ b/PDF-API2-2.039.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36a74318847fe92ecec45221bc78f209e194f9f979521710a89ef7baa955a123 +size 3564330 diff --git a/perl-PDF-API2.changes b/perl-PDF-API2.changes index 78e8bf3..88ef9d4 100644 --- a/perl-PDF-API2.changes +++ b/perl-PDF-API2.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Fri Mar 5 03:08:18 UTC 2021 - Tina Müller + +- updated to 2.039 + see /usr/share/doc/packages/perl-PDF-API2/Changes + + 2.039 2021-03-04 + - PDF::API2->open($filename) no longer reads the entire file into memory + before working on it, instead reading from the file as needed. This + results in a substantial reduction in memory usage and start-up time for + large PDF files, particularly in cases where the calling script doesn't + need to access all of the contents of the PDF. + - PDF files containing cross-reference streams can now be modified and saved + normally. Previously, they were read-only. + - $text->paragraph(...) and $text->paragraphs(...) (formerly "section") are + no longer undocumented and experimental. If you were previously using + them at your own risk, note that "-spillover" is no longer an option (text + will always wrap inside the specified width if possible). In addition, + paragraphs(...) no longer collapses consecutive newlines. + - [RT #98546] There is now an -align-last option for justified text to + specify how the final line should be justified. Left is still the + default. + - Code in the PDF::API2::Basic::PDF namespace was originally licensed under + the Perl Artistic License, which has been determined to not be + (L)GPL-compatible. Martin Hosken has graciously granted an MIT license + for use of his code contained in PDF::API2, so the distribution may now be + used solely under the terms of the LGPL rather than requiring both + licenses simultaneously. Many thanks to Petr Pisar for his help in + working through the licensing issues. + - Renamed $text->lead(...) to $text->leading(...). The old name is + deprecated but will continue to work. If you're modifying PDF::API2 + objects by editing their hash values instead of using these accessors, + you'll need to update your code. + - Added a -compress option (on by default) to PDF::API2->new(), open(), and + open_scalar(). If disabled, most streams won't be compressed, which can + simplify debugging. + ------------------------------------------------------------------- Tue Sep 1 03:09:29 UTC 2020 - Tina Müller diff --git a/perl-PDF-API2.spec b/perl-PDF-API2.spec index 5dd9beb..54ee8f7 100644 --- a/perl-PDF-API2.spec +++ b/perl-PDF-API2.spec @@ -1,7 +1,7 @@ # # spec file for package perl-PDF-API2 # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,16 @@ # -Name: perl-PDF-API2 -Version: 2.038 -Release: 0 %define cpan_name PDF-API2 +Name: perl-PDF-API2 +Version: 2.039 +Release: 0 Summary: Facilitates the creation and modification of PDF files License: LGPL-2.1-or-later -Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/S/SS/SSIMMS/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Compress::Zlib) >= 1.0 @@ -36,18 +34,17 @@ BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Memory::Cycle) Requires: perl(Compress::Zlib) >= 1.0 Requires: perl(Font::TTF) -Recommends: perl(PDF::API2::XS) %{perl_requires} %description Facilitates the creation and modification of PDF files %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -58,7 +55,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes PATENTS README %license LICENSE