2 Summary: A free and portable font rendering engine
5 Group: System/Libraries
6 License: FTL or GPL-2.0+
7 URL: http://www.freetype.org
8 Source0: http://download.savannah.gnu.org/releases-noredirect/freetype/freetype-%{version}.tar.gz
9 Source1001: packaging/freetype.manifest
11 BuildRequires: pkgconfig(libpng)
12 Requires(post): /sbin/ldconfig
13 Requires(postun): /sbin/ldconfig
14 Provides: %{name}-bytecode
18 The FreeType engine is a free and portable font rendering
19 engine, developed to provide advanced font support for a variety of
20 platforms and environments. FreeType is a library which can open and
21 manages font files as well as efficiently load, hint and render
22 individual glyphs. FreeType is not a font server or a complete
23 text-rendering library.
28 Summary: FreeType development libraries and header files
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
35 The freetype-devel package includes the static libraries and header files
36 for the FreeType font rendering engine.
38 Install freetype-devel if you want to develop programs which will use
49 %configure --disable-static
50 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' builds/unix/libtool
51 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' builds/unix/libtool
57 %makeinstall gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
58 mkdir -p %{buildroot}/usr/share/license
59 cat docs/FTL.TXT > %{buildroot}/usr/share/license/%{name}
63 %ifarch x86_64 s390x ia64 ppc64 alpha sparc64
69 mv $RPM_BUILD_ROOT%{_includedir}/freetype2/config/ftconfig.h \
70 $RPM_BUILD_ROOT%{_includedir}/freetype2/config/ftconfig-%{wordsize}.h
71 cat >$RPM_BUILD_ROOT%{_includedir}/freetype2/config/ftconfig.h <<EOF
72 #ifndef __FTCONFIG_H__MULTILIB
73 #define __FTCONFIG_H__MULTILIB
75 #include <bits/wordsize.h>
78 # include "ftconfig-32.h"
79 #elif __WORDSIZE == 64
80 # include "ftconfig-64.h"
82 # error "unexpected value for __WORDSIZE macro"
88 # Don't package static a or .la files
89 rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
92 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %manifest freetype.manifest
98 %defattr(-,root,root,-)
99 %{_libdir}/libfreetype.so.*
100 /usr/share/license/%{name}
103 %manifest freetype.manifest
104 %defattr(-,root,root,-)
105 %dir %{_includedir}/freetype2
106 %{_datadir}/aclocal/freetype2.m4
107 %{_includedir}/freetype2/*
108 %{_libdir}/libfreetype.so
109 %{_bindir}/freetype-config
110 %{_libdir}/pkgconfig/*.pc
111 %{_datadir}/man/man1/*