SDL_ttf/SDL_ttf.spec
Pavol Rusnak f58b1bbf89 - updated to 2.0.11
* SDL_ttf is now under the zlib license
  * Improved font glyph caching for non-latin languages
  * Added API to get kerning info: TTF_GetFontKerningSize()
  * Added Android.mk to build on the Android platform
- updated to 2.0.10
  * Find the Unicode or symbol character map if it's available in the font
  * Set the appropriate font styles for bold and italic fonts
  * Added font style TTF_STYLE_STRIKETHROUGH
  * Fixed size calculations taking outline and underline into account
  * Added API for font outlining: TTF_GetFontOutline()/TTF_SetFontOutline()
  * Added API to disable kerning: TTF_GetFontKerning()/TTF_SetFontKerning()
  * Fixed height calculation for fonts that extend below the font height
  * Added access to font hinting: TTF_GetFontHinting()/TTF_SetFontHinting()
  * Added TTF_GlyphIsProvided() to check whether a glyph is in a given font
- Do not buildRequire metapackage xorg-x11-devel it is not
  needed and adds significant bloat

OBS-URL: https://build.opensuse.org/package/show/games/SDL_ttf?expand=0&rev=17
2013-08-13 11:33:57 +00:00

90 lines
2.6 KiB
RPMSpec

#
# spec file for package SDL_ttf
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: SDL_ttf
BuildRequires: freetype2-devel
BuildRequires: libSDL-devel
Url: http://www.libsdl.org/projects/SDL_ttf/
Version: 2.0.11
Release: 0
Summary: Simple DirectMedia Layer - Truetype Library
License: Zlib
Group: System/Libraries
# removed VisualC dir, Watcom-Win32.zip, Xcode and Xcode-iOS dirs from upstream tarball [bnc#508180]
Source: %{name}-%{version}-repack.tar.bz2
Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a sample library that allows you to use TrueType fonts in your
SDL applications.
%package -n libSDL_ttf-2_0-0
Summary: Simple DirectMedia Layer - Truetype Library
Group: System/Libraries
Provides: SDL_ttf = %{version}
Obsoletes: SDL_ttf <= %{version}
%description -n libSDL_ttf-2_0-0
This is a sample library that allows you to use TrueType fonts in your
SDL applications.
%package -n libSDL_ttf-devel
Requires: %{name} = %{version}
Requires: SDL-devel
Summary: Simple DirectMedia Layer - Truetype Library
Group: Development/Libraries/C and C++
Requires: libSDL-devel
Requires: libSDL_ttf-2_0-0 = %{version}
Provides: SDL_ttf-devel = %{version}
Obsoletes: SDL_ttf-devel <= %{version}
%description -n libSDL_ttf-devel
This is a sample library that allows you to use TrueType fonts in your
SDL applications.
%prep
%setup -q
%build
%configure \
--with-pic \
--disable-static
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f %{buildroot}%{_libdir}/*.la
%post -n libSDL_ttf-2_0-0 -p /sbin/ldconfig
%postun -n libSDL_ttf-2_0-0 -p /sbin/ldconfig
%files -n libSDL_ttf-2_0-0
%defattr(-,root,root)
%doc CHANGES COPYING README
%{_libdir}/lib*.so.*
%files -n libSDL_ttf-devel
%defattr(-,root,root)
%{_includedir}/SDL/SDL_ttf.h
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/SDL_ttf.pc
%changelog