X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=freetype.spec;h=047b9febfbb9b1209b9e6ec72a852d652c9fffc8;hb=65f14731479ff4fcaf8a8e143cbed000c0e4d997;hp=038b27fc5223dd20f4e2c33bded48997f5ca8227;hpb=395c89efd6192558d3850c4ab75749ac68d4e221;p=packages%2Ffreetype.git diff --git a/freetype.spec b/freetype.spec index 038b27f..047b9fe 100644 --- a/freetype.spec +++ b/freetype.spec @@ -1,122 +1,143 @@ -Summary: Truetype font rasterizer -Summary(pl): Rasteryzer fontów Truetype +# +# 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: 1.2 -Release: 6 -Copyright: LGPL +Version: 2.0.9 +Release: 1 +License: GPL or FTL Group: Libraries -Group(pl): Biblioteki -Source: ftp://ftp.physiol.med.tu-muenchen.de/pub/freetype/%{name}-%{version}.tar.gz -URL: http://www.physiol.med.tu-muenchen.de/~robert/freetype.html -BuildRequires: gettext +Source0: ftp://ftp.freetype.org/freetype/freetype2/%{name}-%{version}.tar.bz2 +Source1: ftp://ftp.freetype.org/freetype/freetype2/ftdocs-%{version}.tar.bz2 +Source2: ftp://ftp.freetype.org/freetype/freetype2/ft2demos-%{version}.tar.bz2 +Patch0: %{name}2-DESTDIR.patch +Patch1: %{name}2-bytecode.patch +URL: http://www.freetype.org/ +BuildRequires: SysVinit BuildRequires: XFree86-devel -BuildRoot: /tmp/%{name}-%{version}-root +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +Obsoletes: freetype2 + +%define _xbindir /usr/X11R6/bin %description -The FreeType engine is a free and portable TrueType font rendering engine, -available in ANSI C and Pascal source code. It has been developed to -provide TT support to a great variety of platforms and environments. +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 orza PASCAL'u. +FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Jest +to jedynie biblioteka, a nie serwer fontów, chocia¿ zosta³a ona +zaprojektowana do u¿ywania tak¿e w takich serwerach. Nie jest to te¿ +kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko +odczytywanie i zarz±dzanie plikami z fontami oraz wczytywanie i +wykonywanie hintingu i rasteryzacji poszczególnych glifów. Mo¿e byæ +tak¿e uwa¿ana za "sterownik TrueType" dla bibliotek wy¿szego poziomu, +jednak u¿ycie samej biblioteki FreeType do rasteryzacji jest bardzo +proste, co mo¿na zobaczyæ w programach demonstracyjnych. %package devel Summary: Header files and development documentation Summary(pl): Pliki nag³ówkowe biblioteki freetype i dokumentacja Group: Development/Libraries -Group(pl): Programowanie/Biblioteki Requires: %{name} = %{version} +Obsoletes: freetype2-devel %description devel -This package includes the header files documentations and libraries -necessary to develop applications that use freetype. +This package includes the header files and documentation necessary +to develop applications that use FreeType. -%description -l pl devel -Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy -kompilowaniu program wykorzystuj±cych bibliotekê freetype. +%description devel -l pl +Pakiet ten zawiera pliki nag³ówkowe oraz dokumentacjê potrzebne przy +tworzeniu programów wykorzystuj±cych bibliotekê FreeType. %package static -Summary: Freetype static libraries -Summary(pl): Biblioteki statyczne freetype +Summary: FreeType static libraries +Summary(pl): Biblioteki statyczne FreeType Group: Development/Libraries -Group(pl): Programowanie/Biblioteki Requires: %{name}-devel = %{version} +Obsoletes: freetype2-static %description static -Static freetype libraries. +Static FreeType libraries. -%description -l pl static -Biblioteki statyczne freetype. +%description static -l pl +Biblioteki statyczne FreeType. -%package progs -Summary: Freetype library utilities -Summary(pl): Programy u¿ytkowe freetype -Group: Utilities -Group(pl): Programowanie/Biblioteki +%package demos +Summary: FreeType demo programs +Summary(pl): Programy demonstracyjne FreeType +Group: X11/Applications Requires: %{name} = %{version} -%description progs -Freetype library utilites: -- ftimer - a simple performance timer for the engine, -- fzoom - very simple glyph viewer, -- ftlint - program will hint each glyph of a font file, at a given point - size, -- ftwiew - display all glyphs in a given font, applying hinting to each one, -- fdump - a simple TrueType font or collection dumper, -- ftstring - a simple program to show off string text generation. -- ftstrpn - convert a rendered text string into the PGM or PBM format, -- fterror - small test program. Tests the gettext() - functionality for internationalized messages. - -%description -l pl progs -Przyk³adowe aplikacje wykorzystuj±ce freetype +%description demos +Demonstration programs for FreeType library. + +%description demos -l pl +Programy demonstracyjne do biblioteki FreeType. %prep -%setup -q +%setup -q -b1 -a2 +%patch0 -p1 +%{!?_without_bytecode:%patch1 -p1} %build -autoconf -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ -./configure %{_target_platform} \ - --prefix=%{_prefix} \ - --enable-static \ - --with-locale-dir=%{_datadir}/locale \ - --with-gnu-ld -make +CFLAGS="%{rpmcflags}" %{__make} setup CFG="--prefix=%{_prefix}" + +%{__make} + +%{__make} TOP="`pwd`" -C ft2demos-* %install rm -rf $RPM_BUILD_ROOT -make install \ - prefix=$RPM_BUILD_ROOT/usr \ - localedir=$RPM_BUILD_ROOT%{_datadir}/locale \ - gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale - -strip $RPM_BUILD_ROOT%{_libdir}/lib*so.*.* -gzip -9nf howto/unix.txt README announce docs/{*.txt,*.doc,FAQ,TODO,credits} +%{__make} install \ + DESTDIR="$RPM_BUILD_ROOT" -%find_lang %{name} +# demos +install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir}} +install ft2demos-*/bin/.libs/ft{multi,timer,view} $RPM_BUILD_ROOT%{_xbindir} +install ft2demos-*/bin/.libs/ft{dump,lint,memchk} $RPM_BUILD_ROOT%{_bindir} +install ft2demos-*/bin/.libs/testnames $RPM_BUILD_ROOT%{_bindir}/fttestnames -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +gzip -9nf docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt} %clean rm -rf $RPM_BUILD_ROOT -%files -f %{name}.lang +%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 howto/unix* docs/*txt* *.gz +%doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial} +%attr(755,root,root) %{_bindir}/freetype-config %attr(755,root,root) %{_libdir}/lib*.so -%{_includedir}/* +%attr(755,root,root) %{_libdir}/lib*.la +%{_includedir}/freetype2 +%{_includedir}/*.h %files static %defattr(644,root,root,755) %{_libdir}/lib*.a -%files progs -%attr(755,root,root) %{_bindir}/* +%files demos +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/ft* +%attr(755,root,root) %{_xbindir}/ft*