3 %bcond_with tests # perform "make test" (requires DISPLAY)
5 %include /usr/lib/rpm/macros.perl
8 Summary: Gtk2::Spell - Bindings for GtkSpell with Gtk2
9 Summary(pl.UTF-8): Gtk2::Spell - wiązania dla GtkSpell z Gtk2
14 Group: Development/Languages/Perl
15 Source0: http://downloads.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: c6cb96840b8ccd48de160034f8d04252
17 URL: http://search.cpan.org/dist/Gtk2-Spell/
18 BuildRequires: gtkspell-devel >= 2.0.0
19 BuildRequires: perl-ExtUtils-Depends >= 0.100
20 BuildRequires: perl-ExtUtils-PkgConfig >= 0.10
21 BuildRequires: perl-Glib-devel >= 1.240
22 BuildRequires: perl-Gtk2 >= 1.0
23 BuildRequires: perl-devel >= 1:5.8.0
24 BuildRequires: rpm-perlprov >= 4.1-13
25 Requires: gtkspell >= 2.0.0
26 Requires: perl-Glib >= 1.240
27 Requires: perl-Gtk2 >= 1.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Perl bindings to GtkSpell, used in concert with Gtk2::TextView.
32 Provides mis-spelled word highlighting in red and offers a right click
33 pop-up menu with suggested corrections.
35 %description -l pl.UTF-8
36 Dowiązania Perla do GtkSpell, używanego wraz z Gtk2::TextView.
37 Udostępniają podświetlanie na czerwono błędnie napisanych słów i
38 oferują menu z podpowiedziami poprawek pod prawym przyciskiem myszy.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 OPTIMIZE="%{rpmcflags}"
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc AUTHORS ChangeLog README
64 %{perl_vendorarch}/Gtk2/Spell.pm
65 %{perl_vendorarch}/Gtk2/Spell
66 %dir %{perl_vendorarch}/auto/Gtk2/Spell
67 %attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/Spell/Spell.so
68 %{_mandir}/man3/Gtk2::Spell.3pm*