+# TODO:
+# - fix build with libtool-2
+#
+# Conditional build:
+%bcond_without static_libs # don't build static libraries
+#
Summary: Truetype font rasterizer
Summary(pl.UTF-8): Rasteryzer fontów Truetype
Name: freetype1
Version: 1.3.1
-Release: 11
+Release: 13
License: BSD-like
Group: Libraries
Source0: ftp://ftp.freetype.org/freetype/freetype1/freetype-%{version}.tar.gz
Patch1: freetype-autoconf.patch
Patch2: %{name}-po.patch
Patch3: freetype-gcc33.patch
-URL: http://www.physiol.med.tu-muenchen.de/~robert/freetype.html
+Patch4: %{name}-parallel-make.patch
+Patch5: %{name}-link.patch
+URL: http://freetype.sourceforge.net/freetype1/index.html
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
+%patch5 -p1
%build
install /usr/share/automake/missing .
%{__aclocal}
%{__autoconf}
%configure \
- --enable-static \
+ %{?with_static_libs:--enable-static} \
--with-gnu-ld
%{__make}
%files -f freetype.lang
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*so.*.*
+%attr(755,root,root) %{_libdir}/libttf.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libttf.so.2
%files devel
%defattr(644,root,root,755)
%doc howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits}
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/libttf.so
+%{_libdir}/libttf.la
%{_includedir}/*
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
+%endif
%files progs
%defattr(644,root,root,755)