# # Conditional build: # _without_bytecode - without TT bytecode interpreter # (patents pending in USA, Japan...) # Summary: Truetype font rasterizer Summary(pl): Rasteryzer fontów Truetype Name: freetype Version: 2.0.6 Release: 2 License: GPL or FTL Group: Libraries Source0: ftp://ftp.freetype.org/freetype/freetype2/%{name}-%{version}.tar.bz2 Source1: ftp://ftp.freetype.org/freetype/freetype2/ftdocs-%{version}.tar.bz2 Patch0: %{name}2-DESTDIR.patch Patch1: %{name}2-gsf-segv.patch Patch2: %{name}2-bytecode.patch URL: http://www.freetype.org/ BuildRequires: SysVinit BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: freetype2 %description The FreeType engine is a free and portable TrueType font rendering engine. It has been developed to provide TrueType support to a great variety of platforms and environments. Note that FreeType is a *library*. It is not a font server for your favorite platform, even though it was designed to be used in many of them. Note also that it is *not* a complete text-rendering library. Its purpose is simply to open and manage font files, as well as load, hint and render individual glyphs efficiently. You can also see it as a "TrueType driver" for a higher-level library, though rendering text with it is extremely easy, as demo-ed by the test programs. %description -l pl FreeType jest biblioteką służącą do rasteryzacji fontów TrueType. Kody źródłowe napisane są w ANSI C oraz PASCAL'u. %package devel Summary: Header files and development documentation Summary(pl): Pliki nagłówkowe biblioteki freetype i dokumentacja Group: Development/Libraries Requires: %{name} = %{version} Obsoletes: freetype2-devel Obsoletes: freetype2-static %description devel This package includes the header files documentations and libraries necessary to develop applications that use freetype. %description devel -l pl Pakiet ten zawiera pliki nagłówkowe oraz biblioteki niezbędne przy kompilowaniu programów wykorzystujących bibliotekę freetype. %package static Summary: Freetype static libraries Summary(pl): Biblioteki statyczne freetype Group: Development/Libraries Requires: %{name}-devel = %{version} Obsoletes: freetype2-static %description static Static freetype libraries. %description static -l pl Biblioteki statyczne freetype. %prep %setup -q -b1 %patch0 -p1 %patch1 -p1 %{!?_without_bytecode:%patch2 -p1} %build CFLAGS="%{rpmcflags}" %{__make} setup CFG="--prefix=%{_prefix}" %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR="$RPM_BUILD_ROOT" gzip -9nf docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc docs/*.gz %attr(755,root,root) %{_libdir}/lib*so.*.* %files devel %defattr(644,root,root,755) %doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial} %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_libdir}/lib*.so %attr(755,root,root) %{_libdir}/lib*.la %{_includedir}/freetype2 %{_includedir}/*.h %files static %defattr(644,root,root,755) %{_libdir}/lib*.a