SDL2_ttf.spec.in 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. %define name @PACKAGE@
  2. %define version @VERSION@
  3. %define release 1
  4. Summary: Simple DirectMedia Layer - Sample TrueType Font Library
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Source0: %{name}-%{version}.tar.gz
  9. License: LGPL
  10. Group: System Environment/Libraries
  11. BuildRoot: /var/tmp/%{name}-buildroot
  12. Prefix: %{_prefix}
  13. Packager: Hakan Tandogan <hakan@iconsult.com>
  14. #BuildRequires: SDL2-devel
  15. #BuildRequires: freetype-devel
  16. %description
  17. This library allows you to use TrueType fonts to render text in SDL
  18. applications.
  19. %package devel
  20. Summary: Libraries, includes and more to develop SDL applications.
  21. Group: Development/Libraries
  22. Requires: %{name}
  23. Requires: SDL2-devel
  24. %description devel
  25. This library allows you to use TrueType fonts to render text in SDL
  26. applications.
  27. %prep
  28. rm -rf ${RPM_BUILD_ROOT}
  29. %setup
  30. %build
  31. CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
  32. make
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make install prefix=$RPM_BUILD_ROOT/%{prefix}
  36. %clean
  37. rm -rf $RPM_BUILD_ROOT
  38. %files
  39. %defattr(-,root,root)
  40. %doc README.txt CHANGES.txt COPYING.txt
  41. %{prefix}/lib/lib*.so.*
  42. %files devel
  43. %defattr(-,root,root)
  44. %{prefix}/lib/lib*.a
  45. %{prefix}/lib/lib*.la
  46. %{prefix}/lib/lib*.so
  47. %{prefix}/include/*/
  48. %{prefix}/lib/pkgconfig/*.pc
  49. %changelog
  50. * Wed Jan 19 2000 Sam Lantinga
  51. - converted to get package information from configure
  52. * Sun Jan 16 2000 Hakan Tandogan <hakan@iconsult.com>
  53. - initial spec file