525276
%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
525276
%define perlver %(eval "`%{__perl} -V:version`"; echo $version)
525276
525276
%global use_x11_tests 1
525276
525276
Name:           perl-Tk
525276
Version:        804.034
525276
Release:        2%{?dist}
525276
Summary:        Perl Graphical User Interface ToolKit
525276
525276
Group:          Development/Libraries
525276
License:        (GPL+ or Artistic) and SWL
525276
URL:            http://search.cpan.org/dist/Tk/
525276
Source0:        http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-%{version}.tar.gz
525276
Patch0:         perl-Tk-widget.patch
525276
# modified version of http://ftp.de.debian.org/debian/pool/main/p/perl-tk/perl-tk_804.027-8.diff.gz
525276
Patch1:         perl-Tk-debian.patch.gz
525276
# fix segfaults as in #235666 because of broken cashing code
525276
Patch2:         perl-Tk-seg.patch
525276
525276
525276
# Versions before this have Unicode issues
525276
BuildRequires:  perl-devel >= 3:5.8.3
525276
BuildRequires:  perl-generators
525276
BuildRequires:  freetype-devel
525276
BuildRequires:  libjpeg-devel
525276
BuildRequires:  libpng-devel
525276
BuildRequires:  libX11-devel
525276
BuildRequires:  libXft-devel
525276
BuildRequires:  perl(Config)
525276
BuildRequires:  perl(Cwd)
525276
BuildRequires:  perl(ExtUtils::MakeMaker)
525276
BuildRequires:  perl(File::Copy)
525276
BuildRequires:  perl(lib)
525276
BuildRequires:  perl(open)
525276
BuildRequires:  perl(strict)
525276
BuildRequires:  perl(Test)
525276
525276
%if %{use_x11_tests}
525276
# Run-time:
525276
BuildRequires:  perl(AutoLoader)
525276
BuildRequires:  perl(base)
525276
BuildRequires:  perl(Carp)
525276
BuildRequires:  perl(DirHandle)
525276
BuildRequires:  perl(DynaLoader)
525276
BuildRequires:  perl(Encode)
525276
BuildRequires:  perl(Exporter)
525276
BuildRequires:  perl(File::Basename)
525276
BuildRequires:  perl(File::Spec)
525276
BuildRequires:  perl(if)
525276
BuildRequires:  perl(locale)
525276
# Image::Info is optional
525276
BuildRequires:  perl(IO::Handle)
525276
BuildRequires:  perl(overload)
525276
BuildRequires:  perl(subs)
525276
BuildRequires:  perl(Symbol)
525276
BuildRequires:  perl(Text::Tabs)
525276
BuildRequires:  perl(vars)
525276
BuildRequires:  perl(warnings)
525276
BuildRequires:  perl(XSLoader)
525276
525276
# Tests:
525276
# X11 tests:
525276
BuildRequires:  xorg-x11-server-Xvfb
525276
BuildRequires:  xorg-x11-xinit
525276
BuildRequires:  font(:lang=en)
525276
# Specific font is needed for tests, bug #1141117, CPAN RT#98831
525276
BuildRequires:  liberation-sans-fonts
525276
BuildRequires:  perl(constant)
525276
BuildRequires:  perl(Data::Dumper)
525276
BuildRequires:  perl(Devel::Peek)
525276
BuildRequires:  perl(ExtUtils::Command::MM)
525276
BuildRequires:  perl(File::Spec::Functions)
525276
BuildRequires:  perl(File::Temp)
525276
BuildRequires:  perl(FindBin)
525276
BuildRequires:  perl(Getopt::Long)
525276
BuildRequires:  perl(IO::Socket)
525276
BuildRequires:  perl(POSIX)
525276
BuildRequires:  perl(Test::More)
525276
BuildRequires:  perl(utf8)
525276
# Optional tests:
525276
BuildRequires:  perl(MIME::Base64)
525276
%endif
525276
525276
Requires:       perl(:MODULE_COMPAT_%{perlver})
525276
Provides:       perl(Tk::LabRadio) = 4.004
525276
Provides:       perl(Tk) = %{version}
525276
525276
%{?perl_default_filter}
525276
# Explicity filter "useless" unversioned provides. For some reason, rpm is
525276
# detecting these both with and without version.
525276
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(Tk\\)
525276
%global __provides_exclude %__provides_exclude|perl\\(Tk::Clipboard\\)$
525276
%global __provides_exclude %__provides_exclude|perl\\(Tk::Frame\\)$
525276
%global __provides_exclude %__provides_exclude|perl\\(Tk::Listbox\\)$
525276
%global __provides_exclude %__provides_exclude|perl\\(Tk::Scale\\)$
525276
%global __provides_exclude %__provides_exclude|perl\\(Tk::Scrollbar\\)$
525276
%global __provides_exclude %__provides_exclude|perl\\(Tk::Table\\)$
525276
%global __provides_exclude %__provides_exclude|perl\\(Tk::Toplevel\\)$
525276
%global __provides_exclude %__provides_exclude|perl\\(Tk::Widget\\)$
525276
%global __provides_exclude %__provides_exclude|perl\\(Tk::Wm\\)$
525276
525276
525276
%description
525276
This a re-port of a perl interface to Tk8.4.
525276
C code is derived from Tcl/Tk8.4.5.
525276
It also includes all the C code parts of Tix8.1.4 from SourceForge.
525276
The perl code corresponding to Tix's Tcl code is not fully implemented.
525276
525276
Perl API is essentially the same as Tk800 series Tk800.025 but has not
525276
been verified as compliant. There ARE differences see pod/804delta.pod.
525276
525276
%package devel
525276
Summary: perl-Tk ExtUtils::MakeMaker support module
525276
Requires: perl-Tk = %{version}-%{release}
525276
525276
%description devel
525276
%{summary}
525276
525276
%prep
525276
%setup -q -n Tk-%{version}
525276
find . -type f -exec %{__perl} -pi -e \
525276
's,^(#!)(/usr/local)?/bin/perl\b,$1%{__perl}, if ($. == 1)' {} \;
525276
chmod -x pod/Popup.pod Tixish/lib/Tk/balArrow.xbm
525276
# fix for widget as docs
525276
%patch0
525276
%{__perl} -pi -e \
525276
's,\@demopath\@,%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}/demos,g' demos/widget
525276
# debian patch
525276
#%%patch1 -p1
525276
# patch to fix #235666 ... seems like caching code is broken
525276
%patch2 -p1 -b .seg
525276
525276
%build
525276
%{__perl} Makefile.PL INSTALLDIRS=vendor X11LIB=%{_libdir} XFT=1
525276
find . -name Makefile | xargs %{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/'
525276
make %{?_smp_mflags}
525276
525276
%check
525276
%if %{use_x11_tests}
525276
    xvfb-run -a make test
525276
%endif
525276
525276
%install
525276
make pure_install DESTDIR=$RPM_BUILD_ROOT
525276
525276
find $RPM_BUILD_ROOT -type f -name .packlist -delete
525276
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
525276
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
525276
525276
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
525276
mkdir __demos
525276
cp -pR $RPM_BUILD_ROOT%{perl_vendorarch}/Tk/demos __demos
525276
find __demos/ -type f -exec chmod -x {} \;
525276
525276
%files
525276
%doc Changes README README.linux ToDo pTk/*license* __demos/demos demos/widget COPYING
525276
%doc blib/man1/widget.1
525276
%{_bindir}/p*
525276
%{_bindir}/tkjpeg
525276
%{perl_vendorarch}/auto/Tk
525276
%{perl_vendorarch}/T*
525276
%exclude %{perl_vendorarch}/Tk/MMutil.pm
525276
%exclude %{perl_vendorarch}/Tk/install.pm
525276
%exclude %{perl_vendorarch}/Tk/MakeDepend.pm
525276
%{_mandir}/man*/*
525276
%exclude %{_mandir}/man1/widget.1*
525276
%exclude %{_bindir}/gedi
525276
%exclude %{_bindir}/widget
525276
%exclude %{perl_vendorarch}/Tk/demos
525276
525276
%files devel
525276
%dir %{perl_vendorarch}/Tk
525276
%{perl_vendorarch}/Tk/MMutil.pm
525276
%{perl_vendorarch}/Tk/install.pm
525276
%{perl_vendorarch}/Tk/MakeDepend.pm
525276
525276
525276
%changelog
525276
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 804.034-2
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
525276
525276
* Mon Aug 28 2017 Jitka Plesnikova <jplesnik@redhat.com> - 804.034-1
525276
- 804.034 bump
525276
525276
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 804.033-9
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
525276
525276
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 804.033-8
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
525276
525276
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 804.033-7
525276
- Perl 5.26 rebuild
525276
525276
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 804.033-6
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
525276
525276
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 804.033-5
525276
- Perl 5.24 rebuild
525276
525276
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 804.033-4
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
525276
525276
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 804.033-3
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
525276
525276
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 804.033-2
525276
- Perl 5.22 rebuild
525276
525276
* Wed May 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 804.033-1
525276
- 804.033 bump
525276
525276
* Fri Nov 07 2014 Petr Pisar <ppisar@redhat.com> - 804.032-5
525276
- Restore compatibility with perl-ExtUtils-MakeMaker-7.00 (bug #1161470)
525276
525276
* Fri Sep 12 2014 Petr Pisar <ppisar@redhat.com> - 804.032-4
525276
- Fix freetype detection
525276
- Fix creating a window with perl 5.20 (bug #1141117)
525276
- Enable X11 tests
525276
- Specify all dependencies
525276
- Fix t/fileevent2.t failure with /dev/null on stdin (bug #1141117)
525276
525276
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 804.032-3
525276
- Perl 5.20 rebuild
525276
525276
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 804.032-2
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
525276
525276
* Thu Jul 31 2014 Jitka Plesnikova <jplesnik@redhat.com> - 804.032-1
525276
- 804.032 bump
525276
525276
* Fri Jun 20 2014 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
- 804.031-6
525276
- add patch from Yaakov Selkowitz to fix freetype detection (rhbz#1110872)
525276
525276
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 804.031-5
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
525276
525276
* Sat Aug 10 2013 Ville Skyttä <ville.skytta@iki.fi> - 804.031-4
525276
- Use %%{_pkgdocdir} where available.
525276
525276
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 804.031-3
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
525276
525276
* Tue Jul 30 2013 Jitka Plesnikova <jplesnik@redhat.com> - 804.031-2
525276
- Update license
525276
- Package COPYING
525276
- Specify all dependencies
525276
- Replace PERL_INSTALL_ROOT with DESTDIR
525276
525276
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 804.031-1
525276
- 804.031 bump
525276
525276
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 804.030-5
525276
- Perl 5.18 rebuild
525276
525276
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 804.030-4
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
525276
525276
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 804.030-3
525276
- rebuild due to "jpeg8-ABI" feature drop
525276
525276
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 804.030-2
525276
- rebuild against new libjpeg
525276
525276
* Wed Aug 29 2012 Jitka Plesnikova <jplesnik@redhat.com> - 804.030-1
525276
- 804.030 bump, update source link
525276
525276
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 804.029-9
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
525276
525276
* Thu Jun 07 2012 Petr Pisar <ppisar@redhat.com> - 804.029-8
525276
- Perl 5.16 rebuild
525276
525276
* Thu Jun 07 2012 Petr Pisar <ppisar@redhat.com> - 804.029-7
525276
- Perl 5.16 rebuild
525276
525276
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 804.029-6
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
525276
525276
* Thu Nov 10 2011 Iain Arnell <iarnell@gmail.com> 804.029-5
525276
- Rebuild for libpng 1.5
525276
525276
* Fri Oct 21 2011 Ralf Corsépius <corsepiu@fedoraproject.org> 804.029-4
525276
- Split out Tk/MMutil.pm, Tk/install.pm, Tk/MakeDepend.pm into perl-Tk-devel.
525276
  (Avoid dependency on perl-devel - BZ 741777).
525276
525276
* Tue Jun 21 2011 Iain Arnell <iarnell@gmail.com> 804.029-3
525276
- Perl mass rebuild
525276
525276
* Tue Jun 21 2011 Iain Arnell <iarnell@gmail.com> 804.029-2
525276
- properly filter useless provides
525276
525276
* Fri Jun 17 2011 Iain Arnell <iarnell@gmail.com> 804.029-1
525276
- update to 804.029_500 development version to fix FTBFS with perl 5.14
525276
- clean up spec for modern rpmbuild
525276
- use perl_default_filter and filter useless provides
525276
525276
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 804.028-16
525276
- Perl mass rebuild
525276
525276
* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 804.028-15
525276
- Perl 5.14 mass rebuild
525276
525276
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 804.028-14
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
525276
525276
* Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 804.028-13
525276
- 661697 rebuild for fixing problems with vendorach/lib
525276
525276
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 804.028-12
525276
- Mass rebuild with perl-5.12.0 & update to development release
525276
525276
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 804.028-11
525276
- rebuild against perl 5.10.1
525276
525276
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 804.028-10
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
525276
525276
* Mon Jun 22 2009 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
- 804.028-9
525276
- fix getOpenFile (#487122)
525276
525276
* Mon Jun 15 2009 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
- 804.028-8
525276
- fix events (#489228, #491536, #506496) 
525276
525276
* Thu Mar 19 2009 Stepan Kasal <skasal@redhat.com> - 804.028-7
525276
- perl-Tk-XIM.patch (#489228)
525276
525276
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 804.028-6
525276
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
525276
525276
* Tue Mar 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> 804.028-5
525276
- rework patch2 to fix menu and test case failures (bz 431330, upstream 33880)
525276
525276
* Tue Feb 05 2008 Tom "spot" Callaway <tcallawa@redhat.com>
525276
- 804.028-4
525276
- rebuild for new perl
525276
525276
* Tue Feb 05 2008 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
- 804.028-3
525276
- fix #431529 gif overflow in tk (see also #431518)
525276
525276
* Fri Jan 04 2008 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
- 804.028-2
525276
- add relevant parts of debian patch
525276
- add patch for #235666
525276
525276
* Wed Jan 02 2008 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
- 804.028-1
525276
- version upgrade
525276
- fix #210718 SIGSEGV on exit from texdoctk
525276
- fix #234404 Cannot manage big listboxes
525276
- fix #235666 Segfault occurs when using Perl-Tk on FC6
525276
525276
* Wed Dec 19 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
- 804.027-13
525276
- fix BR
525276
525276
* Wed Aug 22 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
- 804.027-12
525276
- rebuild for buildid
525276
525276
* Sun Apr 01 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-11
525276
- F7 rebuild (#234404)
525276
525276
* Fri Sep 15 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-10
525276
- FE6 rebuild
525276
525276
* Thu Feb 16 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-9
525276
- Rebuild for Fedora Extras 5
525276
525276
* Fri Nov 25 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-8
525276
- modular xorg integration
525276
525276
* Sun Jul 31 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-7
525276
- fix #164716
525276
525276
* Mon Jun 20 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-6
525276
- some small cleanups
525276
- add dist tag
525276
525276
* Thu Jun 16 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-5
525276
- exclude gedi
525276
- move widget to doc dir and patch it to work from there
525276
525276
* Wed Jun 15 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-4
525276
- more cleanups from Ville Skyttä
525276
525276
* Wed Jun 15 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-3
525276
- more cleanups
525276
525276
* Tue Jun 14 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-2
525276
- add some stuff (e.g. xft) suggested by Steven Pritchard
525276
525276
* Tue Jun 14 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
804.027-1
525276
- rebuild for fc4
525276
525276
* Fri Jun 04 2004 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
525276
0:804.027-0.fdr.1
525276
- Initial Version (thanks to perl-Archive-Zip spec)