imlib2-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. Summary: Powerful image loading and rendering library
  2. Summary(ja): 強力な画像ロード & レンダリングライブラリ
  3. Name: imlib2
  4. Version: 1.4.3
  5. Release: 1%{?_dist_release}
  6. License: BSD
  7. Group: System Environment/Libraries
  8. URL: http://www.enlightenment.org/Libraries/Imlib2
  9. Source: http://downloads.sourceforge.net/enlightenment/%{name}-%{version}.tar.bz2
  10. Patch1: imlib2-1.4.3-cve-2010-0991.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: libjpeg-devel
  13. BuildRequires: libpng-devel
  14. BuildRequires: libtiff-devel
  15. BuildRequires: zlib-devel
  16. BuildRequires: bzip2-devel
  17. BuildRequires: freetype2-devel
  18. BuildRequires: libid3tag-devel
  19. %if %{?_dist_release} == "vl4"
  20. BuildRequires: XOrg-devel
  21. BuildRequires: autoconf libtool
  22. %else
  23. BuildRequires: libX11-devel
  24. BuildRequires: libXext-devel
  25. %endif
  26. Requires: %{name}-loaders = %{version}
  27. %description
  28. Imlib2 is an advanced replacement library for libraries like libXpm that
  29. provides many more features with much greater flexibility and speed than
  30. standard libraries, including font rasterization, rotation, RGBA space
  31. rendering and blending, dynamic binary filters, scripting, and more.
  32. %package devel
  33. Summary: Imlib2 headers, static libraries and documentation
  34. Summary(ja): Imlib2 のヘッダーファイル,静的ライブラリ,ドキュメント
  35. Group: Development/Libraries
  36. Requires: %{name} = %{version}
  37. %description devel
  38. Headers, static libraries and documentation for Imlib2.
  39. %package filters
  40. Summary: Imlib2 basic plugin filters set
  41. Group: System Environment/Libraries
  42. Requires: %{name} = %{version}
  43. %description filters
  44. Basic set of plugin filters that come with Imlib2
  45. %package loaders
  46. Summary: Imlib2 loader set
  47. Group: System Environment/Libraries
  48. #Requires: libjpeg libpng zlib libtiff
  49. Provides: %{name}-loader_jpeg %{name}-loader_png %{name}-loader_argb
  50. Provides: %{name}-loader_bmp %{name}-loader_gif %{name}-loader_pnm
  51. Provides: %{name}-loader_tga %{name}-loader_tiff %{name}-loader_xpm
  52. Provides: %{name}-loader_gz %{name}-loader_bz2
  53. Provides: %{name}-loader_lbm %{name}-loader_id3
  54. Provides: %{name}-loader = %{version}-%{release}
  55. Obsoletes: %{name}-loader < %{version}-%{release}
  56. %description loaders
  57. Set of image loader/saver of Imlib2. This package contains
  58. the following loader.
  59. loader_lbm - LBM image loader/saver
  60. loader_jpeg - JPEG image loader/saver
  61. loader_png - PNG image loader/saver
  62. loader_argb - ARGB image loader/saver
  63. loader_bmp - BMP image loader/saver
  64. loader_gif - GIF image loader
  65. loader_pnm - PNM image loader/saver
  66. loader_tga - TGA image loader/saver
  67. loader_tiff - TIFF image loader/saver
  68. loader_xpm - XPM image loader/saver
  69. loader_bz2 - Bzip2 compressed image loader/saver
  70. loader_gz - gz compressed image loader/saver
  71. loader_id3 - id3 tag image loader/saver
  72. %prep
  73. %setup -q
  74. %patch1 -p1
  75. %if %{?_dist_release} == "vl4"
  76. libtoolize --force --copy
  77. autoreconf -f
  78. %endif
  79. %build
  80. %configure --disable-static
  81. make %{?_smp_mflags}
  82. %install
  83. rm -rf $RPM_BUILD_ROOT
  84. make DESTDIR=$RPM_BUILD_ROOT install
  85. # remove unpackage files
  86. rm -f $RPM_BUILD_ROOT%{_libdir}/imlib2/*/*.la
  87. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  88. %clean
  89. rm -rf $RPM_BUILD_ROOT
  90. %post -p /sbin/ldconfig
  91. %postun -p /sbin/ldconfig
  92. %files
  93. %defattr(-,root,root,0755)
  94. %doc AUTHORS README COPYING doc/index.html doc/imlib2.gif doc/blank.gif
  95. %{_libdir}/lib*.so.*
  96. %{_bindir}/imlib2_*
  97. %{_datadir}/imlib2
  98. %files devel
  99. %defattr(-,root,root,0755)
  100. %{_bindir}/imlib2-config
  101. %{_libdir}/libImlib2.so
  102. #{_libdir}/*.a
  103. %{_libdir}/pkgconfig/imlib2.pc
  104. %{_includedir}/*
  105. %files filters
  106. %defattr(-,root,root,0755)
  107. %dir %{_libdir}/imlib2/filters
  108. %{_libdir}/imlib2/filters/*.so
  109. %files loaders
  110. %defattr(-,root,root,0755)
  111. %dir %{_libdir}/imlib2/loaders
  112. %{_libdir}/imlib2/loaders/*.so
  113. %changelog
  114. * Sun Apr 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.3-1
  115. - new upstream release (includeing security fix CVE-2008-6079)
  116. - added Patch1 for CVE-2010-0991
  117. - added --disable-static to %%configure
  118. - renamed "loader" subpackage to "loaders"
  119. * Tue Oct 14 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.1-1
  120. - new upstream release (including security fix CVE-2008-2426)
  121. * Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.2-1vl5
  122. - applied new versioning policy, spec in utf-8
  123. * Wed May 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.2-0vl1
  124. - updated to 1.2.2
  125. * Sat Feb 5 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl1
  126. - updated to 1.2.0
  127. - fix typo
  128. * Wed Oct 6 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 1.1.0-1vl2
  129. - added patch imlib2-1.1.0-bmpfix.patch for CAN-2004-0817
  130. * Sat May 15 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.0-1vl1
  131. - rebuild with Vine Linux
  132. - s/Copyright/License/
  133. - collect imlib2-loader-* packages and make imlib2-loader package
  134. * Mon Jan 8 2001 The Rasterman <raster@rasterman.com>
  135. - Fix Requires & BuildRequires for freetype.
  136. * Sat Sep 30 2000 Lyle Kempler <term@kempler.net>
  137. - Bring back building imlib2 as root via autogen.sh for the lazy (me)
  138. - Some minor changes
  139. * Sat Sep 30 2000 Joakim Bodin <bodin@dreamhosted.com>
  140. - Linux-Mandrake:ise the spec file
  141. * Tue Sep 12 2000 The Rasterman <raster@rasterman.com>
  142. - Redo spec file
  143. * Wed Aug 30 2000 Lyle Kempler <kempler@utdallas.edu>
  144. - Include imlib2-config
  145. * Sat May 20 2000 Lyle Kempler <kempler@utdallas.edu>
  146. - Fixed problems with requiring imlib2_view
  147. - Went back to imlib2_view (not imlib2-view)
  148. * Tue Nov 2 1999 Lyle Kempler <kempler@utdallas.edu>
  149. - Mangled imlib 1.9.8 imlib spec file into imlib2 spec file