libjpeg-vl.spec 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define LIBVER 62.0.0
  3. Summary: A library for manipulating JPEG image format files.
  4. Summary(ja): JPEG 形式画像ファイルを扱う為のライブラリ
  5. Name: libjpeg
  6. Version: 6b
  7. Release: 40%{?_dist_release}
  8. License: distributable
  9. Group: System Environment/Libraries
  10. Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.bz2
  11. Patch0: libjpeg-6b-arm.patch
  12. Patch1: jpeg-c++.patch
  13. Patch2: libjpeg-shared.patch
  14. Patch3: libjpeg-rpath.patch
  15. Patch4: libjpeg-x86_64.patch
  16. URL: http://www.ijg.org/
  17. Buildroot: %{_tmppath}/%{name}-%{version}-root
  18. %package devel
  19. Summary: Development tools for programs which will use the libjpeg library.
  20. Summary(ja): libjpeg ライブラリを使うプログラム向け開発ツール
  21. Group: Development/Libraries
  22. Requires: libjpeg = %{version}-%{release}
  23. %package static
  24. Summary: Static library of libjpeg
  25. Summary(ja): libjpeg のスタティックライブラリ
  26. Group: Development/Libraries
  27. Requires: libjpeg-devel = %{version}-%{release}
  28. %description
  29. The libjpeg package contains a library of functions for manipulating
  30. JPEG images, as well as simple client programs for accessing the
  31. libjpeg functions. Libjpeg client programs include cjpeg, djpeg,
  32. jpegtran, rdjpgcom and wrjpgcom. Cjpeg compresses an image file into
  33. JPEG format. Djpeg decompresses a JPEG file into a regular image
  34. file. Jpegtran can perform various useful transformations on JPEG
  35. files. Rdjpgcom displays any text comments included in a JPEG file.
  36. Wrjpgcom inserts text comments into a JPEG file.
  37. %description -l ja
  38. libjpeg パッケージには JPEG 画像を扱う為に必要なライブラリと,
  39. libjpeg 関数にアクセスする為の簡単なクライアントプログラムが
  40. 収められています.libjpeg クライアントプログラムには cjpeg, djpeg,
  41. jpegtran, rdjpgcom, wrjpgcom があります.cjpeg は画像ファイルを
  42. JPEG 形式に圧縮します.djpeg は JPEG ファイルを通常の画像ファイルに
  43. 展開します.jpegtran は JPEG ファイルに様々な変換を施すことが出来ます.
  44. rdjpgcom は JPEG ファイルに含まれているテキスト形式のコメントを表示し,
  45. wrjpgcom は JPEG ファイルにテキスト形式のコメントを追加します.
  46. %description devel
  47. The libjpeg-devel package includes the header files and static libraries
  48. necessary for developing programs which will manipulate JPEG files using
  49. the libjpeg library.
  50. If you are going to develop programs which will manipulate JPEG images,
  51. you should install libjpeg-devel. You'll also need to have the libjpeg
  52. package installed.
  53. %description devel -l ja
  54. libjpeg-devel パッケージには,libjpeg ライブラリを使って JPEG ファイルを
  55. 扱うプログラムを開発するのに必要なヘッダファイルとスタティックライブラリが
  56. 収められています.
  57. JPEG 画像を扱うプログラムを開発する際には,libjpeg-devel を
  58. インストールして下さい.同時に libjpeg パッケージもインストールする
  59. 必要があります.
  60. %description static
  61. The libjpeg-static package contains the statically linkable version of libjpeg.
  62. Linking to static libraries is discouraged for most applications, but it is
  63. necessary for some boot packages.
  64. ## to build compat32 for x86_64 architecture support
  65. %package -n compat32-%{name}
  66. Summary: A library for manipulating JPEG image format files.
  67. Summary(ja): JPEG 形式画像ファイルを扱う為のライブラリ
  68. Group: Development/Libraries
  69. Requires: libjpeg = %{version}-%{release}
  70. %description -n compat32-%{name}
  71. The libjpeg package contains a library of functions for manipulating
  72. JPEG images, as well as simple client programs for accessing the
  73. libjpeg functions. Libjpeg client programs include cjpeg, djpeg,
  74. jpegtran, rdjpgcom and wrjpgcom. Cjpeg compresses an image file into
  75. JPEG format. Djpeg decompresses a JPEG file into a regular image
  76. file. Jpegtran can perform various useful transformations on JPEG
  77. files. Rdjpgcom displays any text comments included in a JPEG file.
  78. Wrjpgcom inserts text comments into a JPEG file.
  79. %package -n compat32-%{name}-devel
  80. Summary: Development tools for programs which will use the libjpeg library.
  81. Summary(ja): libjpeg ライブラリを使うプログラム向け開発ツール
  82. Group: Development/Libraries
  83. Requires: compat32-libjpeg = %{version}-%{release}
  84. Requires: libjpeg-devel = %{version}-%{release}
  85. %description -n compat32-%{name}-devel
  86. The libjpeg-devel package includes the header files and static libraries
  87. necessary for developing programs which will manipulate JPEG files using
  88. the libjpeg library.
  89. If you are going to develop programs which will manipulate JPEG images,
  90. you should install libjpeg-devel. You'll also need to have the libjpeg
  91. package installed.
  92. %prep
  93. %setup -q -n jpeg-6b
  94. %patch0 -p1 -b .arm
  95. %patch1 -p1 -b .c++
  96. %patch2 -p1 -b .ppcshared
  97. %patch3 -p1
  98. %patch4 -p1
  99. %build
  100. %configure --enable-shared --enable-static
  101. make libdir=%{_libdir} %{?_smp_mflags}
  102. LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD make test
  103. %install
  104. rm -rf $RPM_BUILD_ROOT
  105. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  106. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  107. mkdir -p $RPM_BUILD_ROOT%{_includedir}
  108. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  109. %makeinstall
  110. # Work around the broken makefiles...
  111. mv $RPM_BUILD_ROOT%{_mandir}/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
  112. strip -R .comment $RPM_BUILD_ROOT%{_bindir}/* || :
  113. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  114. %post -p /sbin/ldconfig
  115. %postun -p /sbin/ldconfig
  116. %post -n compat32-%{name} -p /sbin/ldconfig
  117. %postun -n compat32-%{name} -p /sbin/ldconfig
  118. %clean
  119. rm -rf $RPM_BUILD_ROOT
  120. %files
  121. %defattr(-,root,root)
  122. %doc usage.doc README
  123. %{_bindir}/*
  124. %{_libdir}/libjpeg.so.*
  125. %{_mandir}/*/*
  126. %files devel
  127. %defattr(-,root,root)
  128. %doc libjpeg.doc coderules.doc structure.doc wizard.doc example.c
  129. %{_libdir}/*.so
  130. %{_includedir}/*
  131. %files static
  132. %defattr(-,root,root)
  133. %{_libdir}/*.a
  134. %{_includedir}/*
  135. ## to build compat32 for x86_64 architecture support
  136. %if %{build_compat32}
  137. %files -n compat32-%{name}
  138. %defattr(-,root,root)
  139. %{_libdir}/libjpeg.so.*
  140. %files -n compat32-%{name}-devel
  141. %defattr(-,root,root)
  142. %{_libdir}/*.so
  143. %endif
  144. %changelog
  145. * Sat Feb 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 6b-40
  146. - rebuild with new environment
  147. * Mon May 04 2009 NAKAMURA Kenta <kenta@vinelinux.org> 6b-39
  148. - do not remove libjpeg.a even if %%{build_compat32} is defined
  149. * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 6b-38
  150. - split static library to -static subpackge
  151. - libjpeg-static is needed by tuxonice-userui
  152. * Mon Dec 29 2008 Shu KONNO <owa@bg.wakwak.com> 6b-37
  153. - spec in utf-8
  154. * Thu May 01 2008 NAKAMURA Kenta <kenta@vinelinux.org> 6b-36
  155. - updated %%if %%{build_compat32} case related statements
  156. * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6b-35
  157. - applied new versioning policy
  158. - removed *.la files from devel package
  159. * Sat Aug 26 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 6b-34vl4
  160. - add Requires: compat32-libjpeg instead of libjpeg (compat32)
  161. - fix typo in changelog
  162. * Sun Feb 12 2006 Shu KONNO <owa@bg.wakwak.com> 6b-34vl3
  163. - fixed %postun (missing to build as scriptlet by invalid comment)
  164. * Sun Feb 05 2006 Shu KONNO <owa@bg.wakwak.com> 6b-34vl2
  165. - added compat32-* packages for x86_64 architecture support
  166. - added libjpeg-x86_64.patch by nakamura
  167. - added script for compat32-* before configuring
  168. * Sun Sep 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6b-34vl1
  169. - added Pacth2 and 3 from Fedora
  170. * Tue Sep 23 2003 Florian La Roche <Florian.LaRoche@redhat.de>
  171. - do not set rpath
  172. * Thu Feb 13 2003 Elliot Lee <sopwith@redhat.com> 6b-27
  173. - Add libjpeg-shared.patch to fix shlibs on powerpc
  174. - added URL
  175. * Mon Apr 7 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 6b-21vl2
  176. - rebuild
  177. * Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 6b-20vl1
  178. - based on 6b-20 from Rawhide and built for Vine Linux
  179. - added Japanese summary and description
  180. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  181. - automated rebuild
  182. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  183. - automated rebuild
  184. * Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 6b-19
  185. - Fix bug #59011
  186. * Mon Jan 28 2002 Bernhard Rosenkraenzer <bero@redhat.com> 6b-18
  187. - Fix bug #58982
  188. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  189. - automated rebuild
  190. * Tue Jul 24 2001 Bill Nottingham <notting@redhat.com>
  191. - require libjpeg = %%{version}
  192. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  193. - Bump release + rebuild.
  194. * Mon Dec 11 2000 Than Ngo <than@redhat.com>
  195. - rebuilt with the fixed fileutils
  196. - use %%{_tmppath}
  197. * Wed Nov 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  198. - fix a typo (strip -R .comment, not .comments)
  199. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  200. - automatic rebuild
  201. * Sat Jun 17 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  202. - FHSify
  203. - add some C++ tweaks to the headers as suggested by bug #9822)
  204. * Wed May 5 2000 Bill Nottingham <notting@redhat.com>
  205. - configure tweaks for ia64; remove alpha patch (it's pointless)
  206. * Sat Feb 5 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  207. - rebuild to get compressed man pages
  208. - fix description
  209. - some minor tweaks to the spec file
  210. - add docs
  211. - fix build on alpha (alphaev6 stuff)
  212. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  213. - auto rebuild in the new build environment (release 9)
  214. * Wed Jan 13 1999 Cristian Gafton <gafton@redhat.com>
  215. - patch to build on arm
  216. - build for glibc 2.1
  217. * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
  218. - strip binaries
  219. * Mon Aug 3 1998 Jeff Johnson <jbj@redhat.com>
  220. - fix buildroot problem.
  221. * Tue Jun 09 1998 Prospector System <bugs@redhat.com>
  222. - translations modified for de
  223. * Thu Jun 04 1998 Marc Ewing <marc@redhat.com>
  224. - up to release 4
  225. - remove patch that set (improper) soname - libjpeg now does it itself
  226. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  227. - translations modified for de, fr, tr
  228. * Fri May 01 1998 Cristian Gafton <gafton@redhat.com>
  229. - fixed build on manhattan
  230. * Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
  231. - upgraded to version 6b
  232. * Wed Oct 08 1997 Donnie Barnes <djb@redhat.com>
  233. - new package to remove jpeg stuff from libgr and put in it's own package