reading alpha channel of png files properly (#1282615)
This commit is contained in:
parent
de06df98aa
commit
caf1036d6a
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
transfig.3.2.5c.tar.gz
|
transfig.3.2.5c.tar.gz
|
||||||
/transfig.3.2.5d.tar.gz
|
/transfig.3.2.5d.tar.gz
|
||||||
|
/transfig-3.2.5d-bz1282615.patch
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
f9eac7f265668ecbfda6aaf7581989ad transfig.3.2.5d.tar.gz
|
f4eff0c25a4d77fe9fa9b0abd898eac9 transfig-3.2.5d-bz1282615.patch
|
||||||
|
15
transfig-3.2.5d-bz1282615.patch
Normal file
15
transfig-3.2.5d-bz1282615.patch
Normal file
@ -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)) {
|
@ -1,12 +1,12 @@
|
|||||||
Summary: Utility for converting FIG files (made by xfig) to other formats
|
Summary: Utility for converting FIG files (made by xfig) to other formats
|
||||||
Name: transfig
|
Name: transfig
|
||||||
Version: 3.2.5d
|
Version: 3.2.5d
|
||||||
Release: 17%{?dist}
|
Release: 18%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.xfig.org/
|
URL: http://www.xfig.org/
|
||||||
Group: Applications/Multimedia
|
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
|
Patch0: transfig-3.2.5-optflags.patch
|
||||||
Patch1: transfig-3.2.5-modularX.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
|
Patch4: transfig-3.2.5-libpng.patch
|
||||||
Patch5: transfig-3.2.5d-CVE-2009-4227.patch
|
Patch5: transfig-3.2.5d-CVE-2009-4227.patch
|
||||||
Patch6: transfig-3.2.5d-bz1037365.patch
|
Patch6: transfig-3.2.5d-bz1037365.patch
|
||||||
|
Patch7: transfig-3.2.5d-bz1282615.patch
|
||||||
|
|
||||||
Requires: ghostscript
|
Requires: ghostscript
|
||||||
Requires: bc
|
Requires: bc
|
||||||
@ -44,6 +45,7 @@ figures into certain graphics languages.
|
|||||||
%patch4 -p1 -b .libpng
|
%patch4 -p1 -b .libpng
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
|
%patch7 -p1
|
||||||
|
|
||||||
# fix source permissions
|
# fix source permissions
|
||||||
find -type f -exec chmod -x {} \;
|
find -type f -exec chmod -x {} \;
|
||||||
@ -76,6 +78,9 @@ ln -s fig2ps2tex.1 %{buildroot}%{_mandir}/man1/fig2ps2tex.sh.1
|
|||||||
%{_datadir}/fig2dev
|
%{_datadir}/fig2dev
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 31 2016 Tomas Repik <trepik@redhat.com> - 1:3.2.5d-18
|
||||||
|
- reading alpha channel of png files properly (#1282615)
|
||||||
|
|
||||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.2.5d-17
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.2.5d-17
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user