X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=freetype.spec;h=46ffbd7a26d1db960eb6b591733f0da30c481d6a;hb=5ce9c6390b48139b6efc492bcda06d7cb11344a0;hp=52ee95fd3c41bd3706df71eb751e904dc985e9be;hpb=dfbd1f057e1f72b7adc61583af63c50b78eec0a2;p=packages%2Ffreetype.git diff --git a/freetype.spec b/freetype.spec index 52ee95f..46ffbd7 100644 --- a/freetype.spec +++ b/freetype.spec @@ -1,160 +1,221 @@ -Summary: Truetype font rasterizer -Summary(pl): Fonty Truetype -Name: freetype -Version: 1.2 -Release: 1 -Source: ftp://ftp.physiol.med.tu-muenchen.de/pub/freetype/freetype-%{version}.tar.gz -URL: http://www.physiol.med.tu-muenchen.de/~robert/freetype.html -Copyright: LGPL -Group: Libraries -BuildRoot: /tmp/%{name}-%{version}-root +# +# Conditional build: +# _with_bytecode - with TT bytecode interpreter +# (patents pending in USA, Japan...) +# +Summary: TrueType font rasterizer +Summary(es): Biblioteca de render 3D de fuentes TrueType +Summary(ko): ÀÚÀ¯·Ó°Ô ¾îµðµç ¾µ ¼ö ÀÖ´Â Æ®·çŸÀÔ ±Û²ÃÀ» ´Ù·ç´Â ¿£Áø +Summary(pl): Rasteryzer fontów TrueType +Summary(pt_BR): Biblioteca de renderização de fontes TrueType +Summary(ru): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× TrueType +Summary(uk): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔ¦× TrueType +Name: freetype +Version: 2.1.4 +Release: 3 +License: GPL or FTL +Group: Libraries +Source0: http://dl.sourceforge.net/sourceforge/freetype/%{name}-%{version}.tar.bz2 +# Source0-md5: 1fc0b188f1fe1216776e5855d2da141f +Source1: http://dl.sourceforge.net/sourceforge/freetype/ftdocs-%{version}.tar.bz2 +# Source1-md5: 367064e81998a302f3844f1dcdb8d77f +Source2: http://dl.sourceforge.net/sourceforge/freetype/ft2demos-%{version}.tar.bz2 +# Source2-md5: 92cb4e645fe1cfb8345b64cedb9d332e +Patch0: ftlru.c.diff +URL: http://www.freetype.org/ +BuildRequires: SysVinit +BuildRequires: XFree86-devel +BuildRequires: zlib-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +Obsoletes: freetype2 + +%define specflags_ia32 "-fomit-frame-pointer" %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 es +FreeType es una máquina libre y portátil para en render de fuentes +TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran +variedad de plataformas y ambientes. Observa que FreeType es una +biblioteca y no una aplicación, a pesar de que algunos utilitarios se +incluyan en este paquete. %description -l pl -FreeType daje mo¿liwo¶æ renderowania 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. + +%description -l pt_BR +FreeType é uma máquina livre e portável para renderização de fontes +TrueType. Ela foi desenvolvida para fornecer suporte TrueType a uma +grande variedade de plataformas e ambientes. Note que FreeType é uma +biblioteca e não uma aplicação, apesar que alguns utilitários são +incluídos neste pacote. + +%description -l ru +âÉÂÌÉÏÔÅËÁ FreeType - ÜÔÏ Ó×ÏÂÏÄÎÁÑ ÐÅÒÅÎÏÓÉÍÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ +ÒÅÎÄÅÒÉÎÇÁ (ÒÁÓÔÅÒÉÚÁÃÉÉ) ÛÒÉÆÔÏ× TrueType, ÄÏÓÔÕÐÎÁÑ × ÉÓÈÏÄÎÙÈ +ÔÅËÓÔÁÈ ÎÁ ANSI C É Pascal. ïÎÁ ÂÙÌÁ ÒÁÚÒÁÂÏÔÁÎÁ ÄÌÑ ÐÏÄÄÅÒÖËÉ TT ÎÁ +ÒÁÚÎÏÏÂÒÁÚÎÙÈ ÐÌÁÔÆÏÒÍÁÈ. + +%description -l uk +â¦Â̦ÏÔÅËÁ FreeType - ÊצÌØÎÁ ÐÅÒÅÎÏÓÉÍÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÒÅÎÄÅÒÉÎÇÕ +(ÒÁÓÔÅÒÉÚÁæ§) ÛÒÉÆÔ¦× TrueType, ÝÏ ÒÏÚÐÏ×ÓÀÄÖÕ¤ÔØÓÑ Õ ×ÉȦÄÎÉÈ +ÔÅËÓÔÁÈ ÎÁ C ÔÁ Pascal. ÷ÏÎÁ ÂÕÌÁ ÒÏÚÒÏÂÌÅÎÁ ÄÌÑ Ð¦ÄÔÒÉÍËÉ TT ÎÁ +Ò¦ÚÎÉÈ ÐÌÁÔÆÏÒÍÁÈ. %package devel -Summary: Development libraries for freetype -Summary(pl): Biblioteki dla freetype -Requires: freetype = %{version} -Group: Development/Libraries +Summary: Header files and development documentation +Summary(es): Archivos de inclusión e bibliotecas estáticas para desarrollo con FreeType +Summary(ko): FreeTypeÀ» ¾µ ¶§ ÇÊ¿äÇÑ Á¤Àû ¶óÀ̺귯¸®¿Í ¸Ó¸®¸» ÆÄÀÏ +Summary(pl): Pliki nag³ówkowe biblioteki freetype i dokumentacja +Summary(pt_BR): Arquivos de inclusão e bibliotecas estáticas para desenvolvimento com FreeType +Summary(ru): âÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ freetype +Summary(uk): â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ freetype +Group: Development/Libraries +Requires: %{name} = %{version} +Requires: zlib-devel +Obsoletes: freetype2-devel %description devel -This package includes the header files 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³ówków oraz biblioteki, dla progranmistów chc±cych -wykorzystaæ freetype w swoich aplikacjach. +%description devel -l es +Este paquete es necesario, si pretendes desarrollar/compilar +aplicaciones con la biblioteca FreeType. Si, simplemente, deseas +ejecutar aplicaciones existentes, no lo necesitas. + +%description devel -l pl +Pakiet ten zawiera pliki nag³ówkowe oraz dokumentacjê potrzebne przy +tworzeniu programów wykorzystuj±cych bibliotekê FreeType. + +%description devel -l pt_BR +Este pacote é necessário se você pretende desenvolver/compilar +aplicações com a biblioteca FreeType. Se você simplesmente deseja +rodar aplicações existentes, você não precisa deste pacote. + +%description devel -l ru +üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ +ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ freetype. + +%description devel -l uk +ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ +ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ freetype. %package static -Summary: Static freetype libraries -Summary(pl): Biblioteki statyczne freetype -Requires: %{name}-devel = %{version} -Group: Development/Libraries +Summary: FreeType static libraries +Summary(es): Static libraries for freetype development +Summary(pl): Biblioteki statyczne FreeType +Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com freetype +Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ freetype +Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ freetype +Group: Development/Libraries +Requires: %{name}-devel = %{version} +Obsoletes: freetype2-static %description static -Static freetype libraries. - -%description -l pl static -Biblioteki statyczne freetype - -%package progs -Summary: Freetype library utilities -Summary(pl): Programy u¿ytkowe freetype -Requires: %{name} = %{version} -Group: Utilities - -%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 +Static FreeType libraries. + +%description static -l es +Static libraries for freetype development. + +%description static -l pl +Biblioteki statyczne FreeType. + +%description static -l pt_BR +Bibliotecas estáticas para desenvolvimento com freetype. + +%description static -l ru +üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÎÁÐÉÓÁÎÉÑ +ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ freetype. + +%description static -l uk +ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÎÁÐÉÓÁÎÎÑ +ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ freetype. + +%package demos +Summary: FreeType demo programs +Summary(ko): FreeTypeÀ» ½ÃÇèÇغ¼ ¼ö ÀÖ´Â ÇÁ·Î±×·¥ ¸ðÀ½ +Summary(pl): Programy demonstracyjne FreeType +Group: X11/Applications +Requires: %{name} = %{version} + +%description demos +Demonstration programs for FreeType library. + +%description demos -l pl +Programy demonstracyjne do biblioteki FreeType. %prep -%setup -q +%setup -q -a1 -a2 +patch src/cache/ftlru.c < %{PATCH0} + +mv -f freetype-%{version}/docs/* docs %build -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s \ -./configure --prefix=/usr \ - --enable-static \ - --with-locale-dir=/usr/share/locale \ - --with-gnu-ld -make +CFLAGS="%{rpmcflags} %{?_with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER}" \ +%{__make} setup unix \ + CFG="--prefix=%{_prefix}" + +%{__make} + +%{__make} TOP_DIR="`pwd`" -C ft2demos-* %install rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT/usr \ - localedir=$RPM_BUILD_ROOT/usr/share/locale \ - gnulocaledir=$RPM_BUILD_ROOT/usr/share/locale \ - install +install -d $RPM_BUILD_ROOT%{_bindir} -strip $RPM_BUILD_ROOT/usr/lib/lib*so.*.* +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + datadir=%{_datadir} -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +install ft2demos-*/bin/.libs/ft{multi,timer,view} $RPM_BUILD_ROOT%{_bindir} +install ft2demos-*/bin/.libs/ft{dump,lint,memchk} $RPM_BUILD_ROOT%{_bindir} +install ft2demos-*/bin/.libs/testnames $RPM_BUILD_ROOT%{_bindir}/fttestnames %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files -%defattr(644, root, root, 755) -%doc docs/* HOWTO.txt README announce license.txt -%attr(755, root, root) /usr/lib/lib*so.*.* -%lang(cs) /usr/share/locale/cs/LC_MESSAGES/freetype.mo -%lang(de) /usr/share/locale/de/LC_MESSAGES/freetype.mo -%lang(es) /usr/share/locale/es/LC_MESSAGES/freetype.mo -%lang(fr) /usr/share/locale/fr/LC_MESSAGES/freetype.mo -%lang(nl) /usr/share/locale/nl/LC_MESSAGES/freetype.mo +%defattr(644,root,root,755) +%doc docs/{CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt} +%attr(755,root,root) %{_libdir}/lib*so.*.* %files devel -%defattr(644, root, root) -/usr/include/* -/usr/lib/lib*.so +%defattr(644,root,root,755) +%doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial} +%attr(755,root,root) %{_bindir}/freetype-config +%attr(755,root,root) %{_libdir}/lib*.so +%{_libdir}/lib*.la +%{_includedir}/freetype2 +%{_includedir}/*.h +%{_aclocaldir}/*.m4 %files static -%attr(644, root, root) /usr/lib/lib*.a - -%files progs -%attr(755, root, root) /usr/bin/* - -%changelog - -* Mon Jul 20 1998 Wojtek ¦lusarczyk - [1.1-2] -- added static subapackage -- added pl translation. - -* Fri Jun 05 1998 Arne Coucheron -- updated to 1.1pre1-2 -- rpm 2.5 is doing weird things with the %doc, moved it last in filelist - to make it behave better - -* Mon May 25 1998 Arne Coucheron -- updated to 1.1pre1-1 -- removed libttf.so.1 symlink -- added --with-locale-dir and --with-gnu-ld to configure -- changed HOWTO in %doc to HOWTO.txt -- lib*.so* files wasn't chmod 755, fixed -- removed initial making of the $RPM_BUILD_ROOT/usr directory - layout in %install, it isn't needed - -* Thu May 14 1998 Arne Coucheron -- updated to current devel release so that ImageMagick 4.0.6 can be compiled -- removed installing of tterror.h/ttcommon.h, don't exist in devel source -- added --enable-static to configure, required now to build static libs -- added additional NLS languages -- made symlink from libttf.so.1 to libttf.so.2.0.0 for apps needing it - -* Wed May 6 1998 Tomasz K³oczko -- added instaling tterror.h header file, -- %%{version} macro instead %%{PACKAGE_VERSION}, -- added using %%{name} macro in Buildroot and in Requires in devel, -- added -q %setup parameter. - -* Mon Apr 27 1998 Tomasz K³oczko -- replaced usind %{version} macro by predefined %%{PACKAGE_VERSION}, -- added "Requires: freetype = %{PACKAGE_VERSION}" for devel subpackage, -- added using %defattr in %files (requires rpm >= 2.4.99), -- added %lang macros for files /usr/share/locale/*/LC_MESSAGES/freetype.mo - files, -- added stripping /usr/lib/lib*so.*.*, -- programs from /usr/bin/ moved to separated progs subpackage. - -* Wed Feb 18 1998 Arne Coucheron -- First release, 1.0-1 +%defattr(644,root,root,755) +%{_libdir}/lib*.a + +%files demos +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/ft*