libjpeg-turbo-vl.spec 6.5 KB

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