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