imlib-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. # Note that this is NOT a relocatable package
  2. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  3. Summary: Image loading and rendering library for X11R6
  4. Summary(ja): 画像の読み込み/レンダリング用のライブラリ
  5. Name: imlib
  6. Version: 1.9.15
  7. Release: 2%{?_dist_release}
  8. License: LGPL
  9. Group: System Environment/Libraries
  10. Source0: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}/%{name}-%{version}.tar.bz2
  11. Patch0: imlib-1.9.14-suse-alt-bound.patch
  12. Patch1: imlib-1.9.13-sec2.patch
  13. Patch2: imlib-1.9.14-configure-x86_64.patch
  14. Obsoletes: Imlib
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: libpng-devel >= 2:1.2.5 gtk+-devel >= 1.2.1
  17. BuildRequires: libtiff-devel libjpeg-devel libungif-devel
  18. Requires: libpng
  19. Requires: libtiff
  20. Requires: libjpeg
  21. Requires: zlib
  22. Requires: netpbm-progs
  23. Requires: libungif
  24. %description
  25. Imlib is an advanced replacement library for libraries like libXpm that
  26. provides many more features with much greater flexability and
  27. speed.
  28. %package -n compat32-%{name}
  29. Summary: Image loading and rendering library for X11R6
  30. Summary(ja): 画像の読み込み/レンダリング用のライブラリ
  31. Group: System Environment/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. %description -n compat32-%{name}
  34. Imlib is an advanced replacement library for libraries like libXpm that
  35. provides many more features with much greater flexability and
  36. speed.
  37. %package devel
  38. Summary: Imlib headers, static libraries and documentation
  39. Summary(ja): Imlib のヘッダファイルおよび静的ライブラリ、ドキュメント
  40. Group: Development/Libraries
  41. Requires: %{name} = %{version}-%{release}
  42. Requires: libungif-devel libjpeg-devel
  43. Requires: libtiff-devel libpng-devel zlib-devel
  44. Obsoletes: Imlib
  45. %description devel
  46. Headers, static libraries and documentation for Imlib.
  47. %package cfgeditor
  48. Summary: Imlib configuration editor
  49. Summary(ja): Imlib 設定エディタ
  50. Group: User Interface/Desktops
  51. Requires: %{name} = %{version}
  52. #Requires: gtk+ >= 1.2.1
  53. %description cfgeditor
  54. The imlib_config program allows you to control the way imlib uses
  55. color and handles gamma correction/etc.
  56. %prep
  57. %setup -q
  58. #patch0 -p1 -b .bmp-buffer-overflow
  59. %patch1 -p1 -b .can-2004-1025_1026
  60. %patch2 -p1 -b .x86_64
  61. %build
  62. %define __libtoolize /bin/true
  63. %configure
  64. if [ "$SMP" != "" ]; then
  65. (make "MAKE=make -k -j $SMP"; exit 0)
  66. make
  67. else
  68. make
  69. fi
  70. %install
  71. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  72. %makeinstall
  73. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  74. ##%find_lang %{name}
  75. %post -p /sbin/ldconfig
  76. %postun -p /sbin/ldconfig
  77. %post -n compat32-%{name} -p /sbin/ldconfig
  78. %postun -n compat32-%{name} -p /sbin/ldconfig
  79. %clean
  80. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  81. ##%files -f %{name}.lang
  82. %files
  83. %defattr(-,root,root)
  84. %doc README AUTHORS ChangeLog NEWS
  85. %attr(755,root,root) %{_libdir}/lib*.so.*
  86. %config %{_sysconfdir}/*
  87. %{_libdir}/libimlib-*.so
  88. %files cfgeditor
  89. %defattr(-,root,root)
  90. %{_bindir}/imlib_config
  91. %{_mandir}/man1/imlib_config*
  92. %files devel
  93. %defattr(-,root,root)
  94. %doc doc/*.gif doc/*.html
  95. %{_bindir}/imlib-config
  96. %{_libdir}/libImlib.so
  97. %{_libdir}/libgdk_imlib.so
  98. %{_libdir}/*.a
  99. %{_libdir}/pkgconfig/*
  100. %{_includedir}/*
  101. %{_datadir}/aclocal/*
  102. %{_mandir}/man1/imlib-config*
  103. %if %{build_compat32}
  104. %files -n compat32-%{name}
  105. %defattr(-,root,root)
  106. %attr(755,root,root) %{_libdir}/lib*.so.*
  107. %{_libdir}/libimlib-*.so
  108. %endif
  109. %changelog
  110. * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.9.15-2
  111. - spec in utf-8
  112. * Tue Jul 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.15-1
  113. - updated to 1.9.15 (dropped Patch0)
  114. - applied to new versioning policy
  115. * Wed May 24 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.9.14-0vl10
  116. - added compat32-imlib package for x86_64 architecture support
  117. * Fri Feb 17 2006 Shu KONNO <owa@bg.wakwak.com> 1.9.14-0vl9
  118. - added imlib-1.9.14-configure-x86_64.patch
  119. - disable %%find_lang macro
  120. - rebuilt for x86_64 architecture
  121. * Sat May 21 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.14-0vl8
  122. - added Requires: lib*-devel to devel package
  123. - added %{_libdir}/pkgconfig/*.pc files to devel package
  124. - removed gtk+ dependancy on main package
  125. * Wed Feb 09 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.9.14-0vl7
  126. - rebuild for VineSeed
  127. * Mon Jan 31 2005 IKEDA Katsumi <ikeda@webmasters.gr.jp> 1.9.14-0vl6.1
  128. - Added a security patch for CAN-2004-1025 and CAN-2004-1026.
  129. - Patch1: imlib-1.9.13-sec2.patch
  130. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=138516
  131. * Fri Sep 17 2004 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 1.9.14-0vl6
  132. - Updated Patch0: http://bugzilla.gnome.org/show_bug.cgi?id=151034#c8
  133. * Wed Sep 1 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 1.9.14-0vl5
  134. - Added a security patch for buffer overflow in bmp handling (Patch0).
  135. * Wed Jul 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.9.14-0vl4
  136. - rebuild
  137. * Sat Apr 12 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.9.14-0vl2
  138. - rebuild with libpng12-devel
  139. - add BuildPrereq
  140. * Sat Mar 30 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.9.14-0vl1
  141. - updated to new upstream release
  142. - Patch0 removed (merged into upstream source)
  143. * Sat Jul 14 2001 <sagami@vinelinux.org>
  144. - 1.9.10-0vl2: fix to build against new libtool
  145. * Tue May 8 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.9.10-0vl1
  146. - New upstream release.
  147. * Wed Mar 7 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.9.9-0vl1
  148. - New upstream release.
  149. - use rpmmacros.
  150. * Mon Feb 19 2001 Jun Nishii <jun@vinelinux.org>
  151. - 1.9.8.1-2vl2
  152. - requires netpbm-progs instead of libgr-progs
  153. * Sun Jul 23 2000 Daisuke SUZUKI <daisuke@linux.or.jp>
  154. - change to use libtoolize
  155. * Fri Jan 7 2000 Jun Nishii <jun@vinelinux.org>
  156. - change group
  157. - added Japanese summary
  158. * Wed Jan 5 2000 Yasuyuki Furukawa <yasu@on.cs.keio.ac.jp>
  159. - added setlocale patch
  160. * Mon Jan 11 1999 Carsten Haitzler <raster@redhat.com>
  161. - up to 1.9.0
  162. * Wed Sep 23 1998 Carsten Haitzler <raster@redhat.com>
  163. - up to 1.8.1
  164. * Tue Sep 22 1998 Cristian Gafton <gafton@redhat.com>
  165. - yet another build for today (%defattr and %attr in the files lists)
  166. - devel docs are back on the spec file
  167. * Tue Sep 22 1998 Carsten Haitzler <raster@redhat.com>
  168. - Added minor patch for ps saving code.
  169. * Mon Sep 21 1998 Cristian Gafton <gafton@redhat.com>
  170. - updated to version 1.8
  171. * Fri Sep 11 1998 Cristian Gafton <gafton@redhat.com>
  172. - take out imlib_config from devel package
  173. * Wed Sep 9 1998 Michael Fulbright <msf@redhat.com>
  174. - upgraded to 1.7
  175. - changed name so it will persist if user later install devel imlib
  176. - added subpackage for imlib_config
  177. * Fri Apr 3 1998 Michael K. Johnson <johnsonm@redhat.com>
  178. - fixed typo
  179. * Fri Mar 13 1998 Marc Ewing <marc@redhat.com>
  180. - Added -k, Obsoletes
  181. - Integrate into CVS source tree