X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=freetype.spec;h=8a62329dc19fa5461105c1b1071e92848b21eb6e;hb=63c51790eb999ca6108be763c6cc82572a2842bc;hp=a8a5da8fd4c92f5a33be971321f8df4334b365ba;hpb=27cd77090bf6dc99cdf8b1a45af87fde63704de7;p=packages%2Ffreetype.git diff --git a/freetype.spec b/freetype.spec index a8a5da8..8a62329 100644 --- a/freetype.spec +++ b/freetype.spec @@ -1,41 +1,43 @@ # # Conditional build: -%bcond_without bytecode # without TT bytecode interpreter -# (patents pending in USA, Japan etc., but now it includes -# also patent-free hinting workaround) -%bcond_without lcd # disable filters reducing color fringes when -# subpixel rendering for LCD (only used with a new 2.3.0 API; -# patents pending) +%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(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 +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.3.1 +Version: 2.3.10 Release: 1 Epoch: 1 License: GPL or FTL Group: Libraries -Source0: http://savannah.nongnu.org/download/freetype/%{name}-%{version}.tar.bz2 -# Source0-md5: 11e1186ca5520c5a284fa0a03f652035 -Source1: http://savannah.nongnu.org/download/freetype/%{name}-doc-%{version}.tar.bz2 -# Source1-md5: 15896b248192283c9891cc157e5793d7 -Source2: http://savannah.nongnu.org/download/freetype/ft2demos-%{version}.tar.bz2 -# Source2-md5: 80fa3db44d21743ab791df2a068496ca +Source0: http://dl.sourceforge.net/freetype/%{name}-%{version}.tar.bz2 +# Source0-md5: b7a8a26cc137716a32b788664697d727 +Source1: http://dl.sourceforge.net/freetype/%{name}-doc-%{version}.tar.bz2 +# Source1-md5: 9bdd83c5b6559bdfb68984f0b3d1dc8c +Source2: http://dl.sourceforge.net/freetype/ft2demos-%{version}.tar.bz2 +# Source2-md5: e6d762885ecc8222774f5063a1605e45 URL: http://www.freetype.org/ 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 +%define specflags_ia32 -fomit-frame-pointer # see , the real horror %define specflags -fno-strict-aliasing @@ -90,21 +92,21 @@ incluídos neste pacote. різних платформах. %package devel -Summary: Header files and development documentation -Summary(es.UTF-8): Archivos de inclusión e bibliotecas estáticas para desarrollo con FreeType -Summary(ko.UTF-8): FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일 -Summary(pl.UTF-8): Pliki nagłówkowe biblioteki freetype i dokumentacja -Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas estáticas para desenvolvimento com FreeType -Summary(ru.UTF-8): Библиотеки разработчика для freetype -Summary(uk.UTF-8): Бібліотеки програміста для freetype +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 Requires: %{name} = %{epoch}:%{version}-%{release} Requires: zlib-devel Obsoletes: freetype2-devel %description devel -This package includes the header files and documentation 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 @@ -112,8 +114,8 @@ 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 oraz dokumentację potrzebne przy -tworzeniu programów wykorzystujących bibliotekę FreeType. +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 @@ -121,20 +123,31 @@ 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. +Этот пакет содержит хедеры необходимые для разработки программ, +использующих FreeType. %description devel -l uk.UTF-8 -Цей пакет містить хедери та бібліотеки, необхідні для розробки -програм, що використовують freetype. +Цей пакет містить хедери необхідні для розробки програм, що +використовують FreeType. + +%package apidocs +Summary: FreeType API documetation +Summary(pl.UTF-8): Dokumentacja API FreeType +Group: Documentation + +%description apidocs +FreeType API documetation. + +%description apidocs -l pl.UTF-8 +Dokumentacja API FreeType. %package static 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 +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 Requires: %{name}-devel = %{epoch}:%{version}-%{release} Obsoletes: freetype2-static @@ -161,8 +174,8 @@ Bibliotecas estáticas para desenvolvimento com freetype. %package demos Summary: FreeType demo programs -Summary(ko.UTF-8): FreeType을 시험해볼 수 있는 프로그램 모음 -Summary(pl.UTF-8): Programy demonstracyjne FreeType +Summary(ko.UTF-8): FreeType을 시험해볼 수 있는 프로그램 모음 +Summary(pl.UTF-8): Programy demonstracyjne FreeType Group: X11/Applications Requires: %{name} = %{epoch}:%{version}-%{release} @@ -183,12 +196,12 @@ CFLAGS="%{rpmcflags} \ CFG="--prefix=%{_prefix} --libdir=%{_libdir}" %{__make} \ - X11_LIB= + X11_LIB=%{?_x_libraries} %if %{with x11} %{__make} -C ft2demos-* \ - TOP_DIR="`pwd`" \ - X11_LIB= + TOP_DIR=$(pwd) \ + X11_LIB=%{?_x_libraries} %endif %{__make} refdoc @@ -213,22 +226,29 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,PATENTS,TODO,formats.txt,raster.txt} -%attr(755,root,root) %{_libdir}/lib*.so.*.* +%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/DEBUG docs/reference +%doc docs/DEBUG %attr(755,root,root) %{_bindir}/freetype-config -%attr(755,root,root) %{_libdir}/lib*.so -%{_libdir}/lib*.la +%attr(755,root,root) %{_libdir}/libfreetype.so +%{_libdir}/libfreetype.la %{_includedir}/freetype2 -%{_includedir}/*.h -%{_aclocaldir}/*.m4 -%{_pkgconfigdir}/*.pc +%{_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