libjpeg-turbo-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
  3. Summary(ja): MMX/SSE2 でアクセラレーションされた libjpeg ライブラリ
  4. Name: libjpeg-turbo
  5. Version: 1.3.1
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: wxWidgets
  9. URL: http://sourceforge.net/projects/libjpeg-turbo
  10. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: autoconf, automake, libtool
  13. %ifarch %{ix86} x86_64
  14. BuildRequires: nasm
  15. %endif
  16. Obsoletes: libjpeg < 6b-50vl6
  17. Provides: libjpeg = 6b-50vl6
  18. Patch0: libjpeg-turbo12-noinst.patch
  19. Patch1: libjpeg-turbo-header-files.patch
  20. %description
  21. The libjpeg-turbo package contains a library of functions for manipulating
  22. JPEG images
  23. %package devel
  24. Summary: Headers for the libjpeg-turbo library
  25. Summary(ja): libjpeg-turbo ライブラリのヘッダファイル
  26. Group: Development/Libraries
  27. Obsoletes: libjpeg-devel < 6b-50vl6
  28. Obsoletes: libjpeg-static < 6b-50vl6
  29. Provides: libjpeg-devel = 6b-50vl6
  30. Requires: libjpeg-turbo = %{version}-%{release}
  31. %description devel
  32. This package contains header files necessary for developing programs which
  33. will manipulate JPEG files using the libjpeg-turbo library
  34. %package utils
  35. Summary: Utilities for manipulating JPEG images
  36. Summary(ja): JPEG イメージを操作するためのユーティリティ
  37. Group: Applications/Multimedia
  38. Requires: libjpeg-turbo = %{version}-%{release}
  39. %description utils
  40. The libjpeg-turbo-utils package contains simple client programs for
  41. accessing the libjpeg functions. It contains cjpeg, djpeg, jpegtran,
  42. rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG format.
  43. Djpeg decompresses a JPEG file into a regular image file. Jpegtran
  44. can perform various useful transformations on JPEG files. Rdjpgcom
  45. displays any text comments included in a JPEG file. Wrjpgcom inserts
  46. text comments into a JPEG file.
  47. ## to build compat32 for x86_64 architecture support
  48. %package -n compat32-%{name}
  49. Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
  50. Summary(ja): MMX/SSE2 でアクセラレーションされた libjpeg ライブラリ
  51. Group: System Environment/Libraries
  52. Obsoletes: compat32-libjpeg < 6b-50vl6
  53. Provides: compat32-libjpeg = 6b-50vl6
  54. %description -n compat32-%{name}
  55. The libjpeg-turbo package contains a library of functions for manipulating
  56. JPEG images
  57. %package -n compat32-%{name}-devel
  58. Summary: Headers for the libjpeg-turbo library
  59. Summary(ja): libjpeg-turbo ライブラリのヘッダファイル
  60. Group: Development/Libraries
  61. Obsoletes: compat32-libjpeg-devel < 6b-50vl6
  62. Provides: compat32-libjpeg-devel = 6b-50vl6
  63. Requires: libjpeg-turbo = %{version}-%{release}
  64. %description -n compat32-%{name}-devel
  65. This package contains header files necessary for developing programs which
  66. will manipulate JPEG files using the libjpeg-turbo library
  67. %prep
  68. %setup -q
  69. %patch0 -p1 -b .noinst_jpgtest
  70. %patch1 -p1 -b .turbo_headers
  71. %build
  72. autoreconf -fiv
  73. %configure --disable-static
  74. make %{?_smp_mflags}
  75. %install
  76. rm -rf $RPM_BUILD_ROOT
  77. make install DESTDIR=$RPM_BUILD_ROOT
  78. # Fix perms
  79. chmod -x README-turbo.txt
  80. # Remove unwanted files
  81. rm -f $RPM_BUILD_ROOT/%{_libdir}/lib{,turbo}jpeg.la
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT
  84. %post -p /sbin/ldconfig
  85. %postun -p /sbin/ldconfig
  86. %post -n compat32-%{name} -p /sbin/ldconfig
  87. %postun -n compat32-%{name} -p /sbin/ldconfig
  88. %files
  89. %defattr(-,root,root,-)
  90. %doc README README-turbo.txt change.log ChangeLog.txt
  91. %{_libdir}/libjpeg.so.62*
  92. %{_libdir}/libturbojpeg.so.0*
  93. %files devel
  94. %defattr(-,root,root,-)
  95. %doc coderules.txt jconfig.txt libjpeg.txt structure.txt example.c
  96. %{_includedir}/jconfig.h
  97. %{_includedir}/jerror.h
  98. %{_includedir}/jmorecfg.h
  99. %{_includedir}/jpegint.h
  100. %{_includedir}/jpeglib.h
  101. %{_includedir}/turbojpeg.h
  102. %{_libdir}/libjpeg.so
  103. %{_libdir}/libturbojpeg.so
  104. %files utils
  105. %defattr(-,root,root,-)
  106. %doc usage.txt wizard.txt
  107. %{_bindir}/cjpeg
  108. %{_bindir}/djpeg
  109. %{_bindir}/jpegtran
  110. %{_bindir}/rdjpgcom
  111. %{_bindir}/wrjpgcom
  112. %{_mandir}/man1/cjpeg.1*
  113. %{_mandir}/man1/djpeg.1*
  114. %{_mandir}/man1/jpegtran.1*
  115. %{_mandir}/man1/rdjpgcom.1*
  116. %{_mandir}/man1/wrjpgcom.1*
  117. ## to build compat32 for x86_64 architecture support
  118. %if %{build_compat32}
  119. %files -n compat32-%{name}
  120. %defattr(-,root,root)
  121. %{_libdir}/libjpeg.so.*
  122. %{_libdir}/libturbojpeg.so.*
  123. %files -n compat32-%{name}-devel
  124. %defattr(-,root,root)
  125. %{_libdir}/*.so
  126. %endif
  127. %changelog
  128. * Sun Sep 07 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.3.1-1
  129. - update to 1.3.1
  130. - ship turbojpeg library and headers
  131. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-2
  132. - rebuild with VineSeed environment
  133. * Mon Sep 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-1
  134. - new upstream release
  135. * Tue Mar 29 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.0-1
  136. - new upstream release
  137. * Tue Sep 14 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  138. - initial build for Vine Linux
  139. * Wed Aug 04 2010 Adam Tkac <atkac redhat com> 1.0.0-3
  140. - fix huffman decoder to handle broken JPEGs well (#617469)
  141. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-2
  142. - add libjpeg-devel%%{_isa} provides to -devel subpkg to satisfy imlib-devel
  143. deps
  144. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-1
  145. - update to 1.0.0
  146. - patches merged
  147. - libjpeg-turbo-programs.patch
  148. - libjpeg-turbo-nosimd.patch
  149. - add libjpeg provides to the main package to workaround problems with broken
  150. java-1.6.0-openjdk package
  151. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 0.0.93-13
  152. - remove libjpeg provides from -utils subpkg
  153. * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-12
  154. - move Obsoletes: libjpeg to main pkg
  155. * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-11
  156. - -utils: Requires: %%name ...
  157. * Wed Jun 30 2010 Adam Tkac <atkac redhat com> 0.0.93-10
  158. - add Provides = libjpeg to -utils subpackage
  159. * Mon Jun 28 2010 Adam Tkac <atkac redhat com> 0.0.93-9
  160. - merge review related fixes (#600243)
  161. * Wed Jun 16 2010 Adam Tkac <atkac redhat com> 0.0.93-8
  162. - merge review related fixes (#600243)
  163. * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-7
  164. - obsolete -static libjpeg subpackage (#600243)
  165. * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-6
  166. - improve package description a little (#600243)
  167. - include example.c as %%doc in the -devel subpackage
  168. * Fri Jun 11 2010 Adam Tkac <atkac redhat com> 0.0.93-5
  169. - don't use "fc12" disttag in obsoletes/provides (#600243)
  170. * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-4
  171. - fix compilation on platforms without MMX/SSE (#600243)
  172. * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-3
  173. - package review related fixes (#600243)
  174. * Wed Jun 09 2010 Adam Tkac <atkac redhat com> 0.0.93-2
  175. - package review related fixes (#600243)
  176. * Fri Jun 04 2010 Adam Tkac <atkac redhat com> 0.0.93-1
  177. - initial package