SDL2_image.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. %define name SDL2_image
  2. %define version 2.0.0
  3. %define release 1
  4. Summary: Simple DirectMedia Layer - Sample Image Loading 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 <[email protected]>
  14. #BuildRequires: SDL2-devel
  15. #BuildRequires: libjpeg-devel
  16. #BuildRequires: libpng-devel
  17. #BuildRequires: libtiff-devel
  18. %description
  19. This is a simple library to load images of various formats as SDL surfaces.
  20. This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
  21. %package devel
  22. Summary: Libraries, includes and more to develop SDL applications.
  23. Group: Development/Libraries
  24. Requires: %{name}
  25. Requires: SDL2-devel
  26. %description devel
  27. This is a simple library to load images of various formats as SDL surfaces.
  28. This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
  29. %prep
  30. rm -rf ${RPM_BUILD_ROOT}
  31. %setup
  32. %build
  33. CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
  34. make
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. make install prefix=$RPM_BUILD_ROOT/%{prefix}
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %files
  41. %defattr(-,root,root)
  42. %doc README.txt CHANGES.txt COPYING.txt
  43. %{prefix}/lib/lib*.so.*
  44. %files devel
  45. %defattr(-,root,root)
  46. %{prefix}/lib/lib*.a
  47. %{prefix}/lib/lib*.la
  48. %{prefix}/lib/lib*.so
  49. %{prefix}/include/*/
  50. %{prefix}/lib/pkgconfig/*.pc
  51. %changelog
  52. * Wed Jan 19 2000 Sam Lantinga
  53. - converted to get package information from configure
  54. * Tue Jan 18 2000 Hakan Tandogan <[email protected]>
  55. - initial spec file