X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=freetype.spec;h=6b2868b1eb10efab5ba757a4986a526dfd25dec8;hb=e0bbd758437f51561f0a8a9cc2a1a02e8e45383c;hp=b8d83eb635ccd28a61120bf1f698a08ef4bb8c93;hpb=e19c2a1bf33ef3b168f62e0d290690e136dda8bf;p=packages%2Ffreetype.git diff --git a/freetype.spec b/freetype.spec index b8d83eb..6b2868b 100644 --- a/freetype.spec +++ b/freetype.spec @@ -1,21 +1,31 @@ -Summary: Truetype font rasterizer -Summary(pl): Rasteryzer fontów Truetype +# +# Conditional build: +# _with_bytecode - with TT bytecode interpreter +# (patents pending in USA, Japan...) +# +%define _status rc1 +Summary: TrueType font rasterizer +Summary(es): Biblioteca de render 3D de fuentes TrueType +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: 1.3.1 -Release: 8 -License: BSD like +Version: 2.1.4 +Release: %{_status}_1 +License: GPL or FTL Group: Libraries -Group(fr): Librairies -Group(pl): Biblioteki -Source0: ftp://ftp.physiol.med.tu-muenchen.de/pub/freetype/%{name}-%{version}.tar.gz -Source1: ttmkfdir.tar.gz -Patch0: %{name}-DESTDIR.patch -Patch1: %{name}-autoconf.patch -Patch2: %{name}-foundrynames.patch -URL: http://www.physiol.med.tu-muenchen.de/~robert/freetype.html -BuildRequires: gettext-devel +Source0: http://telia.dl.sourceforge.net/sourceforge/freetype/%{name}-%{version}%{_status}.tar.bz2 +# no doc and demos in rc. +#Source1: http://telia.dl.sourceforge.net/sourceforge/freetype/ftdocs-%{version}%{_status}.tar.bz2 +#Source2: http://telia.dl.sourceforge.net/sourceforge/freetype/ft2demos-%{version}%{_status}.tar.bz2 +URL: http://www.freetype.org/ +BuildRequires: SysVinit BuildRequires: XFree86-devel 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 @@ -30,115 +40,174 @@ 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 jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Kody -¼ród³owe napisane s± w ANSI C oraz 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: Header files and development documentation +Summary(es): Archivos de inclusión e bibliotecas estáticas para desarrollo con 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 -Group(fr): Development/Librairies -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 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 -l pl devel -Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy -kompilowaniu programów wykorzystuj±cych bibliotekê freetype. +%description devel -l uk +ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ +ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ freetype. %package static -Summary: Freetype static libraries -Summary(pl): Biblioteki statyczne freetype +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 -Group(fr): Development/Librairies -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 es +Static libraries for freetype development. -%package progs -Summary: Freetype library utilities -Summary(pl): Programy u¿ytkowe freetype -Group: Utilities -Group(pl): Narzêdzia +%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(pl): Programy demonstracyjne FreeType +Group: X11/Applications Requires: %{name} = %{version} -Obsoletes: freetype-utils - -%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 -mkdir ttmkfdir -tar xz -C ttmkfdir -f %{SOURCE1} -%patch0 -p1 -%patch1 -p1 +%setup -q -n %{name}-%{version}%{_status} +#no doc/demos -b1 -a2 %build -gettextize --copy --force -aclocal -autoconf -%configure \ - --enable-static \ - --with-gnu-ld +CFLAGS="%{rpmcflags} %{?_with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER}" \ +%{__make} setup CFG="--prefix=%{_prefix}" + %{__make} -%{__make} -C ttmkfdir CC="gcc $RPM_OPT_FLAGS -I../lib" + +##%{__make} TOP_DIR="`pwd`" -C ft2demos-* %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT -install -s ttmkfdir/ttmkfdir $RPM_BUILD_ROOT%{_bindir} +%{__make} install \ + DESTDIR="$RPM_BUILD_ROOT" \ + datadir=%{_datadir} -strip $RPM_BUILD_ROOT%{_libdir}/lib*so.*.* +# no 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 -gzip -9nf howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits} - -%find_lang %{name} +%clean +rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f %{name}.lang +%files %defattr(644,root,root,755) +%doc docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt} %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 -%attr(755,root,root) %{_libdir}/lib*.la -%{_includedir}/* +%{_libdir}/lib*.la +%{_includedir}/freetype2 +%{_includedir}/*.h +%{_aclocaldir}/*.m4 %files static %defattr(644,root,root,755) %{_libdir}/lib*.a -%files progs -%defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/* +##%files demos +##%defattr(644,root,root,755) +##%attr(755,root,root) %{_bindir}/ft* +##%attr(755,root,root) %{_xbindir}/ft*