]> git.pld-linux.org Git - packages/freetype1.git/blobdiff - freetype1.spec
- release 2: added autoconf, automake and libtool to BuildRequires.
[packages/freetype1.git] / freetype1.spec
index 4f353663af68689a1f2d75384541ef9271b08c2b..a1138bc167152dc2f991323da84e1637bdeaf9ba 100644 (file)
@@ -2,10 +2,11 @@ Summary:      Truetype font rasterizer
 Summary(pl):   Rasteryzer fontów Truetype
 Name:          freetype1
 Version:       1.3.1
-Release:       1
+Release:       2
 License:       BSD like
 Group:         Libraries
 Group(de):     Libraries
+Group(es):     Bibliotecas
 Group(fr):     Librairies
 Group(pl):     Biblioteki
 Source0:       ftp://ftp.physiol.med.tu-muenchen.de/pub/freetype/freetype-%{version}.tar.gz
@@ -15,8 +16,11 @@ Patch1:              freetype-autoconf.patch
 Patch2:                freetype-foundrynames.patch
 Patch3:                freetype-nospaces.patch
 URL:           http://www.physiol.med.tu-muenchen.de/~robert/freetype.html
-BuildRequires: gettext-devel
 BuildRequires: XFree86-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: libtool
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -103,13 +107,14 @@ tar xz -C ttmkfdir -f %{SOURCE1}
 
 %build
 gettextize --copy --force
+libtoolize --copy --force
 aclocal
 autoconf
 %configure \
         --enable-static \
         --with-gnu-ld
 %{__make}
-%{__make} -C ttmkfdir CC="gcc $RPM_OPT_FLAGS -I../lib" FREETYPE_LIB='-L../lib/.libs -lttf'
+%{__make} -C ttmkfdir CC="%{__cc} %{rpmcflags} -I../lib" FREETYPE_LIB='-L../lib/.libs -lttf'
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -117,11 +122,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 install ttmkfdir/ttmkfdir $RPM_BUILD_ROOT%{_bindir}
 
-strip $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
-
 gzip -9nf howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits}
 
-%find_lang %{name}
+%find_lang freetype
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
@@ -129,7 +132,7 @@ gzip -9nf howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files -f %{name}.lang
+%files -f freetype.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/ttmkfdir
 %attr(755,root,root) %{_libdir}/lib*so.*.*
This page took 0.115132 seconds and 4 git commands to generate.