%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)} %{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}} %global realname tkpng Name: tcl-%{realname} Version: 0.9 Release: 30%{?dist} Summary: Tcl/Tk support for PNG License: TCL URL: http://www.muonics.com/FreeStuff/TkPNG/ Source0: http://downloads.sourceforge.net/tkpng/%{realname}%{version}.tgz Provides: %{realname} = %{version}-%{release} Provides: tk-%{realname} = %{version}-%{release} BuildRequires: make BuildRequires: gcc BuildRequires: tcl-devel, tk-devel, zlib-devel Requires: tcl(abi) = 8.6 %description TkPNG is an open source package that adds PNG photo image support to Tcl/Tk. Although other extensions such as Img also add support for PNG images, this package was designed to be lightweight, not depending on libpng nor implementing other image formats, and suitable for inclusion in the Tk core. Tk does not currently have native support for any image formats that allow for alpha (partial-transparency) channels, although it does have support for alpha blending internally. %prep %setup -q -n %{realname}%{version} %build %if 0%{?__isa_bits} == 64 %configure --enable-64bit %else %configure %endif make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install install -d %{buildroot}%{tcl_sitearch} mv %{buildroot}%{_libdir}/%{realname}%{version} %{buildroot}%{tcl_sitearch}/%{realname}%{version} %files %license license.terms %doc README ChangeLog %{tcl_sitearch}/%{realname}%{version}/ %changelog * Sat Jul 23 2022 Fedora Release Engineering - 0.9-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 0.9-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.9-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.9-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.9-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jan 31 2020 Fedora Release Engineering - 0.9-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jul 27 2019 Fedora Release Engineering - 0.9-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 0.9-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.9-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.9-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.9-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.9-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.9-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Feb 05 2016 Fedora Release Engineering - 0.9-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jan 26 2016 Tom Callaway - 0.9-16 - modernize spec file * Wed Sep 16 2015 Marcin Juszkiewicz - 0.9-15 - Use __isa_bits macro instead of list of 64-bit architectures * Fri Jun 19 2015 Fedora Release Engineering - 0.9-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Aug 18 2014 Fedora Release Engineering - 0.9-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 0.9-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Jaroslav Škarvada - 0.9-11 - Changed requires to require tcl-8.6 * Wed May 21 2014 Jaroslav Škarvada - 0.9-10 - Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86 * Sun Aug 04 2013 Fedora Release Engineering - 0.9-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 15 2013 Fedora Release Engineering - 0.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 0.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jul 26 2009 Fedora Release Engineering - 0.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Mar 12 2009 Tom "spot" Callaway 0.9-3 - enable-64bit flag to configure on 64bit platforms * Fri Oct 31 2008 Tom "spot" Callaway 0.9-2 - add BR: zlib-devel * Mon Jun 9 2008 Tom "spot" Callaway 0.9-1 - initial package for Fedora