]> git.pld-linux.org Git - packages/SDL_ttf.git/blobdiff - SDL_ttf.spec
- tabs in preamble
[packages/SDL_ttf.git] / SDL_ttf.spec
index 33c313609324622d58cdcd5636f9477689a87a2d..936a1b52d84ffb59c8f697091eafce0da92334e6 100644 (file)
 Summary:       Simple DirectMedia Layer - ttf handling
+Summary(pl.UTF-8):     Biblioteka obsługi fontów TTF
+Summary(pt_BR.UTF-8):  Simple DirectMedia Layer - Biblioteca de fontes TrueType
 Name:          SDL_ttf
-Version:       1.0.1
+Version:       2.0.8
 Release:       2
 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
+# based on http://www.freetype.org/freetype2/patches/SDL_ttf-2.0.7-noftinternals.patch
+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" which displays an
-example string for a given TrueType font file.
+This is a sample library which allows you to use TrueType fonts in
+your SDL applications. It comes with an example program "sdlfont"
+which displays an example string for a given TrueType font file.
+
+%description -l pl.UTF-8
+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.UTF-8
+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.UTF-8):     Pliki nagłówkowe do rozwijania aplikacji używających SDL_ttf
+Summary(pt_BR.UTF-8):  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.UTF-8
+Pliki nagłówkowe do rozwijania aplikacji używających SDL_ttf.
+
+%description devel -l pt_BR.UTF-8
+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.UTF-8):     Biblioteki statyczne SDL_ttf
+Summary(pt_BR.UTF-8):  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.UTF-8
+Biblioteki statyczne SDL_ttf.
+
+%description static -l pt_BR.UTF-8
+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
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
 
-make install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
-
-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)
-%attr(755,root,root) %{_bindir}/showfont
+%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
-%attr(644,root,root) %{_libdir}/lib*.a
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
This page took 0.058401 seconds and 4 git commands to generate.