|
|
@@ -27,6 +27,7 @@
|
|
|
%define V_gtk_perl 0.7009
|
|
|
%define V_extutils_depends 0.205
|
|
|
%define V_extutils_pkgconfig 1.07
|
|
|
+%define V_cairo 0.02
|
|
|
%define V_glib 1.110
|
|
|
%define V_gtk2 1.110
|
|
|
|
|
|
@@ -51,8 +52,9 @@ Release: 20051019
|
|
|
Source0: http://www.cpan.org/modules/by-module/Gtk/Gtk-Perl-%{V_gtk_perl}.tar.gz
|
|
|
Source1: http://osdn.dl.sourceforge.net/sourceforge/gtk2-perl/ExtUtils-Depends-%{V_extutils_depends}.tar.gz
|
|
|
Source2: http://osdn.dl.sourceforge.net/sourceforge/gtk2-perl/ExtUtils-PkgConfig-%{V_extutils_pkgconfig}.tar.gz
|
|
|
-Source3: http://osdn.dl.sourceforge.net/sourceforge/gtk2-perl/Glib-%{V_glib}.tar.gz
|
|
|
-Source4: http://osdn.dl.sourceforge.net/sourceforge/gtk2-perl/Gtk2-%{V_gtk2}.tar.gz
|
|
|
+Source3: http://osdn.dl.sourceforge.net/sourceforge/gtk2-perl/Cairo-%{V_cairo}.tar.gz
|
|
|
+Source4: http://osdn.dl.sourceforge.net/sourceforge/gtk2-perl/Glib-%{V_glib}.tar.gz
|
|
|
+Source5: http://osdn.dl.sourceforge.net/sourceforge/gtk2-perl/Gtk2-%{V_gtk2}.tar.gz
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -64,8 +66,8 @@ BuildPreReq: gtk, perl-xml
|
|
|
PreReq: gtk, perl-xml
|
|
|
%endif
|
|
|
%if "%{with_gtk2}" == "yes"
|
|
|
-BuildPreReq: perl-xml >= %{V_perl}-20030920, glib2::with_threads = no, gtk2, pango, atk
|
|
|
-PreReq: perl-xml >= %{V_perl}-20030920, glib2::with_threads = no, gtk2, pango, atk
|
|
|
+BuildPreReq: perl-xml >= %{V_perl}-20030920, glib2::with_threads = no, gtk2, pango, atk, cairo
|
|
|
+PreReq: perl-xml >= %{V_perl}-20030920, glib2::with_threads = no, gtk2, pango, atk, cairo
|
|
|
%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
@@ -80,6 +82,7 @@ AutoReqProv: no
|
|
|
- ExtUtils::PkgConfig (%{V_extutils_pkgconfig}) [for GLib/Gtk+ 2.x]
|
|
|
- Glib (%{V_glib}) [for GLib/Gtk+ 2.x]
|
|
|
- Gtk2 (%{V_gtk2}) [for GLib/Gtk+ 2.x]
|
|
|
+ - Cairo (%{V_cairo}) [for GLib/Gtk+ 2.x]
|
|
|
%endif
|
|
|
|
|
|
%track
|
|
|
@@ -108,6 +111,11 @@ AutoReqProv: no
|
|
|
url = http://prdownloads.sourceforge.net/gtk2-perl/
|
|
|
regex = Gtk2-(__VER__)\.tar\.gz
|
|
|
}
|
|
|
+ prog perl-gtk:Gtk2-Perl:Cairo = {
|
|
|
+ version = %{V_cairo}
|
|
|
+ url = http://prdownloads.sourceforge.net/gtk2-perl/
|
|
|
+ regex = Cairo-(__VER__)\.tar\.gz
|
|
|
+ }
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c
|
|
|
@@ -115,6 +123,7 @@ AutoReqProv: no
|
|
|
%setup -q -T -D -a 2
|
|
|
%setup -q -T -D -a 3
|
|
|
%setup -q -T -D -a 4
|
|
|
+ %setup -q -T -D -a 5
|
|
|
|
|
|
%build
|
|
|
|
|
|
@@ -131,6 +140,7 @@ AutoReqProv: no
|
|
|
%{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
|
|
|
%endif
|
|
|
%{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`
|