2012-01-22 17:16:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-PDF-Table
|
|
|
|
#
|
2025-04-27 00:55:56 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2012-01-22 17:16:25 +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.
|
|
|
|
|
2019-07-02 05:35:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-22 17:16:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-01-04 14:23:08 +00:00
|
|
|
%define cpan_name PDF-Table
|
2012-01-22 17:16:25 +00:00
|
|
|
Name: perl-PDF-Table
|
2025-04-27 00:55:56 +00:00
|
|
|
Version: 1.7.0
|
2012-01-22 17:16:25 +00:00
|
|
|
Release: 0
|
2025-04-27 00:55:56 +00:00
|
|
|
# 1.007 -> normalize -> 1.7.0
|
|
|
|
%define cpan_version 1.007
|
2018-03-05 05:54:05 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-08-24 09:05:44 +00:00
|
|
|
Summary: Utility class for building table layouts in a PDF::Builder
|
2020-08-08 11:45:52 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
Accepting request 1160771 from devel:languages:perl:autoupdate
- updated to 1.006
see /usr/share/doc/packages/perl-PDF-Table/Changes
=== Version 1.006 (2024-03-20)
examples/*.pl
Add ability to read an ENV environmental variable 'PDF_prefLib' to get
the preferred library to use (API2 or Builder). Checks for command line
A or B (or -A -B), ENV{PDF_prefLib} A or B, PDF::API2 or PDF::Builder,
examples/PDFpref file A or B, PDF::API2 or PDF::Builder. This is of
real interest only when BOTH libraries are installed, and you need to
pick one or the other to run with.
Note that util/3_examples.pl also has the ability to give 'A' or 'B'
on the command line to indicate a preference for API2 or Builder (if
both are installed).
Note that the t-tests use a dummy library PDFAPI2Mock, that provides
enough of the interface to let the tests be run, regardless of whether
you already have API2 or Builder installed! However, you will still need
to have at least one of the two installed in order to run the examples
or otherwise use PDF::Table.
lib/PDF/Table.pm, examples/no_repeat.pl (new), util/3_examples
Was incorrectly defaulting undefined header repeat switch, in a manner
that did not allow the switch to be '0': no repeating the header (#77).
Add new example of multipage table without repeating header.
README.md update to point to new Home Page structure on catskilltech.com
including both full documentation and examples
OBS-URL: https://build.opensuse.org/request/show/1160771
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-Table?expand=0&rev=16
2024-04-06 12:55:06 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OM/OMEGA/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-06-09 07:54:03 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:16:24 +02:00
|
|
|
Source100: README.md
|
2015-06-09 07:54:03 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2012-01-22 17:16:25 +00:00
|
|
|
BuildRequires: perl-macros
|
Accepting request 1160771 from devel:languages:perl:autoupdate
- updated to 1.006
see /usr/share/doc/packages/perl-PDF-Table/Changes
=== Version 1.006 (2024-03-20)
examples/*.pl
Add ability to read an ENV environmental variable 'PDF_prefLib' to get
the preferred library to use (API2 or Builder). Checks for command line
A or B (or -A -B), ENV{PDF_prefLib} A or B, PDF::API2 or PDF::Builder,
examples/PDFpref file A or B, PDF::API2 or PDF::Builder. This is of
real interest only when BOTH libraries are installed, and you need to
pick one or the other to run with.
Note that util/3_examples.pl also has the ability to give 'A' or 'B'
on the command line to indicate a preference for API2 or Builder (if
both are installed).
Note that the t-tests use a dummy library PDFAPI2Mock, that provides
enough of the interface to let the tests be run, regardless of whether
you already have API2 or Builder installed! However, you will still need
to have at least one of the two installed in order to run the examples
or otherwise use PDF::Table.
lib/PDF/Table.pm, examples/no_repeat.pl (new), util/3_examples
Was incorrectly defaulting undefined header repeat switch, in a manner
that did not allow the switch to be '0': no repeating the header (#77).
Add new example of multipage table without repeating header.
README.md update to point to new Home Page structure on catskilltech.com
including both full documentation and examples
OBS-URL: https://build.opensuse.org/request/show/1160771
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-Table?expand=0&rev=16
2024-04-06 12:55:06 +00:00
|
|
|
Provides: perl(PDF::Table) = %{version}
|
|
|
|
Provides: perl(PDF::Table::ColumnWidth) = %{version}
|
|
|
|
Provides: perl(PDF::Table::Settings) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2015-06-09 07:54:03 +00:00
|
|
|
%{perl_requires}
|
2012-01-22 17:16:25 +00:00
|
|
|
|
|
|
|
%description
|
2022-08-24 09:05:44 +00:00
|
|
|
This class is a utility for use with the PDF::Builder (or PDF::API2)
|
|
|
|
module from CPAN. It can be used to display text data in a
|
2020-11-04 10:13:09 +00:00
|
|
|
table layout within a PDF. The text data must be in a 2D array (such as
|
|
|
|
returned by a DBI statement handle 'fetchall_arrayref()' call). PDF::Table
|
|
|
|
will automatically add as many new pages as necessary to display all of the
|
2020-08-08 11:45:52 +00:00
|
|
|
data. Various layout properties, such as font, font size, cell padding, and
|
|
|
|
background color can be specified for each column and/or for even/odd rows.
|
|
|
|
Also a (non)repeated header row with different layout properties can be
|
|
|
|
specified.
|
2015-06-09 07:54:03 +00:00
|
|
|
|
2012-01-22 17:16:25 +00:00
|
|
|
%prep
|
2025-04-27 00:55:56 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2012-01-22 17:16:25 +00:00
|
|
|
|
|
|
|
%build
|
2019-07-02 05:35:34 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-01-04 14:23:08 +00:00
|
|
|
%make_build
|
2015-06-09 07:54:03 +00:00
|
|
|
|
|
|
|
%check
|
2019-07-02 05:35:34 +00:00
|
|
|
make test
|
2012-01-22 17:16:25 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2015-06-09 07:54:03 +00:00
|
|
|
%perl_gen_filelist
|
2012-01-22 17:16:25 +00:00
|
|
|
|
2015-06-09 07:54:03 +00:00
|
|
|
%files -f %{name}.files
|
Accepting request 1065466 from devel:languages:perl:autoupdate
- updated to 1.005
see /usr/share/doc/packages/perl-PDF-Table/Changes
=== Version 1.005 (2023-01-28)
lib/PDF/Table.pm
Update cell checking when using markup, so that anything which CAN be by
default stringified, will be. Some customers are using default or implicit
stringification of objects, which was being caught as an unsupported data
type, and rendered as "(invalid)" in a cell. The downside is that if you
send something nonsensical (e.g., reference to a SCALAR), you will see the
stringified reference (address), as done in the 1.003 and earlier versions.
Makefile.PL remove PROVIDES clause, as was getting build warnings about it.
=== Version 1.004 (2023-01-21)
lib/PDF/Table.pm, lib/PDF/Table.pod, INFO/SPONSORS (new), INFO/Table.html,
MANIFEST
For PDF::Builder ONLY, allow specification of cell 'markup' (Markdown
or HTML), to permit great flexibility in cell content. See PDF::Builder's
examples/Column.pl for an example of usage.
This work (as well as markup changes for PDF::Builder) has been kindly
sponsored by Amtivo Group (see INFO/SPONSORS).
lib/PDF/Table.pm, examples/sample1-size-vsizes.pl
The 'Times' font should be named 'Times-Roman', to conform with the correct
core font naming. PDF::Builder no longer silently accepts 'Times' as an
alias for 'Times-Roman', and now gives a warning.
xt/manifest.t, xt/pod.t, MANIFEST, util/2_t-tests.pl
Move author tests from t/ to xt/
examples/chess.pl
PDF::API2 (PREVIOUS to release 2.044) has a bug in its TTF
handling, where it fails to translate some Unicode points ("U+nnnn" number)
to the appropriate font glyph entry, and instead puts the Unicode point
in the glyph list. This is incorrect, and usually results in a mismapping.
As of PDF::API2 v 2.044, chess.pl seems to be working again.
examples/*.pl
If command line -A or -B, add prefix A_ or B_ to the output file name. This
can be useful when using -A or -B with util/3_examples.pl to generate
different output PDFs for PDF::API2 and PDF::Builder. Keep in mind that an
example given without -A or -B will not add the prefix.
lib/PDF/Table.pm, lib/PDF/Table.pod, INFO/Table.html,
examples/vsizes.pl (new), util/3_examples.pl
Dry run to return vertical size (overall, header, [footer], each row),
no output to PDF, with "ink" set to 0.
lib/PDF/Table.pod (moved), MANIFEST, util/pod2cpanhtml.pl, Makefile.PL
Move .pod up a level (thanks to "perlpunk")
lib/PDF/Table/Table.pod, INFO/Table.html, examples/chess.pl,
INFO/Changes_2019, lib/PDF/Table.pm
Typos caught by lintian (via emollier) and codespell (via mdeweerd).
CONTRIBUTING, MANIFEST add Contribution guide
OBS-URL: https://build.opensuse.org/request/show/1065466
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PDF-Table?expand=0&rev=15
2023-02-15 17:15:58 +00:00
|
|
|
%doc Changes CONTRIBUTING.md examples PDFpref README.md util
|
2022-08-24 09:05:44 +00:00
|
|
|
%license LICENSE
|
2012-01-22 17:16:25 +00:00
|
|
|
|
|
|
|
%changelog
|