SDL2_image.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Name: SDL2_image
  2. Version: 2.0.1
  3. Release: 2%{?dist}
  4. Summary: Image loading library for SDL
  5. Group: System Environment/Libraries
  6. License: LGPLv2+
  7. URL: http://www.libsdl.org/projects/SDL_image/
  8. Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
  9. BuildRequires: SDL2-devel
  10. BuildRequires: libjpeg-devel
  11. BuildRequires: libpng-devel
  12. BuildRequires: libtiff-devel
  13. BuildRequires: libwebp-devel
  14. BuildRequires: chrpath
  15. %description
  16. Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
  17. designed to provide fast access to the graphics frame buffer and audio
  18. device. This package contains a simple library for loading images of
  19. various formats (BMP, PPM, PCX, GIF, JPEG, PNG) as SDL surfaces.
  20. %package devel
  21. Summary: Development files for %{name}
  22. Group: Development/Libraries
  23. Requires: %{name}%{?_isa} = %{version}-%{release}
  24. Requires: SDL2-devel
  25. Requires: pkgconfig
  26. %description devel
  27. The %{name}-devel package contains libraries and header files for
  28. developing applications that use %{name}.
  29. %prep
  30. %autosetup
  31. rm -rf external/
  32. sed -i -e 's/\r//g' README.txt CHANGES.txt COPYING.txt
  33. %build
  34. %configure --disable-dependency-tracking \
  35. --disable-jpg-shared \
  36. --disable-png-shared \
  37. --disable-tif-shared \
  38. --disable-webp-shared \
  39. --disable-static
  40. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  41. make %{?_smp_mflags}
  42. %install
  43. %make_install
  44. mkdir -p %{buildroot}%{_bindir}
  45. ./libtool --mode=install /usr/bin/install showimage %{buildroot}%{_bindir}/showimage2
  46. chrpath -d %{buildroot}%{_bindir}/showimage2
  47. rm -f %{buildroot}%{_libdir}/*.la
  48. %post -p /sbin/ldconfig
  49. %postun -p /sbin/ldconfig
  50. %files
  51. %license COPYING.txt
  52. %doc CHANGES.txt
  53. %{_bindir}/showimage2
  54. %{_libdir}/lib*.so.*
  55. %files devel
  56. %doc README.txt
  57. %{_libdir}/lib*.so
  58. %{_includedir}/SDL2/*
  59. %{_libdir}/pkgconfig/%{name}.pc
  60. %changelog
  61. * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
  62. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  63. * Sun Jan 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-1
  64. - Update to 2.0.1 (RHBZ #1296751)
  65. * Mon Dec 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-9
  66. - Rebuilt for libwebp soname bump
  67. * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-8
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  69. * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-7
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  71. * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-6
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  73. * Tue Apr 15 2014 Dan Horák <dan[at]danny.cz> - 2.0.0-5
  74. - fix FTBFS on big endian arches
  75. * Fri Jan 03 2014 Kalev Lember <kalevlember@gmail.com> - 2.0.0-4
  76. - Rebuilt for libwebp soname bump
  77. * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-3
  78. - showimage -> showimage2 (rhbz 1005324)
  79. * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-2
  80. - Move README.txt to -devel subpackage
  81. * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1
  82. - Based on SDL_image