|
|
@@ -34,6 +34,8 @@
|
|
|
%define V_pdf_api2 0.65
|
|
|
%define V_pdf_api2_simple 1.1.2
|
|
|
%define V_pdf_extract 3.01
|
|
|
+%define V_pdf_create 0.08
|
|
|
+%define V_pdf_reuse 0.33
|
|
|
|
|
|
# package information
|
|
|
Name: perl-gfx
|
|
|
@@ -46,7 +48,7 @@ Class: BASE
|
|
|
Group: Perl
|
|
|
License: GPL/Artistic
|
|
|
Version: %{V_perl}
|
|
|
-Release: 20071005
|
|
|
+Release: 20071013
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.cpan.org/modules/by-module/Image/Image-Info-%{V_image_info}.tar.gz
|
|
|
@@ -59,6 +61,8 @@ Source6: http://www.cpan.org/modules/by-module/Graph/Graph-Easy-As_svg-%{V_
|
|
|
Source7: http://www.cpan.org/modules/by-module/PDF/PDF-API2-%{V_pdf_api2}.tar.gz
|
|
|
Source8: http://www.cpan.org/modules/by-module/PDF/PDF-API2-Simple-%{V_pdf_api2_simple}.tar.gz
|
|
|
Source9: http://www.cpan.org/modules/by-module/PDF/PDF-Extract-%{V_pdf_extract}.tar.gz
|
|
|
+Source10: http://www.cpan.org/modules/by-module/PDF/PDF-Create-%{V_pdf_create}.tar.gz
|
|
|
+Source11: http://www.cpan.org/modules/by-module/PDF/PDF-Reuse-%{V_pdf_reuse}.tar.gz
|
|
|
Patch0: perl-gfx.patch
|
|
|
|
|
|
# build information
|
|
|
@@ -66,8 +70,8 @@ Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
|
|
|
PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
|
|
|
-BuildPreReq: perl-ds, perl-comp
|
|
|
-PreReq: perl-ds, perl-comp
|
|
|
+BuildPreReq: perl-ds, perl-comp, perl-crypto
|
|
|
+PreReq: perl-ds, perl-comp, perl-crypto
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -83,6 +87,8 @@ AutoReqProv: no
|
|
|
- PDF::API2 (%{V_pdf_api2})
|
|
|
- PDF::API2::Simple (%{V_pdf_api2_simple})
|
|
|
- PDF::Extract (%{V_pdf_extract})
|
|
|
+ - PDF::Create (%{V_pdf_create})
|
|
|
+ - PDF::Reuse (%{V_pdf_reuse})
|
|
|
|
|
|
%track
|
|
|
prog perl-gfx:Image-Info = {
|
|
|
@@ -135,6 +141,16 @@ AutoReqProv: no
|
|
|
url = http://www.cpan.org/modules/by-module/PDF/
|
|
|
regex = PDF-Extract-(__VER__)\.tar\.gz
|
|
|
}
|
|
|
+ prog perl-gfx:PDF-Create = {
|
|
|
+ version = %{V_pdf_create}
|
|
|
+ url = http://www.cpan.org/modules/by-module/PDF/
|
|
|
+ regex = PDF-Create-(__VER__)\.tar\.gz
|
|
|
+ }
|
|
|
+ prog perl-gfx:PDF-Reuse = {
|
|
|
+ version = %{V_pdf_reuse}
|
|
|
+ url = http://www.cpan.org/modules/by-module/PDF/
|
|
|
+ regex = PDF-Reuse-(__VER__)\.tar\.gz
|
|
|
+ }
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c
|
|
|
@@ -147,6 +163,8 @@ AutoReqProv: no
|
|
|
%setup -q -T -D -a 7
|
|
|
%setup -q -T -D -a 8
|
|
|
%setup -q -T -D -a 9
|
|
|
+ %setup -q -T -D -a 10
|
|
|
+ %setup -q -T -D -a 11
|
|
|
%patch -p0
|
|
|
%{l_shtool} subst \
|
|
|
-e 's;/usr/bin/perl;%{l_prefix}/bin/perl;' \
|
|
|
@@ -159,16 +177,18 @@ AutoReqProv: no
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
%{l_prefix}/bin/perl-openpkg prepare
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
|
|
|
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
|
|
|
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
|
|
|
|