libjpeg-turbo-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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.4.2
  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. * Mon Nov 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.2-1
  129. - update to 1.4.2
  130. - update Patch0
  131. * Sun Sep 07 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.3.1-1
  132. - update to 1.3.1
  133. - ship turbojpeg library and headers
  134. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-2
  135. - rebuild with VineSeed environment
  136. * Mon Sep 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-1
  137. - new upstream release
  138. * Tue Mar 29 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.0-1
  139. - new upstream release
  140. * Tue Sep 14 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  141. - initial build for Vine Linux
  142. * Wed Aug 04 2010 Adam Tkac <atkac redhat com> 1.0.0-3
  143. - fix huffman decoder to handle broken JPEGs well (#617469)
  144. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-2
  145. - add libjpeg-devel%%{_isa} provides to -devel subpkg to satisfy imlib-devel
  146. deps
  147. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-1
  148. - update to 1.0.0
  149. - patches merged
  150. - libjpeg-turbo-programs.patch
  151. - libjpeg-turbo-nosimd.patch
  152. - add libjpeg provides to the main package to workaround problems with broken
  153. java-1.6.0-openjdk package
  154. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 0.0.93-13
  155. - remove libjpeg provides from -utils subpkg
  156. * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-12
  157. - move Obsoletes: libjpeg to main pkg
  158. * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-11
  159. - -utils: Requires: %%name ...
  160. * Wed Jun 30 2010 Adam Tkac <atkac redhat com> 0.0.93-10
  161. - add Provides = libjpeg to -utils subpackage
  162. * Mon Jun 28 2010 Adam Tkac <atkac redhat com> 0.0.93-9
  163. - merge review related fixes (#600243)
  164. * Wed Jun 16 2010 Adam Tkac <atkac redhat com> 0.0.93-8
  165. - merge review related fixes (#600243)
  166. * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-7
  167. - obsolete -static libjpeg subpackage (#600243)
  168. * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-6
  169. - improve package description a little (#600243)
  170. - include example.c as %%doc in the -devel subpackage
  171. * Fri Jun 11 2010 Adam Tkac <atkac redhat com> 0.0.93-5
  172. - don't use "fc12" disttag in obsoletes/provides (#600243)
  173. * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-4
  174. - fix compilation on platforms without MMX/SSE (#600243)
  175. * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-3
  176. - package review related fixes (#600243)
  177. * Wed Jun 09 2010 Adam Tkac <atkac redhat com> 0.0.93-2
  178. - package review related fixes (#600243)
  179. * Fri Jun 04 2010 Adam Tkac <atkac redhat com> 0.0.93-1
  180. - initial package