]> git.pld-linux.org Git - packages/SDL2_ttf.git/commitdiff
- new auto/th/SDL2_ttf-2.0.12-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 14 Jun 2014 11:54:24 +0000 (13:54 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 14 Jun 2014 11:54:24 +0000 (13:54 +0200)
SDL2_ttf.spec [new file with mode: 0644]

diff --git a/SDL2_ttf.spec b/SDL2_ttf.spec
new file mode 100644 (file)
index 0000000..82347d2
--- /dev/null
@@ -0,0 +1,118 @@
+Summary:       Simple DirectMedia Layer 2 - ttf handling
+Summary(pl.UTF-8):     Biblioteka obsługi fontów TTF dla SDL2
+Summary(pt_BR.UTF-8):  Simple DirectMedia Layer 2 - Biblioteca de fontes TrueType
+Name:          SDL2_ttf
+Version:       2.0.12
+Release:       1
+License:       Zlib-like
+Group:         Libraries
+Source0:       http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz
+# Source0-md5: 79787216b56cb4707f39d538f2225e00
+URL:           http://www.libsdl.org/projects/SDL_ttf/
+BuildRequires: OpenGL-GLU-devel
+BuildRequires: SDL2-devel >= 2.0.0
+BuildRequires: autoconf >= 2.59-9
+BuildRequires: automake
+BuildRequires: freetype-devel >= 2.1.4
+BuildRequires: libtool >= 2:2.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a sample library which allows you to use TrueType fonts in
+your SDL2 applications. It comes with an example program "sdl2font"
+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 SDL2.
+Pakiet zawiera przykładowy program "sdl2font", 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 SDL2. Ela vem com o programa exemplo "sdl2font" que
+mostra uma string exemplo para uma fonte TrueType fornecida.
+
+%package devel
+Summary:       Header files and more to develop SDL2_ttf applications
+Summary(pl.UTF-8):     Pliki nagłówkowe do rozwijania aplikacji używających SDL2_ttf
+Summary(pt_BR.UTF-8):  Cabeçalhos para desenvolver programas utilizando a SDL2_ttf
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      SDL2-devel >= 2.0.0
+Requires:      freetype-devel >= 2.1.4
+
+%description devel
+Header files and more to develop SDL2_ttf applications.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe do rozwijania aplikacji używających SDL2_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 SDL2_ttf.
+
+%package static
+Summary:       Static SDL2_ttf library
+Summary(pl.UTF-8):     Biblioteka statyczna SDL2_ttf
+Summary(pt_BR.UTF-8):  Biblioteca estática para desenvolvimento utilizando a SDL2_ttf
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static SDL2_ttf library.
+
+%description static -l pl.UTF-8
+Biblioteka statyczna SDL2_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
+SDL2_ttf.
+
+%prep
+%setup -q
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+
+%{__make} \
+       libSDL2_ttf_la_LIBADD="-lm"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install .libs/showfont $RPM_BUILD_ROOT%{_bindir}/sdl2font
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt COPYING.txt README.txt
+%attr(755,root,root) %{_bindir}/sdl2font
+%attr(755,root,root) %{_libdir}/libSDL2_ttf-2.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libSDL2_ttf-2.0.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libSDL2_ttf.so
+%{_includedir}/SDL2/SDL_ttf.h
+%{_pkgconfigdir}/SDL2_ttf.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libSDL2_ttf.a
This page took 0.121064 seconds and 4 git commands to generate.