commit 16a9d133597cc9102eaf5dddfc8b6d98096bcff9 Author: Daniel P. Berrange <berrange@xxxxxxxxxx> Date: Fri Jan 6 11:33:02 2012 +0000 Initial import after review (rhbz #754754) .gitignore | 4 +++ perl-Gtk3.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 87 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..557b754 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +.build*.log +*.src.rpm +/Gtk3-*.tar.gz +noarch/ diff --git a/perl-Gtk3.spec b/perl-Gtk3.spec new file mode 100644 index 0000000..299a15c --- /dev/null +++ b/perl-Gtk3.spec @@ -0,0 +1,82 @@ +%global use_x11_tests 1 + +Name: perl-Gtk3 +Version: 0.002 +Release: 2%{?dist} +Summary: Perl interface to the 3.x series of the GTK+ toolkit +License: LGPLv2+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/Gtk3/ +Source0: http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gtk3-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Glib) >= 1.240 +BuildRequires: perl(Glib::Object::Introspection) >= 0.002 +BuildRequires: perl(Test::More) +BuildRequires: gtk3 +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(Test::More) +BuildRequires: perl(Scalar::Util) +Requires: perl(Glib) >= 1.240 +Requires: perl(Glib::Object::Introspection) >= 0.002 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: gtk3 +%if %{use_x11_tests} +# X11 tests: +BuildRequires: xorg-x11-server-Xvfb +BuildRequires: xorg-x11-xinit +BuildRequires: font(:lang=en) +%endif + +%description +The Gtk3 module allows a Perl developer to use the GTK+ graphical user +interface library. Find out more about GTK+ at <http://www.gtk.org/>. + +%prep +%setup -q -n Gtk3-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +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 -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 +%doc LICENSE NEWS README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Jan 5 2012 Daniel P. Berrange <berrange@xxxxxxxxxx> - 0.002-2 +- Use xvfb to run test suite +- Fix capitalization of GTK+ +- Remove dist.ini & perl-Gtk3.doap +- Remove defattr from files section +- Add missing BuildRequires for test suite +- Add trailing / into URIs + +* Thu Dec 15 2011 Daniel P. Berrange <berrange@xxxxxxxxxx> - 0.002-1 +- Update to 0.002 release + +* Mon Nov 28 2011 Daniel P. Berrange <berrange@xxxxxxxxxx> - 0.001-2 +- Add Test::More BR +- Disable overrides.t test (rt #72773) +- Comment about running test without $DISPLAY available + +* Fri Nov 04 2011 Daniel P Berrange <berrange@xxxxxxxxxx> 0.001-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..026f572 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +be2cc3b34d48d6d9b56050d72561715e Gtk3-0.002.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