%global major 2 %define libname %mklibname %{name} %{major} %define devname %mklibname %{name} -d %global gettext_package FontForge %global gnulib_githead 4e6e16b Name: fontforge Version: 20161012 %define subrel 1 Release: %mkrel 4 Summary: Font Editor for PostScript, TrueType, OpenType and various fonts License: GPLv3+ Group: Publishing URL: http://fontforge.github.io Source0: https://github.com/fontforge/fontforge/archive/%{version}/%{name}-%{version}.tar.gz # https://github.com/fontforge/fontforge/issues/1725 # http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=shortlog;h=refs/heads/master;snapshot Source1: gnulib-%{gnulib_githead}.tar.gz # https://github.com/fontforge/fontforge/pull/1723 Patch0: fontforge-20140813-use-system-uthash.patch # Fedora specific patch to have python3 support only Patch1: Add-python3-support.patch Patch2: 0001-Fix-out-of-bounds-read-in-getsid.patch Patch3: 0002-readcfftopdict-Prevent-stack-underflow-condition.patch Patch4: 0003-Fix-out-of-bounds-read-condition-and-buffer-overflow.patch Patch5: 0004-parsettf.c-Fix-buffer-overrun-condition.patch Patch6: 0005-parsettf.c-Fix-buffer-overflow-condition-when-readin.patch Patch7: 0006-parsettf.c-Fix-out-of-bounds-read-condition-on-buffe.patch BuildRequires: chrpath BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: giflib-devel BuildRequires: git BuildRequires: libltdl-devel BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(libuninameslist) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(pango) BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xi) BuildRequires: pkgconfig(xproto) BuildRequires: pkgconfig(xt) BuildRequires: readline-devel BuildRequires: shared-mime-info BuildRequires: spiro-devel BuildRequires: uthash-devel Provides: bundled(gnulib) %description FontForge (former PfaEdit) is a font editor for outline and bitmap fonts. It supports a range of font formats, including PostScript (ASCII and binary Type 1, some Type 3 and Type 0), TrueType, OpenType (Type2) and CID-keyed fonts. %package -n %{devname} Summary: Development tools for fontforge Requires: %{name} = %{version}-%{release} Requires: pkgconfig %description -n %{devname} This package includes the libraries and header files you will need to compile applications against fontforge. %prep %autosetup -p1 tar xzf %{SOURCE1} sed -i -e '/^#!\//, 1d' pycontrib/webcollab.py %build ./bootstrap --skip-git --gnulib-srcdir=gnulib-%{gnulib_githead} export CFLAGS="%{optflags} -fno-strict-aliasing" %configure2_5x PYTHON=python3 %make_build %install %make_install chrpath -d %{buildroot}%{_bindir}/%{name} rm -rf %{buildroot}%{_docdir}/%{name} # remove unneeded .la and .a files find %{buildroot} -name '*.la' -delete find %{buildroot} -name '*.a' -delete # Find translations %find_lang %{gettext_package} mkdir -p %{buildroot}%{_datadir}/appdata install -m644 desktop/%{name}.appdata.xml %{buildroot}%{_datadir}/appdata mkdir -p %{buildroot}%{_datadir}/mime/packages install -m644 desktop/%{name}.xml %{buildroot}%{_datadir}/mime/packages/ %files -f %{gettext_package}.lang %license LICENSE %{_bindir}/font* %{_bindir}/sfddiff %{_datadir}/%{name}/ %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %{_iconsdir}/hicolor/*/apps/%{name}.* %{_libdir}/lib*.so.* %{_mandir}/man1/*.1* %{python3_sitearch}/%{name}.so %{python3_sitearch}/psMat.so %files -n %{devname} %{_includedir}/%{name}/ %{_libdir}/lib*.so %{_libdir}/pkgconfig/lib%{name}*.pc %changelog * Fri Dec 29 2017 luigiwalser <luigiwalser> 20161012-4.1.mga6 + Revision: 1186903 - add patches from debian to fix CVE-2017-1156[89] and CVE-2017-1157[124567] * Fri Jun 30 2017 shlomif <shlomif> 20161012-4.mga6 + Revision: 1108750 - Get rid of the autotrace dep, because we're deprecating autotrace. It is optional anyway. * Sat Feb 04 2017 wally <wally> 20161012-3.mga6 + Revision: 1084816 - drop requires that are already pulled via autoreqs * Thu Feb 02 2017 daviddavid <daviddavid> 20161012-2.mga6 + Revision: 1084613 - rebuild for new libuninameslist * Sun Jan 29 2017 akien <akien> 20161012-1.mga6 + Revision: 1084100 - Version 20161012 (partial sync with Fedora) - Use python3 instead of python2 * Tue Sep 20 2016 ghibo <ghibo> 20160404-1.mga6 + Revision: 1054583 - Fix permission of FontForgeSplash.png in docs - New release 20160404 * Sun Jan 10 2016 daviddavid <daviddavid> 20150824-4.mga6 + Revision: 921204 - rebuild for new giflib 5.1.2 * Tue Nov 24 2015 tv <tv> 20150824-3.mga6 + Revision: 905703 - BR spiro-devel * Mon Nov 23 2015 daviddavid <daviddavid> 20150824-2.mga6 + Revision: 905283 - install all icons manually (workaround to fix build) - remove invalid Requires on fontforge-doc - fix Release tag - add a mime-package file and an appdata file + tv <tv> - further reduce diff with FC - require autorace instead of fonttracer - reduce diff with FC - use bundled desktop entry - kill BR on libx11-devel * Wed Nov 18 2015 tv <tv> 20150824-1.20120731.10.mga6 + Revision: 904091 - adjust file list + create devel pkg - package libs * Wed Nov 18 2015 tv <tv> 20150824-1.20120731.9.mga6 + Revision: 904075 - BR libltdl-devel - add more BRs - BR git - fix SOURCE1 URL for mgarepo sync - new release * Wed Oct 15 2014 umeabot <umeabot> 1.0-1.20120731.9.mga5 + Revision: 741428 - Second Mageia 5 Mass Rebuild * Fri Sep 26 2014 tv <tv> 1.0-1.20120731.8.mga5 + Revision: 725052 - rebuild for bogus file deps * Tue Sep 16 2014 umeabot <umeabot> 1.0-0.20120731.8.mga5 + Revision: 679255 - Mageia 5 Mass Rebuild * Sat Oct 19 2013 umeabot <umeabot> 1.0-0.20120731.7.mga4 + Revision: 526399 - Mageia 4 Mass Rebuild * Tue Jun 04 2013 fwang <fwang> 1.0-0.20120731.6.mga4 + Revision: 436903 - we are now providing libpng16 * Mon Jun 03 2013 tv <tv> 1.0-0.20120731.5.mga4 + Revision: 436312 - rebuild for new libpng * Mon Jun 03 2013 fwang <fwang> 1.0-0.20120731.4.mga4 + Revision: 435854 - rebuild for new libpng * Fri Jan 11 2013 umeabot <umeabot> 1.0-0.20120731.3.mga3 + Revision: 350654 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Oct 08 2012 tv <tv> 1.0-0.20120731.2.mga3 + Revision: 303409 - BR x11-devel - add patch from opensuse not to look for libpng.so.2 - requires libpng * Tue Sep 11 2012 shlomif <shlomif> 1.0-0.20120731.1.mga3 + Revision: 292435 - New version - 20120731-b * Thu May 10 2012 doktor5000 <doktor5000> 1.0-0.20110222.3.mga2 + Revision: 235150 - remove unneeded explicit Require on mfwin/texlive (mga#5812) * Thu Oct 27 2011 doktor5000 <doktor5000> 1.0-0.20110222.2.mga2 + Revision: 158591 - updated fontforge-tutorial.pdf - updated cidmaps tarball, use upstream tarball, don't recompress - added back local-helpdir.patch and properly renamed it - removed unrecognized configure options - use %%make macro - removed deprecated %%clean section * Sun Jun 19 2011 spuhler <spuhler> 1.0-0.20110222.1.mga2 + Revision: 109560 - upgraded version to 20110222 upgraded docversion 20110221 removed Patch1: fontforge-%%{version}-local-helpdir.patch * Tue Apr 26 2011 wally <wally> 1.0-0.20090923.5.mga1 + Revision: 91662 - fix desktop file (mga#954) - drop buildroot definition * Fri Mar 04 2011 boklm <boklm> 1.0-0.20090923.4.mga1 + Revision: 64137 - require mfwin instead of tetex-mfwin * Mon Jan 17 2011 pterjan <pterjan> 1.0-0.20090923.3.mga1 + Revision: 21122 - Drop obsolete scriptlets - imported package fontforge * Thu Dec 02 2010 Oden Eriksson <oeriksson@mandriva.com> 1.0-0.20090923.3mdv2011.0 + Revision: 605181 - rebuild * Wed Mar 17 2010 Oden Eriksson <oeriksson@mandriva.com> 1.0-0.20090923.2mdv2010.1 + Revision: 522653 - rebuilt for 2010.1 * Sun Sep 27 2009 Frederik Himpe <fhimpe@mandriva.org> 1.0-0.20090923.1mdv2010.0 + Revision: 449729 - Update to new version 20090923 * Wed Sep 16 2009 Frederik Himpe <fhimpe@mandriva.org> 1.0-0.20090914.1mdv2010.0 + Revision: 443643 - Update to new version 20090914 - Remove string format patch and segfault patch: fixed upstream * Thu May 14 2009 Frederik Himpe <fhimpe@mandriva.org> 1.0-0.20090408.1mdv2010.0 + Revision: 375761 - Update to new version 20090408 - Add some Debian patches: * Use grey background * Link with libgif * Segmentation fault fix * Sat Mar 14 2009 Emmanuel Andry <eandry@mandriva.org> 1.0-0.20090224.1mdv2009.1 + Revision: 355093 - New version 20090224 - update docs - diff P2 to fix string format not literal * Fri Sep 05 2008 Emmanuel Andry <eandry@mandriva.org> 1.0-0.20080828.1mdv2009.0 + Revision: 281388 - New version * Tue Jun 17 2008 Thierry Vignaud <tv@mandriva.org> 1.0-0.20071210.1mdv2009.0 + Revision: 222751 - fix 'Installed (but unpackaged) file(s) found' - parallel build is broken - kill re-definition of %%buildroot on Pixel's request + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas + Giuseppe Ghibò <ghibo@mandriva.com> - Release 20071210. + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Sat Oct 13 2007 Giuseppe Ghibò <ghibo@mandriva.com> 1.0-0.20071002.1mdv2008.1 + Revision: 97895 - Release: 20071002. * Tue Sep 04 2007 Adam Williamson <awilliamson@mandriva.org> 1.0-0.20070831.1mdv2008.0 + Revision: 79024 - fd.o icons - drop old menu file and X-Mandriva XDG category - use draft license policy (-like, not Style) - new snapshot 20070831 * Sat Feb 24 2007 Giuseppe Ghibò <ghibo@mandriva.com> 1.0-0.20061220.2mdv2007.0 + Revision: 125431 - Added Patch0 so to avoid libuninameslist-devel into Requires. - Added Patch1 for local helpdir. - Added libxml2-devel to BuildRequires. * Sun Jan 21 2007 David Walluck <walluck@mandriva.org> 1.0-0.20061220.1mdv2007.1 + Revision: 111228 - 20061220 * Thu Aug 24 2006 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 1.0-0.20060715.2mdv2007.0 + Revision: 57538 - fix xdg menu (categories, name, comment) - use %%find_lang for translations - remove rpath - don't bzip2 icons - drop redundant doc dir * Fri Aug 11 2006 Bruno Cornec <Bruno.Cornec@mandriva.org> 1.0-0.20060715.1mdv2007.0 + Revision: 55478 - THanks to F. Crozat for the remark anbout the forgotten \ - desktop file was not in %%files - XDG compliance added following http://qa.mandriva.com/twiki/bin/view/Main/MenuMigrationToXDG - Updated to 20060715 Patches not used anymore but stil in SVN for now in case I missed something. - import fontforge-1.0-0.20060125.2mdk * Mon May 15 2006 Stefan van der Eijk <stefan@eijk.nu> 1.0-0.20060125.2mdk - rebuild for sparc * Sat Feb 04 2006 Giuseppe Ghibò <ghibo@mandriva.com> 1.0-0.20060125.1mdk - Release: 20060125. - Added PDF tutorial. * Wed Dec 28 2005 Giuseppe Ghibò <ghibo@mandriva.com> 1.0-0.20051205.1mdk - Release: 20051202. - Rebuilt Patch1. * Sat Nov 26 2005 Thierry Vignaud <tvignaud@mandriva.com> 1.0-0.20051023.2mdk - fix menu entry (#14732) * Thu Oct 27 2005 Abel Cheung <deaddog@mandriva.org> 1.0-0.20051023.1mdk - Release: 20051023. - Adapted Patch1 (partially merged upstream). * Thu Aug 25 2005 Giuseppe Ghibò <ghibo@mandriva.com> 1.0-0.20050809.1mdk - Release: 20050809. * Sat Aug 06 2005 Giuseppe Ghibò <ghibo@mandriva.com> 1.0-0.20050803.1mdk - Release: 20050803. * Tue Jun 28 2005 Giuseppe Ghibò <ghibo@mandriva.com> 1.0-0.20050624.1mdk - Release: 20050624. - Removed Patch0 (merged upstream). - Adapted Patch1. * Mon Feb 14 2005 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.20050209.1mdk - Release: 20050209. - Fixed helpdir (Patch2). * Tue Jan 18 2005 Abel Cheung <deaddog@mandrake.org> 1.0-0.20041231.2mdk - Don't obsolete/provide pfaedit, pfaedit should still stay (ghibo) - UTF-8 spec * Sun Jan 16 2005 Abel Cheung <deaddog@mandrake.org> 1.0-0.20041231.1mdk - New release - Updated cidmaps to 2004-12-22 - Obsoletes pfaedit - Parallel build broken - P0: fix detection of libxkbui - P1: Adds DESTDIR support and --mode=* option to libtool calls - (Seems not working very well, is urw-fonts broken?) * Thu Aug 26 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.20040824.1mdk - Release: 20040824. - Removed Patch0, merged upstream. * Sun Aug 01 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.20040703.2mdk - Added Patch0 to get global variables like $fontversion working correctly. * Fri Jul 30 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.20040703.1mdk - Initial release.