]> git.pld-linux.org Git - packages/freetype.git/blobdiff - freetype.spec
- obsolete
[packages/freetype.git] / freetype.spec
index 1fa00068b32d137a80847e6eee23c6912495138b..6d0511ed4a1f7348aef9a3c81197b5f8cbbfbdec 100644 (file)
@@ -1,9 +1,10 @@
 #
 # Conditional build:
-# _with_bytecode       - with TT bytecode interpreter
-#                      (patents pending in USA, Japan...)
+%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)
 #
-%define        _docver 2.1.4
 Summary:       TrueType font rasterizer
 Summary(es):   Biblioteca de render 3D de fuentes TrueType
 Summary(ko):   ÀÚÀ¯·Ó°Ô ¾îµðµç ¾µ ¼ö Àִ Ʈ·çŸÀÔ ±Û²ÃÀ» ´Ù·ç´Â ¿£Áø
@@ -12,24 +13,28 @@ Summary(pt_BR):     Biblioteca de renderiza
 Summary(ru):   òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× TrueType
 Summary(uk):   òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆԦנTrueType
 Name:          freetype
-Version:       2.1.5
+Version:       2.1.10
 Release:       1
+Epoch:         1
 License:       GPL or FTL
 Group:         Libraries
-Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
-# Source0-md5: 54537b518b84d04190a1eccd393a29df
-Source1:       http://dl.sourceforge.net/%{name}/ftdocs-%{_docver}.tar.bz2
-# Source1-md5: 367064e81998a302f3844f1dcdb8d77f
-Source2:       http://dl.sourceforge.net/%{name}/ft2demos-%{version}.tar.bz2
-# Source2-md5: 0484cfc7d881ccb49cafa85ec3198f3c
+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/
-BuildRequires: SysVinit
-BuildRequires: XFree86-devel
+%{?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"
+%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
@@ -90,7 +95,7 @@ Summary(pt_BR):       Arquivos de inclus
 Summary(ru):   âÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ freetype
 Summary(uk):   â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ freetype
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      zlib-devel
 Obsoletes:     freetype2-devel
 
@@ -128,7 +133,7 @@ Summary(pt_BR):     Bibliotecas est
 Summary(ru):   óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ freetype
 Summary(uk):   óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ freetype
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 Obsoletes:     freetype2-static
 
 %description static
@@ -156,7 +161,7 @@ Summary:    FreeType demo programs
 Summary(ko):   FreeTypeÀ» ½ÃÇèÇغ¼ ¼ö Àִ ÇÁ·Î±×·¥ ¸ðÀ½
 Summary(pl):   Programy demonstracyjne FreeType
 Group:         X11/Applications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description demos
 Demonstration programs for FreeType library.
@@ -167,27 +172,34 @@ Programy demonstracyjne do biblioteki FreeType.
 %prep
 %setup -q -a1 -a2
 
-mv -f freetype-%{_docver}/docs/reference/* docs/reference
-
 %build
-CFLAGS="%{rpmcflags} %{?_with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER}" \
+CFLAGS="%{rpmcflags} %{?with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER}" \
 %{__make} setup unix \
-       CFG="--prefix=%{_prefix}"
+       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}
-%{__make} TOP_DIR="`pwd`" -C ft2demos-*
+%{__make} refdoc
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_bindir}
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       datadir=%{_datadir}
+       DESTDIR=$RPM_BUILD_ROOT
 
+%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
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -197,8 +209,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc docs/{CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt}
-%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)
@@ -215,6 +227,8 @@ rm -rf $RPM_BUILD_ROOT
 %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.039719 seconds and 4 git commands to generate.