File fonttosfnt.spec of Package fonttosfnt.20912
#
# spec file for package fonttosfnt
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: fonttosfnt
Version: 1.1.0
Release: 0
Summary: Utility to wrap a bitmap font in a sfnt (TrueType) wrapper
License: MIT
Group: System/X11/Utilities
URL: http://xorg.freedesktop.org/
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Patch0: 0001-don-t-add-arbitrary-number-to-the-glypth-metrics.patch
Patch1: 0002-use-zero-lineGap-sTypoDescender-should-be-negative.patch
Patch2: 0003-truncate-foundry-if-there-is-no-known-abbreviation.patch
Patch3: 0004-remove-now-obsolete-comment-too.patch
Patch4: 0005-correctly-set-OS2-fsSelection-for-italic-and-bold-fo.patch
Patch5: 0006-use-standard-C-rounding-functions.patch
Patch6: 0007-use-more-properties-according-to-XLFD.patch
Patch7: 0008-use-design-metrics-in-eblc-instead-of-calculated-met.patch
Patch8: 0009-provide-version-5-OS-2-table.patch
Patch9: 0010-Add-warnings-when-wrapping-multiple-fonts-and-on-PCF.patch
Patch10: 0011-move-metrics-calculation-to-write.c.patch
Patch11: 0012-calculate-capHeight-and-xHeight-as-recommended.patch
Patch12: 0013-fix-sign-of-sTypoDescender.patch
Patch13: 0014-use-PIXEL_SIZE-to-calculate-lineGap.patch
Patch14: 0015-Fix-incorrect-error-handling-in-macTime.patch
Patch15: 0016-Fix-uninitialised-memory-write.patch
Patch16: 0017-Guess-Regular-style-for-Medium-Weight.patch
Patch17: 0018-remove-leftover-debug-printf.patch
Patch18: 0019-handle-empty-foundry-encoded-as-NULL.patch
Patch19: 0020-fix-sign-of-calculated-descent.patch
Patch20: 0021-Fall-back-to-using-FONT-property-as-family-name.patch
Patch21: 0022-writeFile-avoid-file-leak-on-errors.patch
Patch22: 0001-1em-is-font-size-not-heigh.patch
Patch23: 0023-Fail-if-ftell-fails.patch
BuildRequires: pkg-config
BuildRequires: pkgconfig(fontenc)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(xorg-macros) >= 1.8
BuildRequires: pkgconfig(xproto)
# This was part of the xorg-x11 package up to version 7.6
Conflicts: xorg-x11 <= 7.6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Wrap a bitmap font or a set of bitmap fonts in a sfnt (TrueType or
OpenType) wrapper.
%prep
%setup -q
%autopatch -p1
%build
%configure
make %{?_smp_mflags}
%install
%make_install
%files
%defattr(-,root,root)
%doc README.md
%license COPYING
%{_bindir}/fonttosfnt
%{_mandir}/man1/fonttosfnt.1%{?ext_man}
%changelog