SDL2_ttf.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Name: SDL2_ttf
  2. Version: 2.0.14
  3. Release: 2%{?dist}
  4. Summary: TrueType font rendering library for SDL2
  5. License: zlib
  6. URL: https://www.libsdl.org/projects/SDL_ttf/
  7. Source0: %{url}release/%{name}-%{version}.tar.gz
  8. BuildRequires: SDL2-devel
  9. BuildRequires: libGL-devel
  10. BuildRequires: freetype-devel
  11. BuildRequires: zlib-devel
  12. %description
  13. This library allows you to use TrueType fonts to render text in SDL2
  14. applications.
  15. %package devel
  16. Summary: Development files for %{name}
  17. Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
  18. Requires: SDL2-devel%{?_isa}
  19. %description devel
  20. The %{name}-devel package contains libraries and header files for
  21. developing applications that use %{name}.
  22. %prep
  23. %autosetup
  24. rm -rf external
  25. # Fix end-of-line encoding
  26. sed -i 's/\r//' README.txt CHANGES.txt COPYING.txt
  27. %build
  28. %configure --disable-dependency-tracking --disable-static
  29. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  30. %make_build
  31. %install
  32. %make_install
  33. find %{buildroot} -type f -name '*.la' -delete -print
  34. %post -p /sbin/ldconfig
  35. %postun -p /sbin/ldconfig
  36. %files
  37. %license COPYING.txt
  38. %doc README.txt CHANGES.txt
  39. %{_libdir}/lib*.so.*
  40. %files devel
  41. %{_libdir}/lib*.so
  42. %{_includedir}/SDL2/*
  43. %{_libdir}/pkgconfig/%{name}.pc
  44. %changelog
  45. * Tue Jul 12 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.14-2
  46. - add libGL-devel to BRs
  47. * Tue Feb 2 2016 Tom Callaway <spot@fedoraproject.org> - 2.0.14-1
  48. - update to 2.0.14
  49. * Sun Jan 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.13-1
  50. - Update to 2.0.13 (RHBZ #1296754)
  51. * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.12-5
  52. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  53. * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.12-4
  54. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  55. * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.12-3
  56. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  57. * Thu Jan 2 2014 Tom Callaway <spot@fedoraproject.org> - 2.0.12-2
  58. - delete external directory to drop bundles
  59. - do not own /usr/include/SDL2
  60. - fix unused-direct-shlib-dependency
  61. * Mon Nov 25 2013 Tom Callaway <spot@fedoraproject.org> - 2.0.12-1
  62. - initial package