imlib-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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: 3%{?_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. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.9.15-3
  111. - rebuilt with rpm-4.8.1 for pkg-config
  112. * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.9.15-2
  113. - spec in utf-8
  114. * Tue Jul 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.15-1
  115. - updated to 1.9.15 (dropped Patch0)
  116. - applied to new versioning policy
  117. * Wed May 24 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.9.14-0vl10
  118. - added compat32-imlib package for x86_64 architecture support
  119. * Fri Feb 17 2006 Shu KONNO <owa@bg.wakwak.com> 1.9.14-0vl9
  120. - added imlib-1.9.14-configure-x86_64.patch
  121. - disable %%find_lang macro
  122. - rebuilt for x86_64 architecture
  123. * Sat May 21 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.14-0vl8
  124. - added Requires: lib*-devel to devel package
  125. - added %{_libdir}/pkgconfig/*.pc files to devel package
  126. - removed gtk+ dependancy on main package
  127. * Wed Feb 09 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.9.14-0vl7
  128. - rebuild for VineSeed
  129. * Mon Jan 31 2005 IKEDA Katsumi <ikeda@webmasters.gr.jp> 1.9.14-0vl6.1
  130. - Added a security patch for CAN-2004-1025 and CAN-2004-1026.
  131. - Patch1: imlib-1.9.13-sec2.patch
  132. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=138516
  133. * Fri Sep 17 2004 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 1.9.14-0vl6
  134. - Updated Patch0: http://bugzilla.gnome.org/show_bug.cgi?id=151034#c8
  135. * Wed Sep 1 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 1.9.14-0vl5
  136. - Added a security patch for buffer overflow in bmp handling (Patch0).
  137. * Wed Jul 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.9.14-0vl4
  138. - rebuild
  139. * Sat Apr 12 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.9.14-0vl2
  140. - rebuild with libpng12-devel
  141. - add BuildPrereq
  142. * Sat Mar 30 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.9.14-0vl1
  143. - updated to new upstream release
  144. - Patch0 removed (merged into upstream source)
  145. * Sat Jul 14 2001 <sagami@vinelinux.org>
  146. - 1.9.10-0vl2: fix to build against new libtool
  147. * Tue May 8 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.9.10-0vl1
  148. - New upstream release.
  149. * Wed Mar 7 2001 Akira TAGOH <tagoh@gnome.gr.jp> 1.9.9-0vl1
  150. - New upstream release.
  151. - use rpmmacros.
  152. * Mon Feb 19 2001 Jun Nishii <jun@vinelinux.org>
  153. - 1.9.8.1-2vl2
  154. - requires netpbm-progs instead of libgr-progs
  155. * Sun Jul 23 2000 Daisuke SUZUKI <daisuke@linux.or.jp>
  156. - change to use libtoolize
  157. * Fri Jan 7 2000 Jun Nishii <jun@vinelinux.org>
  158. - change group
  159. - added Japanese summary
  160. * Wed Jan 5 2000 Yasuyuki Furukawa <yasu@on.cs.keio.ac.jp>
  161. - added setlocale patch
  162. * Mon Jan 11 1999 Carsten Haitzler <raster@redhat.com>
  163. - up to 1.9.0
  164. * Wed Sep 23 1998 Carsten Haitzler <raster@redhat.com>
  165. - up to 1.8.1
  166. * Tue Sep 22 1998 Cristian Gafton <gafton@redhat.com>
  167. - yet another build for today (%defattr and %attr in the files lists)
  168. - devel docs are back on the spec file
  169. * Tue Sep 22 1998 Carsten Haitzler <raster@redhat.com>
  170. - Added minor patch for ps saving code.
  171. * Mon Sep 21 1998 Cristian Gafton <gafton@redhat.com>
  172. - updated to version 1.8
  173. * Fri Sep 11 1998 Cristian Gafton <gafton@redhat.com>
  174. - take out imlib_config from devel package
  175. * Wed Sep 9 1998 Michael Fulbright <msf@redhat.com>
  176. - upgraded to 1.7
  177. - changed name so it will persist if user later install devel imlib
  178. - added subpackage for imlib_config
  179. * Fri Apr 3 1998 Michael K. Johnson <johnsonm@redhat.com>
  180. - fixed typo
  181. * Fri Mar 13 1998 Marc Ewing <marc@redhat.com>
  182. - Added -k, Obsoletes
  183. - Integrate into CVS source tree