SDL2_image-vl.spec 3.5 KB

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