Name: SDL2_ttf Version: 2.0.12 Release: 2%{?dist} Summary: TrueType font rendering library for SDL2 Group: System Environment/Libraries License: zlib URL: http://www.libsdl.org/projects/SDL_ttf/ Source0: http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz BuildRequires: SDL2-devel >= 2.0 BuildRequires: freetype-devel >= 2.0 BuildRequires: zlib-devel %description This library allows you to use TrueType fonts to render text in SDL2 applications. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: SDL2-devel%{?_isa} >= 2.0 %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q rm -rf external # Fix end-of-line encoding sed -i 's/\r//' README.txt CHANGES.txt COPYING.txt %build %configure --disable-dependency-tracking --disable-static sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install find %{buildroot} -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc README.txt CHANGES.txt COPYING.txt %{_libdir}/lib*.so.* %files devel %{_libdir}/lib*.so %{_includedir}/SDL2/* %{_libdir}/pkgconfig/%{name}.pc %changelog * Thu Jan 2 2014 Tom Callaway - 2.0.12-2 - delete external directory to drop bundles - do not own /usr/include/SDL2 - fix unused-direct-shlib-dependency * Mon Nov 25 2013 Tom Callaway - 2.0.12-1 - initial package