File mingw64-t1lib.spec of Package mingw64-t1lib
#
# spec file for package mingw64-t1lib
#
# Copyright (c) 2014 SUSE LINUX Products 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: mingw64-t1lib
Version: 5.1.2
Release: 0
Summary: Adobe Type 1 Font Rasterizing Library
License: LGPL-2.1-or-later
Group: Development/Libraries
Url: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/
Source0: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-%{version}.tar.gz
Source1000: %{name}-%{version}-rpmlintrc
Patch0: t1lib-5.1.2-relocatable.patch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem >= 23
%_mingw64_package_header_debug
BuildArch: noarch
%description
T1lib is a library for generating character and string glyphs from
Adobe Type 1 fonts under UNIX. T1lib uses most of the code of the X
Window System rasterizer donated by IBM to the X Window System project.
Some disadvantages of the rasterizer included in the X Window System
have been eliminated.
%package devel
Summary: Adobe Type 1 Font Rasterizing Library
Group: Development/Libraries
%description devel
T1lib is a library for generating character and string glyphs from
Adobe Type 1 fonts under UNIX. T1lib uses most of the code of the X
Window System rasterizer donated by IBM to the X Window System project.
Some disadvantages of the rasterizer included in the X Window System
have been eliminated.
This package provides the t1lib development environment (static
libraries, header files, and more).
%package tools
Summary: Adobe Type 1 Font Rasterizing Library
Group: Development/Libraries
%description tools
T1lib is a library for generating character and string glyphs from
Adobe Type 1 fonts under UNIX. T1lib uses most of the code of the X
Window System rasterizer donated by IBM to the X Window System project.
Some disadvantages of the rasterizer included in the X Window System
have been eliminated.
This package provides the t1lib development environment (static
libraries, header files, and more).
%_mingw64_debug_package
%prep
%setup -q -n t1lib-%{version}
%patch -P 0 -p1 -b .relocatable
%build
echo "lt_cv_deplibs_check_method=pass_all" >>%{_mingw64_cache}
echo "ac_16bit_type=short" >>%{_mingw64_cache}
echo "ac_32bit_type=int" >>%{_mingw64_cache}
echo "ac_64bit_type=__int64" >>%{_mingw64_cache}
MINGW64_CFLAGS="-DT1_AA_TYPE64=__int64 %{_mingw64_cflags}" \
%{_mingw64_configure} \
--without-x --without-athena \
--disable-static --enable-shared
make without_doc %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root)
%{_mingw64_bindir}/libt1-5.dll
%{_mingw64_datadir}/t1lib/t1lib.config
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libt1.dll.a
%{_mingw64_includedir}/t1lib.h
%{_mingw64_datadir}/t1lib/doc/t1lib_doc.pdf
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/type1afm.exe
%changelog