SDL2_ttf.spec 2.4 KB

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