91f0148
%global use_x11_tests 1
91f0148
e10ecec
Name:           perl-Gtk2-Spell
Petr Šabata b9e75c4
Version:        1.04
a9f78e8
Release:        15%{?dist}
e10ecec
Summary:        Gtk2::Spell perl module
Petr Šabata b9e75c4
Group:          Development/Libraries
Petr Šabata b9e75c4
License:        LGPLv2+
Petr Šabata b9e75c4
URL:            http://search.cpan.org/dist/Gtk2-Spell/
Petr Šabata b9e75c4
Source0:        http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gtk2-Spell-%{version}.tar.gz
91f0148
BuildRequires:  findutils
Petr Šabata b9e75c4
BuildRequires:  gtk2-devel
Petr Šabata b9e75c4
BuildRequires:  gtkspell-devel
91f0148
BuildRequires:  make
91f0148
BuildRequires:  perl
91f0148
BuildRequires:  perl-devel
8bc1003
BuildRequires:  perl-generators
91f0148
BuildRequires:  perl(Cwd)
Petr Šabata b9e75c4
BuildRequires:  perl(ExtUtils::Depends)
91f0148
BuildRequires:  perl(ExtUtils::MakeMaker)
Petr Šabata b9e75c4
BuildRequires:  perl(ExtUtils::PkgConfig)
91f0148
BuildRequires:  perl(File::Spec)
91f0148
BuildRequires:  perl(Glib) >= 1.24
8ff6841
BuildRequires:  perl(Glib::MakeHelper)
91f0148
BuildRequires:  perl(Gtk2) >= 1.00
Petr Šabata b9e75c4
BuildRequires:  perl(Gtk2::CodeGen)
91f0148
BuildRequires:  pkgconfig(gtkspell-2.0) >= 2.0.0
91f0148
%if %{use_x11_tests}
91f0148
# Run-time:
91f0148
BuildRequires:  perl(DynaLoader)
91f0148
BuildRequires:  perl(strict)
91f0148
BuildRequires:  perl(warnings)
91f0148
%endif
91f0148
# Tests:
32ecf5b
BuildRequires:  perl(Test::More)
91f0148
%if %{use_x11_tests}
91f0148
BuildRequires:  font(:lang=en)
91f0148
BuildRequires:  perl(constant)
91f0148
BuildRequires:  xorg-x11-server-Xvfb
91f0148
%endif
91f0148
Requires:  perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
91f0148
Requires:  perl(Gtk2) >= 1.00
e10ecec
Petr Šabata b9e75c4
%{?perl_default_filter}
91f0148
# Remove under-specified dependencies
91f0148
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Gtk2\\)$
Petr Šabata b9e75c4
e10ecec
%description
e10ecec
Perl bindings to GtkSpell, used in concert with Gtk2::TextView. Provides
e10ecec
mis-spelled word highlighting in red and offers a right click pop-up menu with
e10ecec
suggested corrections.
e10ecec
91f0148
%package devel
91f0148
Summary:   XS support for Gtk2::Spell
91f0148
Requires:  %name = %{?epoch:%{epoch}:}%{version}-%{release}
91f0148
Requires:  perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
91f0148
Requires:  pkgconfig(gtkspell-2.0) >= 2.0.0
91f0148
91f0148
%description devel
91f0148
e10ecec
%prep
e10ecec
%setup -q -n Gtk2-Spell-%{version}
e10ecec
e10ecec
%build
Petr Šabata b9e75c4
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
e10ecec
make %{?_smp_mflags}
e10ecec
e10ecec
%install
91f0148
make pure_install DESTDIR=%{buildroot}
91f0148
find %{buildroot} -type f -name .packlist -delete
91f0148
find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
91f0148
%{_fixperms} %{buildroot}/*
e10ecec
e10ecec
%check
91f0148
%if %{use_x11_tests}
91f0148
    xvfb-run -a make test
91f0148
%else
91f0148
    make test
91f0148
%endif
e10ecec
e10ecec
%files
91f0148
%license LICENSE
91f0148
%doc README gtkspell_simple.pl AUTHORS ChangeLog NEWS
91f0148
%{perl_vendorarch}/auto/Gtk2
91f0148
%{perl_vendorarch}/Gtk2
91f0148
%exclude %{perl_vendorarch}/Gtk2/Spell/Install
e10ecec
%{_mandir}/man3/*.3*
e10ecec
91f0148
%files devel
91f0148
%{perl_vendorarch}/Gtk2/Spell/Install
91f0148
e10ecec
%changelog
a9f78e8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-15
a9f78e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a9f78e8
0b6eb55
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-14
0b6eb55
- Perl 5.24 rebuild
0b6eb55
91f0148
* Fri Mar 18 2016 Petr Pisar <ppisar@redhat.com> - 1.04-13
91f0148
- Modernize spec file
91f0148
- Move header files into devel sub-package
91f0148
03b03c5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.04-12
03b03c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
03b03c5
974c900
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-11
974c900
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
974c900
25bb382
* Mon Jun 08 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-10
25bb382
- Perl 5.22 rebuild
25bb382
db581b2
* Mon Sep 01 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.04-9
db581b2
- Perl 5.20 rebuild
db581b2
82050a5
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-8
82050a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
82050a5
79d09ad
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-7
79d09ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
79d09ad
b869603
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-6
b869603
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b869603
4c6b0e5
* Mon Jul 22 2013 Petr Pisar <ppisar@redhat.com> - 1.04-5
4c6b0e5
- Perl 5.18 rebuild
4c6b0e5
b425521
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-4
b425521
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b425521
6bccbb1
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04-3
6bccbb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6bccbb1
ae3946c
* Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 1.04-2
ae3946c
- Perl 5.16 rebuild
ae3946c
Petr Šabata b9e75c4
* Fri Jan 27 2012 Petr Šabata <contyk@redhat.com> - 1.04-1
Petr Šabata b9e75c4
- 1.04 bump
Petr Šabata b9e75c4
- Spec cleanup
Petr Šabata b9e75c4
- Update Source URL
Petr Šabata b9e75c4
7006f34
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-19
7006f34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7006f34
32ecf5b
* Wed Nov 09 2011 Iain Arnell <iarnell@gmail.com> 1.03-18
32ecf5b
- Rebuild for libpng 1.5
32ecf5b
- BuildRequires perl(Test::More)
32ecf5b
c48d558
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.03-17
c48d558
- Perl mass rebuild
c48d558
82cad4b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-16
82cad4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
82cad4b
3609195
* Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-15
3609195
- 661697 rebuild for fixing problems with vendorach/lib
3609195
8b6fa16
* Wed May 12 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.03-14
8b6fa16
- Add Gtk2-Spell-1.03.diff (Change requirements to fix perl-5.12.0 
8b6fa16
  build breakdown).
8b6fa16
639f0e2
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.03-13
639f0e2
- Mass rebuild with perl-5.12.0
639f0e2
8f952e8
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.03-12
8f952e8
- rebuild against perl 5.10.1
8f952e8
8ff6841
* Wed Aug 05 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.03-11
8ff6841
- Fix mass rebuild breakdown: Add BR: perl(Glib::MakeHelper).
8ff6841
e6fe2a1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-10
e6fe2a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e6fe2a1
513a5a4
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-9
513a5a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
513a5a4
dc02091
* Thu Mar  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.03-8
dc02091
- rebuild for new perl
dc02091
e5c2dd4
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.03-7
e5c2dd4
- Autorebuild for GCC 4.3
e5c2dd4
Chris Weyl 4380a46
* Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.03-6
Chris Weyl 4380a46
- bump
Chris Weyl 4380a46
Chris Weyl 3cced9d
* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.03-5
Chris Weyl 3cced9d
- bump for mass rebuild
Chris Weyl 3cced9d
e10ecec
* Sat Feb 18 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.03-4
e10ecec
- fixups per #5
e10ecec
e10ecec
* Thu Feb 16 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.03-1
e10ecec
- fixups, initial spec