libjpeg-turbo-vl.spec 9.1 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: 3.1.0
  6. Release: 1%{?_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: IJG
  11. URL: https://libjpeg-turbo.org/
  12. Source0: https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/%{version}/libjpeg-turbo-%{version}.tar.gz
  13. Patch0: libjpeg-turbo-cmake.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildRequires: cmake
  16. %ifarch %{ix86} x86_64
  17. BuildRequires: nasm
  18. %endif
  19. Obsoletes: libjpeg < 6b-50vl6
  20. Provides: libjpeg = 6b-50vl6
  21. %description
  22. The libjpeg-turbo package contains a library of functions for manipulating
  23. JPEG images
  24. %package devel
  25. Summary: Headers for the libjpeg-turbo library
  26. Summary(ja): libjpeg-turbo ライブラリのヘッダファイル
  27. Group: programming
  28. Obsoletes: libjpeg-devel < 6b-50vl6
  29. Obsoletes: libjpeg-static < 6b-50vl6
  30. Provides: libjpeg-devel = 6b-50vl6
  31. Requires: libjpeg-turbo = %{version}-%{release}
  32. %description devel
  33. This package contains header files necessary for developing programs which
  34. will manipulate JPEG files using the libjpeg-turbo library
  35. %package utils
  36. Summary: Utilities for manipulating JPEG images
  37. Summary(ja): JPEG イメージを操作するためのユーティリティ
  38. Group: graphics
  39. Requires: libjpeg-turbo = %{version}-%{release}
  40. %description utils
  41. The libjpeg-turbo-utils package contains simple client programs for
  42. accessing the libjpeg functions. It contains cjpeg, djpeg, jpegtran,
  43. rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG format.
  44. Djpeg decompresses a JPEG file into a regular image file. Jpegtran
  45. can perform various useful transformations on JPEG files. Rdjpgcom
  46. displays any text comments included in a JPEG file. Wrjpgcom inserts
  47. text comments into a JPEG file.
  48. ## to build compat32 for x86_64 architecture support
  49. %package -n compat32-%{name}
  50. Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
  51. Summary(ja): MMX/SSE2 でアクセラレーションされた libjpeg ライブラリ
  52. Group: system,legacy
  53. Obsoletes: compat32-libjpeg < 6b-50vl6
  54. Provides: compat32-libjpeg = 6b-50vl6
  55. %description -n compat32-%{name}
  56. The libjpeg-turbo package contains a library of functions for manipulating
  57. JPEG images
  58. %package -n compat32-%{name}-devel
  59. Summary: Headers for the libjpeg-turbo library
  60. Summary(ja): libjpeg-turbo ライブラリのヘッダファイル
  61. Group: programming,legacy
  62. Obsoletes: compat32-libjpeg-devel < 6b-50vl6
  63. Provides: compat32-libjpeg-devel = 6b-50vl6
  64. Requires: libjpeg-turbo = %{version}-%{release}
  65. %description -n compat32-%{name}-devel
  66. This package contains header files necessary for developing programs which
  67. will manipulate JPEG files using the libjpeg-turbo library
  68. %debug_package
  69. %prep
  70. %setup -q
  71. %patch0 -p1
  72. %build
  73. %ifarch %{ix86} x86_64
  74. export LDFLAGS="$RPM_LD_FLAGS -Wl,-z,ibt -Wl,-z,shstk"
  75. %endif
  76. mkdir jpeg6
  77. pushd jpeg6
  78. %{cmake} \
  79. -DCMAKE_SKIP_RPATH:BOOL=YES \
  80. -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
  81. -DENABLE_STATIC:BOOL=NO \
  82. ..
  83. %cmake_build
  84. popd
  85. mkdir jpeg8
  86. pushd jpeg8
  87. %{cmake} \
  88. -DWITH_JPEG8=YES \
  89. -DCMAKE_SKIP_RPATH:BOOL=YES \
  90. -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
  91. -DENABLE_STATIC:BOOL=NO \
  92. ..
  93. %cmake_build
  94. popd
  95. # Fix perms
  96. chmod -x README.md
  97. %install
  98. rm -rf %{buildroot}
  99. pushd jpeg6
  100. %cmake_install
  101. popd
  102. rm -rf %{buildroot}%{_mandir}/*
  103. rm -f %{buildroot}%{_includedir}/*
  104. rm -f %{buildroot}%{_bindir}/*
  105. rm -f %{buildroot}%{_libdir}/pkgconfig/*
  106. rm -f %{buildroot}%{_libdir}/lib*.so
  107. pushd jpeg8
  108. %cmake_install
  109. popd
  110. # Remove tjbench
  111. rm -f %{buildroot}/%{_bindir}/tjbench
  112. %ifarch x86_64
  113. %check
  114. export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
  115. pushd jpeg6
  116. %ctest
  117. popd
  118. pushd jpeg8
  119. %ctest
  120. popd
  121. %endif
  122. %files
  123. %license LICENSE.md
  124. %doc README.md README.ijg ChangeLog.md
  125. %{_libdir}/libjpeg.so.*
  126. %{_libdir}/libturbojpeg.so.*
  127. %files devel
  128. %doc coderules.txt jconfig.txt libjpeg.txt structure.txt
  129. %{_includedir}/jconfig.h
  130. %{_includedir}/jerror.h
  131. %{_includedir}/jmorecfg.h
  132. %{_includedir}/jpegint.h
  133. %{_includedir}/jpeglib.h
  134. %{_includedir}/turbojpeg.h
  135. %{_libdir}/libjpeg.so
  136. %{_libdir}/libturbojpeg.so
  137. %{_libdir}/pkgconfig/libjpeg.pc
  138. %{_libdir}/pkgconfig/libturbojpeg.pc
  139. %{_libdir}/cmake/libjpeg-turbo
  140. %files utils
  141. %doc usage.txt wizard.txt
  142. %{_bindir}/cjpeg
  143. %{_bindir}/djpeg
  144. %{_bindir}/jpegtran
  145. %{_bindir}/rdjpgcom
  146. %{_bindir}/wrjpgcom
  147. %{_mandir}/man1/cjpeg.1*
  148. %{_mandir}/man1/djpeg.1*
  149. %{_mandir}/man1/jpegtran.1*
  150. %{_mandir}/man1/rdjpgcom.1*
  151. %{_mandir}/man1/wrjpgcom.1*
  152. ## to build compat32 for x86_64 architecture support
  153. %if %{build_compat32}
  154. %files -n compat32-%{name}
  155. %{_libdir}/libjpeg.so.*
  156. %{_libdir}/libturbojpeg.so.*
  157. %files -n compat32-%{name}-devel
  158. %{_libdir}/*.so
  159. %endif
  160. %changelog
  161. * Wed Jan 8 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.0-1
  162. - new upstream release.
  163. * Mon Dec 2 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.4-1
  164. - new upstream release.
  165. * Fri Apr 05 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.2-1
  166. - new upstream release.
  167. * Thu Feb 09 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.5.1-1
  168. - new upstream release.
  169. * Wed Feb 01 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.5-1
  170. - new upstream release.
  171. * Sat Aug 13 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.4-1
  172. - new upstream release.
  173. * Sat Feb 26 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.3-1
  174. - new upstream release.
  175. * Sat Nov 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.2-1
  176. - new upstream release.
  177. * Fri Oct 15 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.1-1
  178. - new upstream release.
  179. * Fri Jun 11 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.0-1
  180. - new upstream release.
  181. - dropped ldconfig scriptlets.
  182. - updated Patch0 and 1.
  183. * Tue Dec 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.6-1
  184. - new upstream release.
  185. * Wed Sep 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.5-1
  186. - new upstream release.
  187. - dropped Patch1000: fixed in upstream.
  188. * Mon Jun 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-2
  189. - added Patch1000 to fix CVE-2020-13790.
  190. * Mon Feb 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-1
  191. - new upstream release.
  192. * Sat Oct 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-2
  193. - built both of libjpeg.so.62 and libjpeg.so.8.
  194. * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-1
  195. - new upstream release.
  196. - dropped all patches.
  197. - imported Patch0 and 1 from rawhide.
  198. * Tue Dec 19 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.5.3-1
  199. - update to 1.5.3
  200. - update Patch0,doc
  201. * Mon Nov 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.2-1
  202. - update to 1.4.2
  203. - update Patch0
  204. * Sun Sep 07 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.3.1-1
  205. - update to 1.3.1
  206. - ship turbojpeg library and headers
  207. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-2
  208. - rebuild with VineSeed environment
  209. * Mon Sep 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-1
  210. - new upstream release
  211. * Tue Mar 29 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.0-1
  212. - new upstream release
  213. * Tue Sep 14 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  214. - initial build for Vine Linux
  215. * Wed Aug 04 2010 Adam Tkac <atkac redhat com> 1.0.0-3
  216. - fix huffman decoder to handle broken JPEGs well (#617469)
  217. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-2
  218. - add libjpeg-devel%%{_isa} provides to -devel subpkg to satisfy imlib-devel
  219. deps
  220. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-1
  221. - update to 1.0.0
  222. - patches merged
  223. - libjpeg-turbo-programs.patch
  224. - libjpeg-turbo-nosimd.patch
  225. - add libjpeg provides to the main package to workaround problems with broken
  226. java-1.6.0-openjdk package
  227. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 0.0.93-13
  228. - remove libjpeg provides from -utils subpkg
  229. * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-12
  230. - move Obsoletes: libjpeg to main pkg
  231. * Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-11
  232. - -utils: Requires: %%name ...
  233. * Wed Jun 30 2010 Adam Tkac <atkac redhat com> 0.0.93-10
  234. - add Provides = libjpeg to -utils subpackage
  235. * Mon Jun 28 2010 Adam Tkac <atkac redhat com> 0.0.93-9
  236. - merge review related fixes (#600243)
  237. * Wed Jun 16 2010 Adam Tkac <atkac redhat com> 0.0.93-8
  238. - merge review related fixes (#600243)
  239. * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-7
  240. - obsolete -static libjpeg subpackage (#600243)
  241. * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-6
  242. - improve package description a little (#600243)
  243. - include example.c as %%doc in the -devel subpackage
  244. * Fri Jun 11 2010 Adam Tkac <atkac redhat com> 0.0.93-5
  245. - don't use "fc12" disttag in obsoletes/provides (#600243)
  246. * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-4
  247. - fix compilation on platforms without MMX/SSE (#600243)
  248. * Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-3
  249. - package review related fixes (#600243)
  250. * Wed Jun 09 2010 Adam Tkac <atkac redhat com> 0.0.93-2
  251. - package review related fixes (#600243)
  252. * Fri Jun 04 2010 Adam Tkac <atkac redhat com> 0.0.93-1
  253. - initial package