#
# Conditional build:
-%bcond_with tests # perform "make test" (requires dictionaries?)
+%bcond_with tests # perform "make test" (requires DISPLAY)
#
%include /usr/lib/rpm/macros.perl
%define pdir Gtk2
Summary: Gtk2::Spell - Bindings for GtkSpell with Gtk2
Summary(pl.UTF-8): Gtk2::Spell - wiązania dla GtkSpell z Gtk2
Name: perl-Gtk2-Spell
-Version: 1.03
-Release: 3
+Version: 1.04
+Release: 1
License: LGPL v2.1+
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/Gtk2/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: caf3b6d1e48e4c9096b2ab1ee15cbf4d
+Source0: http://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: c6cb96840b8ccd48de160034f8d04252
URL: http://search.cpan.org/dist/Gtk2-Spell/
-BuildRequires: gtkspell-devel
-BuildRequires: perl-ExtUtils-Depends
-BuildRequires: perl-ExtUtils-PkgConfig
-BuildRequires: perl-Glib
-BuildRequires: perl-Gtk2
+BuildRequires: gtkspell-devel >= 2.0.0
+BuildRequires: perl-ExtUtils-Depends >= 0.100
+BuildRequires: perl-ExtUtils-PkgConfig >= 0.10
+BuildRequires: perl-Glib-devel >= 1.240
+BuildRequires: perl-Gtk2 >= 1.0
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+Requires: gtkspell >= 2.0.0
+Requires: perl-Glib >= 1.240
+Requires: perl-Gtk2 >= 1.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
pop-up menu with suggested corrections.
%description -l pl.UTF-8
-Dowiązania perla do GtkSpell, używanego wraz z Gtk2::TextView.
+Dowiązania Perla do GtkSpell, używanego wraz z Gtk2::TextView.
Udostępniają podświetlanie na czerwono błędnie napisanych słów i
oferują menu z podpowiedziami poprawek pod prawym przyciskiem myszy.
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README
-%{perl_vendorarch}/Gtk2/*.pm
+%{perl_vendorarch}/Gtk2/Spell.pm
%{perl_vendorarch}/Gtk2/Spell
%dir %{perl_vendorarch}/auto/Gtk2/Spell
-%attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/Spell/*.so
-%{_mandir}/man3/*
+%attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/Spell/Spell.so
+%{perl_vendorarch}/auto/Gtk2/Spell/Spell.bs
+%{_mandir}/man3/Gtk2::Spell.3pm*