]> git.pld-linux.org Git - packages/freetype1.git/blobdiff - freetype1.spec
- added link patch to avoid pulling additional xorg deps (SM and ICE)
[packages/freetype1.git] / freetype1.spec
index 7ce3e58c19a092afdae1f9838826bbff098723fc..e4e3d36af03295794443060255eb212b73ecb2f9 100644 (file)
@@ -1,8 +1,14 @@
+# 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
@@ -11,7 +17,9 @@ Patch0:               freetype-DESTDIR.patch
 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
@@ -113,6 +121,8 @@ Przykładowe aplikacje wykorzystujące freetype:
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
+%patch5 -p1
 
 %build
 install /usr/share/automake/missing .
@@ -124,7 +134,7 @@ mv -f configure.in.tmp configure.in
 %{__aclocal}
 %{__autoconf}
 %configure \
-        --enable-static \
+       %{?with_static_libs:--enable-static} \
         --with-gnu-ld
 %{__make}
 
@@ -150,18 +160,21 @@ rm -rf $RPM_BUILD_ROOT
 
 %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)
This page took 0.080759 seconds and 4 git commands to generate.