X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=freetype.spec;h=c785838afdaedd443b1af0263c0fde06e126e656;hb=67cf78135af55d48650232f5ca097bdf61bed7d8;hp=9cb401b9dde9e107221029c85bc8ee1396b97f46;hpb=348423e30b3f60280a3e975e634ee4edc357fb56;p=packages%2Ffreetype.git diff --git a/freetype.spec b/freetype.spec index 9cb401b..c785838 100644 --- a/freetype.spec +++ b/freetype.spec @@ -1,30 +1,45 @@ # # Conditional build: -# _with_bytecode - without TT bytecode interpreter -# (patents pending in USA, Japan...) +%bcond_without bytecode # without TT bytecode interpreter (Apple patents in USA) +%bcond_without lcd # without LCD subpixel color filtering (Microsoft patents in USA) +%bcond_without x11 # don't build examples (X11-based) +%bcond_without apidocs # disable api docs # -Summary: Truetype font rasterizer -Summary(pl): Rasteryzer fontów Truetype +Summary: TrueType font rasterizer +Summary(es.UTF-8): Biblioteca de render 3D de fuentes TrueType +Summary(ko.UTF-8): 자유롭게 어디든 쓸 수 있는 트루타입 글꼴을 다루는 엔진 +Summary(pl.UTF-8): Rasteryzer fontów TrueType +Summary(pt_BR.UTF-8): Biblioteca de renderização de fontes TrueType +Summary(ru.UTF-8): Растеризатор шрифтов TrueType +Summary(uk.UTF-8): Растеризатор шрифтів TrueType Name: freetype -Version: 2.0.6 +Version: 2.3.9 Release: 1 +Epoch: 1 License: GPL or FTL Group: Libraries -Group(de): Libraries -Group(es): Bibliotecas -Group(fr): Librairies -Group(pl): Biblioteki -Group(pt_BR): Bibliotecas -Group(ru): âÉÂÌÉÏÔÅËÉ -Group(uk): â¦Â̦ÏÔÅËÉ -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 +Source0: http://dl.sourceforge.net/freetype/%{name}-%{version}.tar.bz2 +# Source0-md5: d76233108aca9c9606cdbd341562ad9a +Source1: http://dl.sourceforge.net/freetype/%{name}-doc-%{version}.tar.bz2 +# Source1-md5: ddcb766f7c5abab0e7061dcf32a0268f +Source2: http://dl.sourceforge.net/freetype/ft2demos-%{version}.tar.bz2 +# Source2-md5: 144b4c750e91595154a66709c75fdf0d URL: http://www.freetype.org/ -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +BuildRequires: automake +BuildRequires: python +BuildRequires: rpm >= 4.4.9-56 +%if "%{pld_release}" == "ac" +%{?with_x11:BuildRequires: XFree86-devel} +%else +%{?with_x11:BuildRequires: xorg-lib-libX11-devel} +%endif +BuildRequires: zlib-devel Obsoletes: freetype2 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define specflags_ia32 -fomit-frame-pointer +# see , the real horror +%define specflags -fno-strict-aliasing %description The FreeType engine is a free and portable TrueType font rendering @@ -39,71 +54,168 @@ 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. +%description -l es.UTF-8 +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.UTF-8 +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.UTF-8 +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.UTF-8 +Библиотека FreeType - это свободная переносимая библиотека для +рендеринга (растеризации) шрифтов TrueType, доступная в исходных +текстах на ANSI C и Pascal. Она была разработана для поддержки TT на +разнообразных платформах. + +%description -l uk.UTF-8 +Бібліотека FreeType - це вільна переносима бібліотека для рендерингу +(растеризації) шрифтів TrueType, що розповсюджується у вихідних +текстах на C та Pascal. Вона була розроблена для підтримки TT на +різних платформах. %package devel -Summary: Header files and development documentation -Summary(pl): Pliki nag³ówkowe biblioteki freetype i dokumentacja +Summary: Header files for FreeType development +Summary(es.UTF-8): Archivos de inclusión para desarrollo con FreeType +Summary(ko.UTF-8): FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일 +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeType +Summary(pt_BR.UTF-8): Arquivos de inclusão para desenvolvimento com FreeType +Summary(ru.UTF-8): Библиотеки разработчика для freetype +Summary(uk.UTF-8): Бібліотеки програміста для freetype Group: Development/Libraries -Group(de): Entwicklung/Libraries -Group(es): Desarrollo/Bibliotecas -Group(fr): Development/Librairies -Group(pl): Programowanie/Biblioteki -Group(pt_BR): Desenvolvimento/Bibliotecas -Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ -Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ -Requires: %{name} = %{version} +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: zlib-devel Obsoletes: freetype2-devel -Obsoletes: freetype2-static %description devel -This package includes the header files documentations and libraries -necessary to develop applications that use freetype. +This package includes the header files necessary to develop +applications that use FreeType. + +%description devel -l es.UTF-8 +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.UTF-8 +Pakiet ten zawiera pliki nagłówkowe potrzebne przy tworzeniu programów +wykorzystujących bibliotekę FreeType. + +%description devel -l pt_BR.UTF-8 +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.UTF-8 +Этот пакет содержит хедеры необходимые для разработки программ, +использующих FreeType. + +%description devel -l uk.UTF-8 +Цей пакет містить хедери необхідні для розробки програм, що +використовують FreeType. + +%package apidocs +Summary: FreeType API documetation +Summary(pl.UTF-8): Dokumentacja API FreeType +Group: Documentation -%description -l pl devel -Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy -kompilowaniu programów wykorzystuj±cych bibliotekê freetype. +%description apidocs +FreeType API documetation. + +%description apidocs -l pl.UTF-8 +Dokumentacja API FreeType. %package static -Summary: Freetype static libraries -Summary(pl): Biblioteki statyczne freetype +Summary: FreeType static libraries +Summary(es.UTF-8): Static libraries for freetype development +Summary(pl.UTF-8): Biblioteki statyczne FreeType +Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com freetype +Summary(ru.UTF-8): Статические библиотеки freetype +Summary(uk.UTF-8): Статичні бібліотеки freetype Group: Development/Libraries -Group(de): Entwicklung/Libraries -Group(es): Desarrollo/Bibliotecas -Group(fr): Development/Librairies -Group(pl): Programowanie/Biblioteki -Group(pt_BR): Desenvolvimento/Bibliotecas -Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ -Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ -Requires: %{name}-devel = %{version} +Requires: %{name}-devel = %{epoch}:%{version}-%{release} Obsoletes: freetype2-static %description static -Static freetype libraries. +Static FreeType libraries. + +%description static -l es.UTF-8 +Static libraries for freetype development. + +%description static -l pl.UTF-8 +Biblioteki statyczne FreeType. + +%description static -l pt_BR.UTF-8 +Bibliotecas estáticas para desenvolvimento com freetype. + +%description static -l ru.UTF-8 +Этот пакет содержит статические библиотеки, необходимые для написания +программ, использующих freetype. + +%description static -l uk.UTF-8 +Цей пакет містить статичні бібліотеки, необхідні для написання +програм, що використовують freetype. + +%package demos +Summary: FreeType demo programs +Summary(ko.UTF-8): FreeType을 시험해볼 수 있는 프로그램 모음 +Summary(pl.UTF-8): Programy demonstracyjne FreeType +Group: X11/Applications +Requires: %{name} = %{epoch}:%{version}-%{release} -%description -l pl static -Biblioteki statyczne freetype. +%description demos +Demonstration programs for FreeType library. + +%description demos -l pl.UTF-8 +Programy demonstracyjne do biblioteki FreeType. %prep -%setup -q -b1 -%patch0 -p1 -%patch1 -p1 -%{!?_with_bytecode:%patch2 -p1} +%setup -q -a1 -a2 %build -CFLAGS="%{rpmcflags}" %{__make} setup CFG="--prefix=%{_prefix}" +CFLAGS="%{rpmcflags} \ +%{?with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER} \ +%{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING}" \ +%{__make} setup unix \ + CFG="--prefix=%{_prefix} --libdir=%{_libdir}" + +%{__make} \ + X11_LIB=%{?_x_libraries} -%{__make} +%if %{with x11} +%{__make} -C ft2demos-* \ + TOP_DIR=$(pwd) \ + X11_LIB=%{?_x_libraries} +%endif + +%{__make} refdoc %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_bindir} %{__make} install \ - DESTDIR="$RPM_BUILD_ROOT" + DESTDIR=$RPM_BUILD_ROOT -gzip -9nf docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt} +%if %{with x11} +install ft2demos-*/bin/.libs/ft* $RPM_BUILD_ROOT%{_bindir} +%endif %clean rm -rf $RPM_BUILD_ROOT @@ -113,18 +225,33 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc docs/*.gz -%attr(755,root,root) %{_libdir}/lib*so.*.* +%doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,PATENTS,TODO,formats.txt,raster.txt} +%attr(755,root,root) %{_libdir}/libfreetype.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libfreetype.so.6 %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 +%doc docs/DEBUG +%attr(755,root,root) %{_bindir}/freetype-config +%attr(755,root,root) %{_libdir}/libfreetype.so +%{_libdir}/libfreetype.la %{_includedir}/freetype2 -%{_includedir}/*.h +%{_includedir}/ft2build.h +%{_aclocaldir}/freetype2.m4 +%{_pkgconfigdir}/freetype2.pc + +%if %{with apidocs} +%files apidocs +%defattr(644,root,root,755) +%doc docs/reference +%endif %files static %defattr(644,root,root,755) -%{_libdir}/lib*.a +%{_libdir}/libfreetype.a + +%if %{with x11} +%files demos +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/ft* +%endif