forked from pool/fontforge
de7023ebd7
- switch to python 3 - updated to 20161005 [bsc#1014793]: * This release introduces a new icon set, new functionality for custom icon selection graphics, support for GlyphOrderAndAliasDB files, and support for Unicode 9.0. * It also fixes a number of small bugs relating to certain bitmap typefaces, stroke expansion, handling of CID ranges, and the user interface. - removed upstreamed patches: - propagate-creation-and-modification-times-to-ttf.patch - fontforge-eof-crash.patch - do not crash on invalid input data (when eof reached) [bsc#963023] + fontforge-eof-crash.patch - updated to 20150824: This fixes a few bugs, including some in U. F. O. kerning classes and FreeType rasterization, and adds a Korean translation. - updated to 20150430: this release includes a few bug fixes, performance enhancements, and refreshed icons. - download uthash when get-source.sh - fontforge --version now returns fontforge release version + fontforge-version.patch - also repackage the broken gnulib links to fix build with newer libtool - repack source [bnc#926061] - updated to 20150330: * fixes a few crashes, enhances round-tripping of information in certain file formats, and fixes some bad logic * adds support for fine point adjustment * etc. see https://github.com/fontforge/fontforge/releases for details - remove %requires_ge libpng16-16 as it seems fontforge is not so picky anymore - doc is generated - remove pfaedit compat - removed patches (upstreamed or not needed): - fontforge-fixgiflib.patch - fontforge-arraysubscript.patch - fontforge-fdleak.patch - fontforge-libpng.diff - fontforge-docdir.patch - fontforge-python-module-name.diff - added propagate-creation-and-modification-times-to-ttf.patch from debian's reproducible build project to get reproducible font builds - Cleanup BuildRequires, in particular do not use legacy metapackage xorg-x11-devel - Update fontforge-fixgiflib.patch to support giflib7-5.1 - fixed linking against libpng (1.5, 1.6) [bnc#867041] * added fontforge-libpng.diff * removed libpng14-dynamic.diff - spec file cleanup * call spec-cleaner * fontforge-20090622-fdleak.patch renamed to fontforge-fdleak.patch * docdir.patch renamed to fontforge-docdir.patch - fontforge-arraysubscript.patch: Fix invalid array subscript - Put documentation into a separate subpackage - Spruce of description of fontforge-devel a bit - File list simplification/exactness - add fontforge-fixgiflib.patch to fix build with giflib 5.0.5 - use %requires_eq rather than %requires_ge (exact version) - %requires_ge libpng16-16 to avoid 'Application built with libpng-1.5.14 but running with 1.6.1' warning when running fontforge - Build with cairo and pango support - Update to 20120731b * see included changelog.html for details * removed obsolete fontforge.py27.diff * removed obsolete fontforge-missing-closedir.diff * removed obsolete libpng14.diff - remove call to suse_update_config (very old work around) - Make rpmlint more happy. - Apply packaging guidelines (remove redundant/obsolete tags/sections from specfile, etc.) - updated to 20110222: * Did a lot of work to improve the accuracy in remove overlap. * Fix various error messages. * Remove some obsolete documentation. * Technical fixes to stroking code. * Add a miterlimit to stroking code. * FontForge was using the wrong MIME type for svg files. W3C has changed it and it's now "image/svg+xml" not "image/svg-xml" or "image/svg". * etc. on http://fontforge.sourceforge.net/changelog.html * libpng14.diff and fontforge.py27.diff kept but not needed yet - adapt to python 2.7 - fix build with older distros before libpng 1.4 - compile with libpng 1.4 - Updated to 20090923 - Enabled Python bindings - fontforge-20090622-1.6: missing call to closedir [bnc#543458] - fix -devel package dependencies - fix missing closedir() (bnc#525022) - updated to version 20090622 lots of changes. See changelog.html for details - remove "la" files and static libraries - add missing freetype2-devel dependency to -devel package - bnc#246804: update to 20080429 (needed to build recent versions of the DejaVu fonts and freefont). - fix typo - update to 20080203 (bugfix release, fixes also bnc#363014). - create -devel sub-package. - update to 20070723 (user interace redesigned, many bugfixes). - add ldconfig post scripts. - remove executable flags from documentation. - remove DOS line-endings from documentation. - remove BuildPreRequires - Bugzilla #242363: uninitialized variable. - update to 20061220. - remove fontforge-strncat.patch, bugzilla-221210-locale-variable-used-before-set.patch, bugzilla-225616-local-variable-used-before-set.patch (included upstream). - fix bugzilla #231126: "array subscript out of range". - update to 20061025. • fontimage program has been added. - fix bugzilla #225616 ("local variable used before set"). - Bugzilla #221210: "local variable used before set" - fix permissions on icon file - fix gcc warning for strncat - update to 20061014. remove bugzilla-203490-local-variable-used-before-set.patch (included upstream). - Fix Bugzilla #211543 ("array subscript out of range). - Fix invalid operation (like x = x++;) - fix bugzilla #203490: "local variable used before set". - add Japanese documentation. - update to 20060822. remove bugzilla-197499-local-variable-used-before-set.patch (included upstream). - Bugzilla 197499: "local variable used before set". - update to 20060715. fixes a crash when building freefont. - Bugzilla #158759: "locale variable used before set". (already fixed in latest upstream version). - Bugzilla #153958: "array subscript out of range". (already fixed in latest upstream version). - converted neededforbuild to BuildRequires - fix capitalization of .desktop GenericName entry - update to 20050803. cannot update documentation because the download link for the documentation is currently dead. - update to 20050502. - all .html and .png files should have mode 644. - fix fontforge.desktop file (thanks to Thomas Schraitle<thomas.schraitle@suse.de>). - install icon - fixed file list - rename: PfaEdit -> fontforge (has been renamed upstream). - update to 20040808. - use no-strict-aliasing - update to 040224. - build as user - make it build on older distributions. - update to 030817. - add desktop file. - update binaries and documentation to 030512 - add .so and .la file to file list - add "freetype2 freetype2-devel" to neededforbuild - update binaries and documentation to 030211 - update to 021105 - use x-devel-packages instead of xf86 in # neededforbuild - use dynamic linking - update to 021021 and update documentation to 020910. - update to version 020724 - include documentation, remove cidmaps.tar.bz2 and use updated cidmaps.tgz from the documentation tar ball - changed neededforbuild <libpng> to <libpng-devel-packages> - update to version 020121. - updated cidmaps.tar.bz2 - adapted for SuSE, version 010905 - My first attempt at rpm, updated to 10 May sources - Removed (unused) dynamic library files - Upgraded from 220401 to 280401. - Upgraded from 190401 to 220401. - Upgraded from 020401 to 190401. - Upgraded from 210301 to 020401. - Initial release OBS-URL: https://build.opensuse.org/request/show/561651 OBS-URL: https://build.opensuse.org/package/show/M17N/fontforge?expand=0&rev=66
154 lines
4.9 KiB
RPMSpec
154 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package fontforge
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: fontforge
|
|
Version: 20170731
|
|
Release: 0
|
|
Summary: A Font Editor
|
|
License: GPL-3.0+
|
|
Group: Productivity/Graphics/Vector Editors
|
|
Url: http://fontforge.org/
|
|
# Source: https://github.com/fontforge/fontforge/archive/%{version}.tar.gz
|
|
# see bug 926061, fontforge-*-repacked.tar.gz does not contain fontforge-*/win/gold/libX11-*.noarch.rpm
|
|
Source0: fontforge-%{version}-repacked.tar.gz
|
|
Source1: get-source.sh
|
|
# workardound for bug 930076, imho upstream should fix this
|
|
# https://github.com/fontforge/fontforge/issues/2270
|
|
Patch0: fontforge-version.patch
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: cairo-devel
|
|
BuildRequires: fdupes
|
|
BuildRequires: fontconfig-devel
|
|
BuildRequires: freetype2-devel
|
|
BuildRequires: gettext-tools
|
|
BuildRequires: giflib-devel
|
|
BuildRequires: git
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: libuninameslist-devel
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: pango-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3-devel
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xft)
|
|
BuildRequires: pkgconfig(xi)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} > 1210
|
|
BuildRequires: libspiro-devel
|
|
%endif
|
|
|
|
%description
|
|
FontForge allows editing of outline and bitmap fonts. With it, you can
|
|
create new fonts or modify old ones. It also converts font formats and
|
|
can convert among PostScript (ASCII & binary Type 1, some Type 3s, and
|
|
some Type 0s), TrueType, OpenType (Type2), and CID-keyed fonts.
|
|
|
|
%package doc
|
|
Summary: Documentation for FontForge
|
|
Group: Documentation/HTML
|
|
%if 0%{?suse_version} >= 1230
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description doc
|
|
FontForge allows editing of outline and bitmap fonts. With it, you can
|
|
create new fonts or modify old ones. It also converts font formats and
|
|
can convert among PostScript, TrueType, OpenType, and CID-keyed fonts.
|
|
|
|
This subpackage contains the documentation to FontForge.
|
|
|
|
%package devel
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
Requires: freetype2-devel
|
|
|
|
%description devel
|
|
FontForge allows editing of outline and bitmap fonts. With it, you can
|
|
create new fonts or modify old ones. It also converts font formats and
|
|
can convert among PostScript, TrueType, OpenType, and CID-keyed fonts.
|
|
|
|
This subpackage contains all necessary include files and libraries needed
|
|
to develop applications that use FontForge libraries.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
sed -i 's/\r$//' doc/html/{Big5.txt,corpchar.txt}
|
|
# workaround for bug 930076; we just need the _version_of_the_release_! (see also fontforge-version.patch) ---
|
|
grep 'doversion(FONTFORGE_MODTIME_STR)' fontforgeexe/startnoui.c && \
|
|
sed -i 's:FONTFORGE_MODTIME_STR:"%{version}":' fontforgeexe/startnoui.c
|
|
grep 'doversion(FONTFORGE_MODTIME_STR)' fontforgeexe/startui.c && \
|
|
sed -i 's:FONTFORGE_MODTIME_STR:"%{version}":' fontforgeexe/startui.c
|
|
# ---
|
|
|
|
%build
|
|
./bootstrap --force
|
|
%configure \
|
|
--disable-static \
|
|
--enable-pyextension \
|
|
--with-regular-link \
|
|
--docdir=%{_docdir}/%{name}/html
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
%suse_update_desktop_file -i %{name} VectorGraphics
|
|
%find_lang FontForge
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
%fdupes -s %{buildroot}%{_datadir}/%{name}
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files -f FontForge.lang
|
|
%defattr(-,root,root)
|
|
%doc LICENSE COPYING.gplv3
|
|
%exclude %{_docdir}/%{name}/html
|
|
%{_mandir}/man1/*.1*
|
|
%{_bindir}/*
|
|
%{_libdir}/lib*.so.*
|
|
%{_datadir}/fontforge/
|
|
%{python3_sitearch}/*
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
%{_datadir}/mime/packages/%{name}.xml
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS LICENSE README.md
|
|
%doc %{_docdir}/%{name}/html
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%doc CONTRIBUTING.md
|
|
%{_includedir}/fontforge/
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_libdir}/lib*.so
|
|
|
|
%changelog
|