commit ee232f0febbdcf5a9d4b653b5a38bc831bd75c84 Author: Daniel P. Berrange <berrange@xxxxxxxxxx> Date: Mon Jan 30 18:07:19 2012 +0000 Initial import after review (rhbz #785767) .gitignore | 4 ++ Gnome2-Vte-0.09-pty-fileno.patch | 12 +++++++ perl-Gnome2-Vte.spec | 68 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 85 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..41643e5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +Gnome2-Vte-*.tar.gz +.build*.log +*.src.rpm +x86_64/ diff --git a/Gnome2-Vte-0.09-pty-fileno.patch b/Gnome2-Vte-0.09-pty-fileno.patch new file mode 100644 index 0000000..ec4887c --- /dev/null +++ b/Gnome2-Vte-0.09-pty-fileno.patch @@ -0,0 +1,12 @@ +diff -rup Gnome2-Vte-0.09/t/VteTerminal.t Gnome2-Vte-0.09.new/t/VteTerminal.t +--- Gnome2-Vte-0.09/t/VteTerminal.t 2008-10-22 20:49:41.000000000 +0100 ++++ Gnome2-Vte-0.09.new/t/VteTerminal.t 2012-01-30 14:33:57.973235431 +0000 +@@ -232,7 +232,7 @@ SKIP: { + skip "set_pty", 0 + unless Gnome2::Vte -> CHECK_VERSION(0, 12, 1); + +- $terminal -> set_pty(fileno STDIN); ++ $terminal -> set_pty(fileno STDOUT); + } + + $terminal -> reset(1, 1); diff --git a/perl-Gnome2-Vte.spec b/perl-Gnome2-Vte.spec new file mode 100644 index 0000000..dfab888 --- /dev/null +++ b/perl-Gnome2-Vte.spec @@ -0,0 +1,68 @@ +%global use_x11_tests 1 + +Name: perl-Gnome2-Vte +Version: 0.09 +Release: 1%{?dist} +Summary: Gnome2::Vte Perl module +License: LGPLv2+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/Gnome2-Vte/ +Source0: http://www.cpan.org/modules/by-module/Gnome2/Gnome2-Vte-%{version}.tar.gz +Patch1: Gnome2-Vte-%{version}-pty-fileno.patch +BuildRequires: perl(ExtUtils::Depends) >= 0.20 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::PkgConfig) >= 1.03 +BuildRequires: perl(Glib) >= 1.01 +BuildRequires: perl(Gtk2) >= 1.00 +BuildRequires: perl(Glib::MakeHelper) +BuildRequires: perl(Test::More) +BuildRequires: vte-devel +%if %{use_x11_tests} +# X11 tests: +BuildRequires: xorg-x11-server-Xvfb +BuildRequires: xorg-x11-xinit +BuildRequires: font(:lang=en) +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +Gnome2::Vte exposes the GNOME Virtual Terminal Emulator APIs to +Perl applications + +%prep +%setup -q -n Gnome2-Vte-%{version} +%patch1 -p1 + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%if %{use_x11_tests} + xinit /bin/sh -c 'rm -f ok; make test && touch ok' -- /usr/bin/Xvfb :666 + test -e ok +%else + make test +%endif + +%files +%defattr(-,root,root,-) +%doc ChangeLog LICENSE maps NEWS README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Gnome2* +%{_mandir}/man3/* + +%changelog +* Tue Dec 13 2011 Daniel Berrange <berrange@xxxxxxxxxx> 0.09-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..c1c43cc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2827329bf463ebc01c3e1a1726a43bbb Gnome2-Vte-0.09.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel