From 56d323c7f2f55b77cf5ce920551d9e8daae415c9 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <[email protected]>
Date: Sat, 27 Aug 2016 11:30:12 +0200
Subject: Update to 0.31 and a number of minor changes

- Add perl default filter
- Pass NO_PACKLIST=1 to Makefile.PL
- Use %%license macro
- Tighten file listing
---
 .gitignore                  |  1 +
 Text-PDF-0.29-formats.patch | 19 +++++++++----------
 perl-Text-PDF.spec          | 30 ++++++++++++++++++++----------
 sources                     |  2 +-
 4 files changed, 31 insertions(+), 21 deletions(-)

diff --git a/.gitignore b/.gitignore
index 20705b3..02bec4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 Text-PDF-0.29a.tar.gz
+/Text-PDF-0.31.tar.gz
diff --git a/Text-PDF-0.29-formats.patch b/Text-PDF-0.29-formats.patch
index 9555cbb..7e7528f 100644
--- a/Text-PDF-0.29-formats.patch
+++ b/Text-PDF-0.29-formats.patch
@@ -1,17 +1,16 @@
-diff --git a/scripts/pdfbklt b/scripts/pdfbklt
-index 57b3db3..ff078cd 100644
---- a/scripts/pdfbklt
-+++ b/scripts/pdfbklt
-@@ -36,7 +36,7 @@ if (!defined $ARGV[0])
+diff -up ./scripts/pdfbklt.orig ./scripts/pdfbklt
+--- ./scripts/pdfbklt.orig     2016-08-27 11:01:51.132467199 +0200
++++ ./scripts/pdfbklt  2016-08-27 11:03:21.794000691 +0200
+@@ -38,7 +38,7 @@ if (!defined $ARGV[0])
  modifications at the end.
  
    -b num/size    Specifies which page contains the output page size details 
[1]
 -            or gives the dimensions of the page in pts (x;y) or A4,ltr,lgl,A5
-+            or gives the dimensions of the page in pts (x;y) or 
A0,A1,A2,A3,A4,A5,ltr,lgl
-   -l        Flag to indicate linear scaling
-   -p num    Specifies the number of pages on the output page (1, 2, 4) [2]
-             If 4, can be 4s to flip on short edge
-@@ -56,6 +56,14 @@ EOT
++            or gives the dimensions of the page in pts (x;y) or 
A4,A1,A2,A3,A4,A5,ltr,lgl
+   -g num[;offset] Makes up page groups, or signatures with num pages in each
+             and offset pages in the first signature.
+             num and offset must be multiples of 4
+@@ -62,6 +62,14 @@ EOT
  }
  
  %sizes=(
diff --git a/perl-Text-PDF.spec b/perl-Text-PDF.spec
index 5f8c85e..855e022 100644
--- a/perl-Text-PDF.spec
+++ b/perl-Text-PDF.spec
@@ -1,21 +1,25 @@
 Name:       perl-Text-PDF
-Version:    0.29a
-Release:    20%{?dist}
+Version:    0.31
+Release:    1%{?dist}
 # lib/Text/PDF.pm -> GPL+ or Artistic
 License:    GPL+ or Artistic
 Group:      Development/Libraries
 Summary:    Module for manipulating PDF files
-Source:     
http://search.cpan.org/CPAN/authors/id/M/MH/MHOSKEN/Text-PDF-%{version}.tar.gz
+Source:     
http://search.cpan.org/CPAN/authors/id/B/BH/BHALLISSY/Text-PDF-%{version}.tar.gz
 Patch0:     Text-PDF-0.29-formats.patch
 Url:        http://search.cpan.org/dist/Text-PDF
 Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 BuildArch:  noarch
 
+BuildRequires: perl
 BuildRequires: perl-generators
 BuildRequires: perl(Compress::Zlib)
 BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Test::Simple)
 Requires:      pdf-tools = %{version}-%{release}
 
+%{?perl_default_filter}
+
 %description
 This module allows interaction with existing PDF files directly. It
 includes various tools:
@@ -39,19 +43,17 @@ tools:
     pdfstamp  - stamp text on each page of a PDF file
 
 %prep
-# FIXME ugh.  This is the way upstream has it, tho
-%setup -q -n Text-PDF-0.29
+%setup -q -n Text-PDF-%{version}
 find . -type f -exec chmod -c -x     {} ';'
-find . -type f -exec sed -i 's/\r//' {} ';'
+sed -i 's/\r//' examples/CD.CFG
 %patch0 -p1
 
 %build
-perl Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
 %{_fixperms} %{buildroot}/*
 
 %check
@@ -59,14 +61,22 @@ make test
 
 %files
 %doc readme.txt examples/
-%{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
+%license LICENSE
+%{perl_vendorlib}/Text*
+%{_mandir}/man3/Text*.3*
 
 %files -n pdf-tools
 %doc readme.txt
 %{_bindir}/*
 
 %changelog
+* Sat Aug 27 2016 Emmanuel Seyman <[email protected]> - 0.31-1
+- Update to 0.31
+- Add perl default filter
+- Pass NO_PACKLIST=1 to Makefile.PL
+- Use %%license macro
+- Tighten file listing
+
 * Sat May 14 2016 Jitka Plesnikova <[email protected]> - 0.29a-20
 - Perl 5.24 rebuild
 
diff --git a/sources b/sources
index 208c13e..2bd9d5f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2fdf4c3170e53a083715888237914a9b  Text-PDF-0.29a.tar.gz
+bf63812e65f2e2012e10e422a637760a  Text-PDF-0.31.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Text-PDF.git/commit/?h=master&id=56d323c7f2f55b77cf5ce920551d9e8daae415c9
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
https://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to