mirror of
https://abf.rosa.ru/djam/libjpeg-turbo.git
synced 2025-02-24 03:12:57 +00:00
Automatic import for version 1.2.1-2
This commit is contained in:
parent
7af9fc9560
commit
8af6463997
1 changed files with 63 additions and 3 deletions
|
@ -7,10 +7,12 @@
|
||||||
%define major62 62
|
%define major62 62
|
||||||
%define libname62 %mklibname jpeg %{major62}
|
%define libname62 %mklibname jpeg %{major62}
|
||||||
|
|
||||||
|
%bcond_without uclibc
|
||||||
|
|
||||||
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
|
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
|
||||||
Name: libjpeg-turbo
|
Name: libjpeg-turbo
|
||||||
Version: 1.2.1
|
Version: 1.2.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: wxWidgets Library License
|
License: wxWidgets Library License
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
@ -27,6 +29,9 @@ BuildRequires: autoconf automake libtool >= 1.4
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
BuildRequires: nasm
|
BuildRequires: nasm
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with uclibc}
|
||||||
|
BuildRequires: uClibc-devel >= 0.9.33.2-9
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains a library of functions for manipulating JPEG images.
|
This package contains a library of functions for manipulating JPEG images.
|
||||||
|
@ -43,6 +48,14 @@ Group: System/Libraries
|
||||||
This package contains the library needed to run programs dynamically
|
This package contains the library needed to run programs dynamically
|
||||||
linked with libjpeg.
|
linked with libjpeg.
|
||||||
|
|
||||||
|
%package -n uclibc-%{libname}
|
||||||
|
Summary: A library for manipulating JPEG image format files (uClibc build)
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n uclibc-%{libname}
|
||||||
|
This package contains the library needed to run programs dynamically
|
||||||
|
linked with libjpeg.
|
||||||
|
|
||||||
%package -n %{libname62}
|
%package -n %{libname62}
|
||||||
Summary: A library for manipulating JPEG image format files
|
Summary: A library for manipulating JPEG image format files
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
@ -59,10 +72,21 @@ Group: System/Libraries
|
||||||
This package contains the library needed to run programs dynamically
|
This package contains the library needed to run programs dynamically
|
||||||
linked with libturbojpeg.
|
linked with libturbojpeg.
|
||||||
|
|
||||||
|
%package -n uclibc-%{turbo}
|
||||||
|
Summary: TurboJPEG library (uClibc build)
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n uclibc-%{turbo}
|
||||||
|
This package contains the library needed to run programs dynamically
|
||||||
|
linked with libturbojpeg.
|
||||||
|
|
||||||
%package -n %{devname}
|
%package -n %{devname}
|
||||||
Summary: Development tools for programs which will use the libjpeg library
|
Summary: Development tools for programs which will use the libjpeg library
|
||||||
Group: Development/C
|
Group: Development/C
|
||||||
Requires: %{libname} >= %{EVRD}
|
Requires: %{libname} >= %{EVRD}
|
||||||
|
%if %{with uclibc}
|
||||||
|
Requires: uclibc-%{libname} >= %{EVRD}
|
||||||
|
%endif
|
||||||
Provides: jpeg-devel = %{EVRD}
|
Provides: jpeg-devel = %{EVRD}
|
||||||
Provides: libjpeg-devel = %{EVRD}
|
Provides: libjpeg-devel = %{EVRD}
|
||||||
Provides: jpeg%{major}-devel = %{EVRD}
|
Provides: jpeg%{major}-devel = %{EVRD}
|
||||||
|
@ -127,9 +151,24 @@ cp %{SOURCE2} jpegexiforient.c
|
||||||
cp %{SOURCE3} exifautotran
|
cp %{SOURCE3} exifautotran
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
CONFIGURE_TOP=$PWD
|
||||||
|
|
||||||
|
%if %{with uclibc}
|
||||||
|
mkdir -p uclibc
|
||||||
|
pushd uclibc
|
||||||
|
%configure2_5x CC=%{uclibc_cc} \
|
||||||
|
CFLAGS="%{uclibc_cflags} -ffast-math" \
|
||||||
|
--libdir=%{uclibc_root}%{_libdir} \
|
||||||
|
--disable-silent-rules \
|
||||||
|
--enable-shared \
|
||||||
|
--disable-static \
|
||||||
|
--with-jpeg8
|
||||||
|
%make
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
mkdir -p jpeg8
|
mkdir -p jpeg8
|
||||||
pushd jpeg8
|
pushd jpeg8
|
||||||
CONFIGURE_TOP=.. \
|
|
||||||
CFLAGS="%{optflags} -O3 -funroll-loops -ffast-math" \
|
CFLAGS="%{optflags} -O3 -funroll-loops -ffast-math" \
|
||||||
%configure2_5x --disable-silent-rules \
|
%configure2_5x --disable-silent-rules \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
|
@ -140,7 +179,6 @@ popd
|
||||||
|
|
||||||
mkdir -p jpeg62
|
mkdir -p jpeg62
|
||||||
pushd jpeg62
|
pushd jpeg62
|
||||||
CONFIGURE_TOP=.. \
|
|
||||||
CFLAGS="%{optflags} -O3 -funroll-loops -ffast-math" \
|
CFLAGS="%{optflags} -O3 -funroll-loops -ffast-math" \
|
||||||
%configure2_5x --disable-silent-rules \
|
%configure2_5x --disable-silent-rules \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
|
@ -153,8 +191,15 @@ gcc %{optflags} %{ldflags} -o jpegexiforient jpegexiforient.c
|
||||||
%check
|
%check
|
||||||
make -C jpeg8 test
|
make -C jpeg8 test
|
||||||
make -C jpeg62 test
|
make -C jpeg62 test
|
||||||
|
%if %{with uclibc}
|
||||||
|
make -C uclibc test
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if %{with uclibc}
|
||||||
|
make install-libLTLIBRARIES DESTDIR=%{buildroot} -C uclibc
|
||||||
|
%endif
|
||||||
|
|
||||||
make install-libLTLIBRARIES DESTDIR=%{buildroot} -C jpeg62
|
make install-libLTLIBRARIES DESTDIR=%{buildroot} -C jpeg62
|
||||||
%makeinstall_std -C jpeg8
|
%makeinstall_std -C jpeg8
|
||||||
|
|
||||||
|
@ -178,9 +223,20 @@ rm -f %{buildroot}%{_docdir}/*
|
||||||
%files -n %{turbo}
|
%files -n %{turbo}
|
||||||
%{_libdir}/libturbojpeg.so
|
%{_libdir}/libturbojpeg.so
|
||||||
|
|
||||||
|
%if %{with uclibc}
|
||||||
|
%files -n uclibc-%{libname}
|
||||||
|
%{uclibc_root}%{_libdir}/libjpeg.so.%{major}*
|
||||||
|
|
||||||
|
%files -n uclibc-%{turbo}
|
||||||
|
%{uclibc_root}%{_libdir}/libturbojpeg.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %{devname}
|
%files -n %{devname}
|
||||||
%doc coderules.txt example.c jconfig.txt libjpeg.txt structure.txt filelist.txt
|
%doc coderules.txt example.c jconfig.txt libjpeg.txt structure.txt filelist.txt
|
||||||
%{_libdir}/libjpeg.so
|
%{_libdir}/libjpeg.so
|
||||||
|
%if %{with uclibc}
|
||||||
|
%{uclibc_root}%{_libdir}/libjpeg.so
|
||||||
|
%endif
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
|
|
||||||
%files -n %{statname}
|
%files -n %{statname}
|
||||||
|
@ -194,6 +250,10 @@ rm -f %{buildroot}%{_docdir}/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 27 2012 Per Øyvind Karlsen <peroyvind@mandriva.org> 1:1.2.1-2
|
||||||
|
+ Revision: 817743
|
||||||
|
- do uClibc build
|
||||||
|
|
||||||
* Mon Jul 09 2012 Alexander Khrukin <akhrukin@mandriva.org> 1:1.2.1-1
|
* Mon Jul 09 2012 Alexander Khrukin <akhrukin@mandriva.org> 1:1.2.1-1
|
||||||
+ Revision: 808547
|
+ Revision: 808547
|
||||||
- version update 1.2.1
|
- version update 1.2.1
|
||||||
|
|
Loading…
Add table
Reference in a new issue