libjpeg-turbo-vl.spec 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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.1.5.1
  6. Release: 1%{?_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: IJG
  11. URL: http://sourceforge.net/projects/libjpeg-turbo
  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: cmake
  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: programming
  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: graphics
  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,legacy
  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: programming,legacy
  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. %debug_package
  70. %prep
  71. %setup -q
  72. %patch0 -p1
  73. %patch1 -p1
  74. %build
  75. %ifarch %{ix86} x86_64
  76. export LDFLAGS="$RPM_LD_FLAGS -Wl,-z,ibt -Wl,-z,shstk"
  77. %endif
  78. mkdir jpeg6
  79. pushd jpeg6
  80. %{cmake} \
  81. -DCMAKE_SKIP_RPATH:BOOL=YES \
  82. -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
  83. -DENABLE_STATIC:BOOL=NO \
  84. ..
  85. %cmake_build
  86. popd
  87. mkdir jpeg8
  88. pushd jpeg8
  89. %{cmake} \
  90. -DWITH_JPEG8=YES \
  91. -DCMAKE_SKIP_RPATH:BOOL=YES \
  92. -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
  93. -DENABLE_STATIC:BOOL=NO \
  94. ..
  95. %cmake_build
  96. popd
  97. # Fix perms
  98. chmod -x README.md
  99. %install
  100. rm -rf %{buildroot}
  101. pushd jpeg6
  102. %cmake_install
  103. popd
  104. rm -rf %{buildroot}%{_mandir}/*
  105. rm -f %{buildroot}%{_includedir}/*
  106. rm -f %{buildroot}%{_bindir}/*
  107. rm -f %{buildroot}%{_libdir}/pkgconfig/*
  108. rm -f %{buildroot}%{_libdir}/lib*.so
  109. pushd jpeg8
  110. %cmake_install
  111. popd
  112. # Remove unwanted files
  113. rm -f %{buildroot}/%{_libdir}/lib{,turbo}jpeg.la
  114. %check
  115. export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
  116. pushd jpeg6
  117. %ctest
  118. popd
  119. pushd jpeg8
  120. %ctest
  121. popd
  122. %clean
  123. rm -rf %{buildroot}
  124. %files
  125. %defattr(-,root,root,-)
  126. %license LICENSE.md
  127. %doc README.md README.ijg ChangeLog.md
  128. %{_libdir}/libjpeg.so.*
  129. %{_libdir}/libturbojpeg.so.*
  130. %files devel
  131. %defattr(-,root,root,-)
  132. %doc coderules.txt jconfig.txt libjpeg.txt structure.txt
  133. %{_includedir}/jconfig.h
  134. %{_includedir}/jerror.h
  135. %{_includedir}/jmorecfg.h
  136. %{_includedir}/jpegint.h
  137. %{_includedir}/jpeglib.h
  138. %{_includedir}/turbojpeg.h
  139. %{_libdir}/libjpeg.so
  140. %{_libdir}/libturbojpeg.so
  141. %{_libdir}/pkgconfig/libjpeg.pc
  142. %{_libdir}/pkgconfig/libturbojpeg.pc
  143. %{_libdir}/cmake/libjpeg-turbo
  144. %files utils
  145. %defattr(-,root,root,-)
  146. %doc usage.txt wizard.txt
  147. %{_bindir}/cjpeg
  148. %{_bindir}/djpeg
  149. %{_bindir}/jpegtran
  150. %{_bindir}/rdjpgcom
  151. %{_bindir}/wrjpgcom
  152. %{_mandir}/man1/cjpeg.1*
  153. %{_mandir}/man1/djpeg.1*
  154. %{_mandir}/man1/jpegtran.1*
  155. %{_mandir}/man1/rdjpgcom.1*
  156. %{_mandir}/man1/wrjpgcom.1*
  157. ## to build compat32 for x86_64 architecture support
  158. %if %{build_compat32}
  159. %files -n compat32-%{name}
  160. %defattr(-,root,root)
  161. %{_libdir}/libjpeg.so.*
  162. %{_libdir}/libturbojpeg.so.*
  163. %files -n compat32-%{name}-devel
  164. %defattr(-,root,root)
  165. %{_libdir}/*.so
  166. %endif
  167. %changelog
  168. * Thu Feb 09 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.5.1-1
  169. - new upstream release.
  170. * Wed Feb 01 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.5-1
  171. - new upstream release.
  172. * Sat Aug 13 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.4-1
  173. - new upstream release.
  174. * Sat Feb 26 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.3-1
  175. - new upstream release.
  176. * Sat Nov 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.2-1
  177. - new upstream release.
  178. * Fri Oct 15 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.1-1
  179. - new upstream release.
  180. * Fri Jun 11 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.0-1
  181. - new upstream release.
  182. - dropped ldconfig scriptlets.
  183. - updated Patch0 and 1.
  184. * Tue Dec 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.6-1
  185. - new upstream release.
  186. * Wed Sep 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.5-1
  187. - new upstream release.
  188. - dropped Patch1000: fixed in upstream.
  189. * Mon Jun 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-2
  190. - added Patch1000 to fix CVE-2020-13790.
  191. * Mon Feb 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-1
  192. - new upstream release.
  193. * Sat Oct 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-2
  194. - built both of libjpeg.so.62 and libjpeg.so.8.
  195. * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-1
  196. - new upstream release.
  197. - dropped all patches.
  198. - imported Patch0 and 1 from rawhide.
  199. * Tue Dec 19 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.5.3-1
  200. - update to 1.5.3
  201. - update Patch0,doc
  202. * Mon Nov 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.2-1
  203. - update to 1.4.2
  204. - update Patch0
  205. * Sun Sep 07 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.3.1-1
  206. - update to 1.3.1
  207. - ship turbojpeg library and headers
  208. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-2
  209. - rebuild with VineSeed environment
  210. * Mon Sep 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-1
  211. - new upstream release
  212. * Tue Mar 29 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.0-1
  213. - new upstream release
  214. * Tue Sep 14 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  215. - initial build for Vine Linux
  216. * Wed Aug 04 2010 Adam Tkac <atkac redhat com> 1.0.0-3
  217. - fix huffman decoder to handle broken JPEGs well (#617469)
  218. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-2
  219. - add libjpeg-devel%%{_isa} provides to -devel subpkg to satisfy imlib-devel
  220. deps
  221. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-1
  222. - update to 1.0.0
  223. - patches merged
  224. - libjpeg-turbo-programs.patch
  225. - libjpeg-turbo-nosimd.patch
  226. - add libjpeg provides to the main package to workaround problems with broken
  227. java-1.6.0-openjdk package
  228. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 0.0.93-13
  229. - remove libjpeg provides from -utils subpkg
  230. * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-12
  231. - move Obsoletes: libjpeg to main pkg
  232. * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-11
  233. - -utils: Requires: %%name ...
  234. * Wed Jun 30 2010 Adam Tkac <atkac redhat com> 0.0.93-10
  235. - add Provides = libjpeg to -utils subpackage
  236. * Mon Jun 28 2010 Adam Tkac <atkac redhat com> 0.0.93-9
  237. - merge review related fixes (#600243)
  238. * Wed Jun 16 2010 Adam Tkac <atkac redhat com> 0.0.93-8
  239. - merge review related fixes (#600243)
  240. * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-7
  241. - obsolete -static libjpeg subpackage (#600243)
  242. * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-6
  243. - improve package description a little (#600243)
  244. - include example.c as %%doc in the -devel subpackage
  245. * Fri Jun 11 2010 Adam Tkac <atkac redhat com> 0.0.93-5
  246. - don't use "fc12" disttag in obsoletes/provides (#600243)
  247. * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-4
  248. - fix compilation on platforms without MMX/SSE (#600243)
  249. * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-3
  250. - package review related fixes (#600243)
  251. * Wed Jun 09 2010 Adam Tkac <atkac redhat com> 0.0.93-2
  252. - package review related fixes (#600243)
  253. * Fri Jun 04 2010 Adam Tkac <atkac redhat com> 0.0.93-1
  254. - initial package