]> git.pld-linux.org Git - packages/freetype.git/blobdiff - freetype.spec
- obsolete
[packages/freetype.git] / freetype.spec
index ac3c864bc4070f393b8da838b5964a0707ad9ad4..6d0511ed4a1f7348aef9a3c81197b5f8cbbfbdec 100644 (file)
@@ -1,18 +1,41 @@
-Summary:       Truetype font rasterizer
-Summary(pl):   Rasteryzer fontów Truetype
+#
+# 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 x11             # don't build examples (X11-based)
+#
+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.0.2
+Version:       2.1.10
 Release:       1
-License:       GPL
+Epoch:         1
+License:       GPL or FTL
 Group:         Libraries
-Group(de):     Libraries
-Group(fr):     Librairies
-Group(pl):     Biblioteki
-Source0:       ftp://freetype.sourceforge.net/pub/freetype/%{name}/%{name}2-%{version}-test.tar.bz2
-Patch0:                %{name}-DESTDIR.patch
+Source0:       http://savannah.nongnu.org/download/freetype/%{name}-%{version}.tar.bz2
+# Source0-md5: a4012e7d1f6400df44a16743b11b8423
+Source1:       http://savannah.nongnu.org/download/freetype/%{name}-doc-%{version}.tar.bz2
+# Source1-md5: 10608a55ee9ee12e29ba3d705318e61d
+Source2:       http://savannah.nongnu.org/download/freetype/ft2demos-%{version}.tar.bz2
+# Source2-md5: 4edaff5721fedcf1932e76935f3029b3
 URL:           http://www.freetype.org/
+%{?with_x11:BuildRequires:     XFree86-devel}
+BuildRequires: automake
+BuildRequires: zlib-devel
+BuildRequires: python
+Obsoletes:     freetype2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                specflags_ia32  -fomit-frame-pointer 
+# see <freetype/internal/ftserv.h>, the real horror
+%define                specflags       -fno-strict-aliasing
+
 %description
 The FreeType engine is a free and portable TrueType font rendering
 engine. It has been developed to provide TrueType support to a great
@@ -26,83 +49,186 @@ 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(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
-Group(de):     Entwicklung/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      zlib-devel
+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(de):     Entwicklung/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-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
+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} = %{epoch}:%{version}-%{release}
 
-%description -l pl static 
-Biblioteki statyczne freetype.
+%description demos
+Demonstration programs for FreeType library.
+
+%description demos -l pl
+Programy demonstracyjne do biblioteki FreeType.
 
 %prep
-%setup -q -n freetype-%{version}-test
-%patch0 -p1
+%setup -q -a1 -a2
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__make} 
-%{__make} 
+CFLAGS="%{rpmcflags} %{?with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER}" \
+%{__make} setup unix \
+       CFG="--prefix=%{_prefix} --libdir=%{_libdir}"
+
+%{__make} \
+       X11_LIB="/usr/X11R6/%{_lib}"
+
+%if %{with x11}
+%{__make} -C ft2demos-* \
+       TOP_DIR="`pwd`" \
+       X11_LIB="/usr/X11R6/%{_lib}"
+%endif
+
+%{__make} refdoc
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
 
 %{__make} install \
-       DESTDIR="$RPM_BUILD_ROOT" \
-       prefix"=%{_prefix}"
+       DESTDIR=$RPM_BUILD_ROOT
 
-chmod u+rw $RPM_BUILD_ROOT%{_bindir}/freetype-config
-cat $RPM_BUILD_ROOT%{_bindir}/freetype-config \
-       | sed 's/prefix=\/usr\/local/prefix=\/usr/g' \
-       > $RPM_BUILD_ROOT%{_bindir}/freetype-config.new
-mv $RPM_BUILD_ROOT%{_bindir}/freetype-config.new $RPM_BUILD_ROOT%{_bindir}/freetype-config
+%if %{with x11}
+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/testname $RPM_BUILD_ROOT%{_bindir}/fttestname
+%endif
 
-gzip -9nf LICENSE.TXT
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
-%doc *.gz docs/*.html
-%attr(755,root,root) %{_libdir}/lib*so.*.*
+%doc docs/{CHANGES,FTL.TXT,PATENTS,LICENSE.TXT,TODO,modules.txt}
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%doc docs/{DEBUG,TRUETYPE} docs/reference
+%attr(755,root,root) %{_bindir}/freetype-config
 %attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_libdir}/lib*.la
+%{_libdir}/lib*.la
 %{_includedir}/freetype2
+%{_includedir}/*.h
+%{_aclocaldir}/*.m4
+%{_pkgconfigdir}/*.pc
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+
+%if %{with x11}
+%files demos
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/ft*
+%endif
This page took 0.044835 seconds and 4 git commands to generate.