]> git.pld-linux.org Git - packages/SDL_ttf.git/blobdiff - SDL_ttf.spec
- install actual showfont binary, not wrapper script
[packages/SDL_ttf.git] / SDL_ttf.spec
index 010f935092a39096b355a1d1cb8861a3c7362ae5..5b7919b21c1ab8f7440466618cb01706d1d5e4e8 100644 (file)
 Summary:       Simple DirectMedia Layer - ttf handling
+Summary(pl):   Biblioteka obs³ugi fontów TTF
+Summary(pt_BR):        Simple DirectMedia Layer - Biblioteca de fontes TrueType
 Name:          SDL_ttf
-Version:       1.2.1
-Release:       2
+Version:       2.0.8
+Release:       1
 License:       LGPL
 Group:         Libraries
-Source0:       http://www.devolution.com/~slouken/SDL/projects/SDL_ttf/src/%{name}-%{version}.tar.gz
-URL:           http://www.devolution.com/~slouken/SDL/projects/SDL_ttf/
-BuildRequires: freetype-devel
-BuildRequires: SDL-devel >= 1.0.1
-BuildRequires: XFree86-devel
+Source0:       http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz
+# Source0-md5: 094b6c08769e9842dbe1dfb5efa22df7
+Patch0:                %{name}-ft2build_h.patch
+URL:           http://www.libsdl.org/projects/SDL_ttf/
+BuildRequires: OpenGL-GLU-devel
+BuildRequires: SDL-devel >= 1.2.5-2
+BuildRequires: autoconf >= 2.59-9
+BuildRequires: automake
+BuildRequires: freetype-devel >= 2.1.4
+BuildRequires: libtool
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-
 %description
 This is a sample library which allows you to use TrueType fonts in
-your SDL applications. It comes with an example program "showfont"
+your SDL applications. It comes with an example program "sdlfont"
 which displays an example string for a given TrueType font file.
 
+%description -l pl
+Przyk³adowa biblioteka do obs³ugi fontów TrueType w aplikacjach SDL.
+Pakiet zawiera przyk³adowy program "sdlfont", wy¶wietlaj±cy
+przyk³adowy ci±g znaków zadanym fontem TrueType.
+
+%description -l pt_BR
+Esta é uma biblioteca que permite a utilização de fontes TrueType em
+suas aplicações SDL. Ela vem com o programa exemplo "showfont" que
+mostra uma string exemplo para uma fonte TrueType fornecida.
+
 %package devel
 Summary:       Header files and more to develop SDL_ttf applications
+Summary(pl):   Pliki nag³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_ttf
+Summary(pt_BR):        Cabeçalhos para desenvolver programas utilizando a %{name}
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name} = %{version}
-Requires:      SDL-devel
+Requires:      %{name} = %{version}-%{release}
+Requires:      SDL-devel >= 1.2.5-2
+Requires:      freetype-devel >= 2.1.4
 
 %description devel
 Header files and more to develop SDL_ttf applications.
 
+%description devel -l pl
+Pliki nag³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_ttf.
+
+%description devel -l pt_BR
+Este pacote contém os cabeçalhos que programadores vão precisar para
+desenvolver aplicações utilizando a %{name}.
+
 %package static
-Summary:       Statis SDL_ttf libraries
+Summary:       Static SDL_ttf libraries
+Summary(pl):   Biblioteki statyczne SDL_ttf
+Summary(pt_BR):        Biblioteca estática para desenvolvimento utilizando a %{name}
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
-Statis SDL_ttf libraries.
+Static SDL_ttf libraries.
+
+%description static -l pl
+Biblioteki statyczne SDL_ttf.
+
+%description static -l pt_BR
+Este pacote contém a biblioteca estática que programadores vão
+precisar para desenvolver aplicações linkados estaticamente com a
+%{name}.
 
 %prep
 %setup -q
+%patch0 -p1
+
+rm -f acinclude.m4
 
 %build
-LDFLAGS="-s"; export LDFLAGS 
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
-
-mv -f $RPM_BUILD_ROOT%{_bindir}/showfont $RPM_BUILD_ROOT%{_bindir}/sdlfont
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf README CHANGES
+install .libs/showfont $RPM_BUILD_ROOT%{_bindir}/sdlfont
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post   -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
+%doc README CHANGES
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%doc *.gz
 %{_includedir}/SDL/*
 %attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_libdir}/lib*.la
+%{_libdir}/lib*.la
 
 %files static
 %defattr(644,root,root,755)
This page took 0.064806 seconds and 4 git commands to generate.