SDL2_image-vl.spec 3.6 KB

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