diff --git a/.gitignore b/.gitignore index 99a5cf2..659f114 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ transfig.3.2.5c.tar.gz /transfig.3.2.5d.tar.gz +/transfig-3.2.5d-bz1282615.patch diff --git a/sources b/sources index d9c3f08..666890f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f9eac7f265668ecbfda6aaf7581989ad transfig.3.2.5d.tar.gz +f4eff0c25a4d77fe9fa9b0abd898eac9 transfig-3.2.5d-bz1282615.patch diff --git a/transfig-3.2.5d-bz1282615.patch b/transfig-3.2.5d-bz1282615.patch new file mode 100644 index 0000000..30beff5 --- /dev/null +++ b/transfig-3.2.5d-bz1282615.patch @@ -0,0 +1,15 @@ +--- transfig.3.2.5d/fig2dev/dev/readpng.orig.c 2015-11-14 02:57:30.689827624 +0100 ++++ transfig.3.2.5d/fig2dev/dev/readpng.c 2015-11-14 03:48:01.893942375 +0100 +@@ -78,8 +78,10 @@ + png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type, + &interlace_type, &compression_type, &filter_type); + +- png_fixed_point gamma = 0.45; +- png_get_gAMA_fixed(png_ptr,info_ptr,&gamma); ++ double gamma; ++ if (!png_get_gAMA(png_ptr, info_ptr, &gamma)) { ++ gamma = 0.45455; ++ } + png_set_gamma(png_ptr, 2.2, gamma); + + if (png_get_valid(png_ptr,info_ptr,PNG_INFO_bKGD)) { diff --git a/transfig.spec b/transfig.spec index b0bb4b7..e1be2d1 100644 --- a/transfig.spec +++ b/transfig.spec @@ -1,12 +1,12 @@ Summary: Utility for converting FIG files (made by xfig) to other formats Name: transfig Version: 3.2.5d -Release: 17%{?dist} +Release: 18%{?dist} Epoch: 1 License: MIT URL: http://www.xfig.org/ Group: Applications/Multimedia -Source0: http://downloads.sourceforge.net/mcj/%{name}.%{version}.tar.gz +Source0: https://sourceforge.net/projects/kanapi/files/sources/RELEASES/2014/%{name}-%{version}.tar.gz Patch0: transfig-3.2.5-optflags.patch Patch1: transfig-3.2.5-modularX.patch @@ -15,6 +15,7 @@ Patch3: transfig-3.2.5d-bz728825.patch Patch4: transfig-3.2.5-libpng.patch Patch5: transfig-3.2.5d-CVE-2009-4227.patch Patch6: transfig-3.2.5d-bz1037365.patch +Patch7: transfig-3.2.5d-bz1282615.patch Requires: ghostscript Requires: bc @@ -44,6 +45,7 @@ figures into certain graphics languages. %patch4 -p1 -b .libpng %patch5 -p1 %patch6 -p1 +%patch7 -p1 # fix source permissions find -type f -exec chmod -x {} \; @@ -76,6 +78,9 @@ ln -s fig2ps2tex.1 %{buildroot}%{_mandir}/man1/fig2ps2tex.sh.1 %{_datadir}/fig2dev %changelog +* Thu Mar 31 2016 Tomas Repik - 1:3.2.5d-18 +- reading alpha channel of png files properly (#1282615) + * Fri Feb 05 2016 Fedora Release Engineering - 1:3.2.5d-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild