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