libjpeg-turbo-vl.spec 7.4 KB

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