Blame SPECS/libjpeg-turbo.spec

7f88bf
Name:		libjpeg-turbo
7f88bf
Version:	1.2.90
dd2097
Release:	6%{?dist}
7f88bf
Summary:	A MMX/SSE2 accelerated library for manipulating JPEG image files
7f88bf
7f88bf
Group:		System Environment/Libraries
7f88bf
License:	IJG
7f88bf
URL:		http://sourceforge.net/projects/libjpeg-turbo
7f88bf
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
7f88bf
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7f88bf
7f88bf
BuildRequires:	autoconf, automake, libtool
7f88bf
%ifarch %{ix86} x86_64
7f88bf
BuildRequires:	nasm
7f88bf
%endif
7f88bf
7f88bf
# moved this from -utils, in an attempt to get it to better override
7f88bf
# libjpeg in rawhide -- Rex
7f88bf
Obsoletes:	libjpeg < 6b-47
7f88bf
# add provides (even if it not needed) to workaround bad packages, like
7f88bf
# java-1.6.0-openjdk (#rh607554) -- atkac
7f88bf
Provides:	libjpeg = 6b-47%{?dist}
7f88bf
%if "%{?_isa}" != ""
7f88bf
Provides:	libjpeg%{_isa} = 6b-47%{?dist}
7f88bf
%endif
7f88bf
7f88bf
Patch0:		libjpeg-turbo12-noinst.patch
d49eda
Patch1:		libjpeg-turbo12-CVE-2013-6630.patch
d49eda
Patch2:		libjpeg-turbo12-CVE-2013-6629.patch
dd2097
Patch3:		libjpeg-turbo12-pkgconfig.patch
7f88bf
7f88bf
%description
7f88bf
The libjpeg-turbo package contains a library of functions for manipulating
7f88bf
JPEG images.
7f88bf
7f88bf
%package devel
7f88bf
Summary:	Headers for the libjpeg-turbo library
7f88bf
Group:		Development/Libraries
7f88bf
Obsoletes:	libjpeg-devel < 6b-47
7f88bf
Provides:	libjpeg-devel = 6b-47%{?dist}
7f88bf
%if "%{?_isa}" != ""
7f88bf
Provides:	libjpeg-devel%{_isa} = 6b-47%{?dist}
7f88bf
%endif
7f88bf
Requires:	libjpeg-turbo%{?_isa} = %{version}-%{release}
7f88bf
7f88bf
%description devel
7f88bf
This package contains header files necessary for developing programs which
7f88bf
will manipulate JPEG files using the libjpeg-turbo library.
7f88bf
7f88bf
%package utils
7f88bf
Summary:	Utilities for manipulating JPEG images
7f88bf
Group:		Applications/Multimedia
7f88bf
Requires:	libjpeg-turbo%{?_isa} = %{version}-%{release}
7f88bf
7f88bf
%description utils
7f88bf
The libjpeg-turbo-utils package contains simple client programs for
7f88bf
accessing the libjpeg functions. It contains cjpeg, djpeg, jpegtran,
7f88bf
rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG format.
7f88bf
Djpeg decompresses a JPEG file into a regular image file. Jpegtran
7f88bf
can perform various useful transformations on JPEG files. Rdjpgcom
7f88bf
displays any text comments included in a JPEG file. Wrjpgcom inserts
7f88bf
text comments into a JPEG file.
7f88bf
7f88bf
%package static
7f88bf
Summary:	Static version of the libjpeg-turbo library
7f88bf
Group:		Development/Libraries
7f88bf
Obsoletes:	libjpeg-static < 6b-47
7f88bf
Provides:	libjpeg-static = 6b-47%{?dist}
7f88bf
%if "%{?_isa}" != ""
7f88bf
Provides:	libjpeg-static%{_isa} = 6b-47%{?dist}
7f88bf
%endif
7f88bf
Requires:	libjpeg-turbo-devel%{?_isa} = %{version}-%{release}
7f88bf
7f88bf
%description static
7f88bf
The libjpeg-turbo-static package contains static library for manipulating
7f88bf
JPEG images.
7f88bf
7f88bf
%package -n turbojpeg
7f88bf
Summary:	TurboJPEG library
7f88bf
Group:		System Environment/Libraries
7f88bf
7f88bf
%description -n turbojpeg
7f88bf
The turbojpeg package contains the TurboJPEG shared library.
7f88bf
7f88bf
%package -n turbojpeg-devel
7f88bf
Summary:	Headers for the TurboJPEG library
7f88bf
Group:		Development/Libraries
7f88bf
Requires:	turbojpeg%{?_isa} = %{version}-%{release}
7f88bf
7f88bf
%description -n turbojpeg-devel
7f88bf
This package contains header files necessary for developing programs which
7f88bf
will manipulate JPEG files using the TurboJPEG library.
7f88bf
7f88bf
%prep
7f88bf
%setup -q
7f88bf
7f88bf
%patch0 -p1 -b .noinst
d49eda
%patch1 -p1 -b .CVE-2013-6630
d49eda
%patch2 -p1 -b .CVE-2013-6629
dd2097
%patch3 -p1 -b .pkgconfig
7f88bf
7f88bf
%build
7f88bf
autoreconf -fiv
7f88bf
7f88bf
%configure
7f88bf
7f88bf
make %{?_smp_mflags}
7f88bf
7f88bf
%install
7f88bf
rm -rf $RPM_BUILD_ROOT
7f88bf
make install DESTDIR=$RPM_BUILD_ROOT
7f88bf
7f88bf
# Fix perms
7f88bf
chmod -x README-turbo.txt
7f88bf
7f88bf
# Remove unwanted files
7f88bf
rm -f $RPM_BUILD_ROOT/%{_libdir}/lib{,turbo}jpeg.la
7f88bf
7f88bf
# Don't distribute libjpegturbo.a
7f88bf
rm -f $RPM_BUILD_ROOT/%{_libdir}/libturbojpeg.a
7f88bf
7f88bf
%clean
7f88bf
rm -rf $RPM_BUILD_ROOT
7f88bf
7f88bf
%check
7f88bf
make test
7f88bf
7f88bf
%post -p /sbin/ldconfig
7f88bf
%postun -p /sbin/ldconfig
7f88bf
7f88bf
%post -n turbojpeg -p /sbin/ldconfig
7f88bf
%postun -n turbojpeg -p /sbin/ldconfig
7f88bf
7f88bf
%files
7f88bf
%defattr(-,root,root,-)
7f88bf
%doc README README-turbo.txt change.log ChangeLog.txt
7f88bf
%{_libdir}/libjpeg.so.62*
7f88bf
7f88bf
%files devel
7f88bf
%defattr(-,root,root,-)
7f88bf
%doc coderules.txt jconfig.txt libjpeg.txt structure.txt example.c
7f88bf
%{_includedir}/jconfig.h
7f88bf
%{_includedir}/jerror.h
7f88bf
%{_includedir}/jmorecfg.h
7f88bf
%{_includedir}/jpeglib.h
7f88bf
%{_libdir}/libjpeg.so
dd2097
%{_libdir}/pkgconfig/libjpeg.pc
7f88bf
7f88bf
%files utils
7f88bf
%defattr(-,root,root,-)
7f88bf
%doc usage.txt wizard.txt
7f88bf
%{_bindir}/cjpeg
7f88bf
%{_bindir}/djpeg
7f88bf
%{_bindir}/jpegtran
7f88bf
%{_bindir}/rdjpgcom
7f88bf
%{_bindir}/wrjpgcom
7f88bf
%{_mandir}/man1/cjpeg.1*
7f88bf
%{_mandir}/man1/djpeg.1*
7f88bf
%{_mandir}/man1/jpegtran.1*
7f88bf
%{_mandir}/man1/rdjpgcom.1*
7f88bf
%{_mandir}/man1/wrjpgcom.1*
7f88bf
7f88bf
%files static
7f88bf
%defattr(-,root,root,-)
7f88bf
%{_libdir}/libjpeg.a
7f88bf
7f88bf
%files -n turbojpeg
7f88bf
%{_libdir}/libturbojpeg.so.0*
7f88bf
7f88bf
%files -n turbojpeg-devel
7f88bf
%{_includedir}/turbojpeg.h
7f88bf
%{_libdir}/libturbojpeg.so
dd2097
%{_libdir}/pkgconfig/libturbojpeg.pc
7f88bf
7f88bf
%changelog
dd2097
* Thu May 24 2018 Nikola Forró <nforro@redhat.com> - 1.2.90-6
dd2097
- Add pkgconfig scripts (#1581687)
dd2097
d49eda
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.2.90-5
d49eda
- Mass rebuild 2014-01-24
d49eda
d49eda
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2.90-4
d49eda
- Mass rebuild 2013-12-27
d49eda
d49eda
* Tue Nov 26 2013 Petr Hracek <phracek@redhat.com> - 1.2.90-3
d49eda
- Resolves: #1031739 app patches CVE-2013-6629 and CVE-2013-6630
d49eda
7f88bf
* Tue Mar 26 2013 Adam Tkac <atkac redhat com> - 1.2.90-2
7f88bf
- rebuild for ARM64 support
7f88bf
7f88bf
* Fri Feb 08 2013 Adam Tkac <atkac redhat com> 1.2.90-1
7f88bf
- update to 1.2.90
7f88bf
7f88bf
* Mon Feb 04 2013 Adam Tkac <atkac redhat com> 1.2.90-0.1.20130204svn922
7f88bf
- update to 1.2.80 snapshot (#854695)
7f88bf
- run `make test` during build
7f88bf
7f88bf
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> 1.2.1-6
7f88bf
- build with jpeg6 API/ABI (jpeg8-ABI feature was dropped)
7f88bf
7f88bf
* Tue Dec 04 2012 Adam Tkac <atkac redhat com> 1.2.1-5
7f88bf
- change license to IJG (#877517)
7f88bf
7f88bf
* Wed Oct 24 2012 Adam Tkac <atkac redhat com> 1.2.1-4
7f88bf
- build with jpeg8 API/ABI (#854695)
7f88bf
7f88bf
* Thu Oct 18 2012 Adam Tkac <atkac redhat com> 1.2.1-3
7f88bf
- minor provides tuning (#863231)
7f88bf
7f88bf
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
7f88bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7f88bf
7f88bf
* Mon Jul 16 2012 Adam Tkac <atkac redhat com> 1.2.1-1
7f88bf
- update to 1.2.1
7f88bf
7f88bf
* Thu Mar 08 2012 Adam Tkac <atkac redhat com> 1.2.0-1
7f88bf
- update to 1.2.0
7f88bf
7f88bf
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-4
7f88bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7f88bf
7f88bf
* Mon Nov 21 2011 Orion Poplawski <orion cora nwra com> 1.1.1-3
7f88bf
- Make turobojpeg-devel depend on turbojpeg
7f88bf
7f88bf
* Fri Oct 7 2011 Orion Poplawski <orion cora nwra com> 1.1.1-2
7f88bf
- Ship the turbojpeg library (#744258)
7f88bf
7f88bf
* Mon Jul 11 2011 Adam Tkac <atkac redhat com> 1.1.1-1
7f88bf
- update to 1.1.1
7f88bf
  - ljt11-rh688712.patch merged
7f88bf
7f88bf
* Tue Mar 22 2011 Adam Tkac <atkac redhat com> 1.1.0-2
7f88bf
- handle broken JPEGs better (#688712)
7f88bf
7f88bf
* Tue Mar 01 2011 Adam Tkac <atkac redhat com> 1.1.0-1
7f88bf
- update to 1.1.0
7f88bf
7f88bf
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.90-2
7f88bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7f88bf
7f88bf
* Mon Jan 17 2011 Adam Tkac <atkac redhat com> 1.0.90-1
7f88bf
- update to 1.0.90
7f88bf
- libjpeg-turbo10-rh639672.patch merged
7f88bf
7f88bf
* Fri Oct 29 2010 Adam Tkac <atkac redhat com> 1.0.1-3
7f88bf
- add support for arithmetic coded files into decoder (#639672)
7f88bf
7f88bf
* Wed Sep 29 2010 jkeating - 1.0.1-2
7f88bf
- Rebuilt for gcc bug 634757
7f88bf
7f88bf
* Mon Sep 13 2010 Adam Tkac <atkac redhat com> 1.0.1-1
7f88bf
- update to 1.0.1
7f88bf
  - libjpeg-turbo10-rh617469.patch merged
7f88bf
- add -static subpkg (#632859)
7f88bf
7f88bf
* Wed Aug 04 2010 Adam Tkac <atkac redhat com> 1.0.0-3
7f88bf
- fix huffman decoder to handle broken JPEGs well (#617469)
7f88bf
7f88bf
* Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-2
7f88bf
- add libjpeg-devel%%{_isa} provides to -devel subpkg to satisfy imlib-devel
7f88bf
  deps
7f88bf
7f88bf
* Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.0-1
7f88bf
- update to 1.0.0
7f88bf
- patches merged
7f88bf
  - libjpeg-turbo-programs.patch
7f88bf
  - libjpeg-turbo-nosimd.patch
7f88bf
- add libjpeg provides to the main package to workaround problems with broken
7f88bf
  java-1.6.0-openjdk package
7f88bf
7f88bf
* Fri Jul 02 2010 Adam Tkac <atkac redhat com> 0.0.93-13
7f88bf
- remove libjpeg provides from -utils subpkg
7f88bf
7f88bf
* Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-12
7f88bf
- move Obsoletes: libjpeg to main pkg
7f88bf
7f88bf
* Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> 0.0.93-11
7f88bf
- -utils: Requires: %%name ...
7f88bf
7f88bf
* Wed Jun 30 2010 Adam Tkac <atkac redhat com> 0.0.93-10
7f88bf
- add Provides = libjpeg to -utils subpackage
7f88bf
7f88bf
* Mon Jun 28 2010 Adam Tkac <atkac redhat com> 0.0.93-9
7f88bf
- merge review related fixes (#600243)
7f88bf
7f88bf
* Wed Jun 16 2010 Adam Tkac <atkac redhat com> 0.0.93-8
7f88bf
- merge review related fixes (#600243)
7f88bf
7f88bf
* Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-7
7f88bf
- obsolete -static libjpeg subpackage (#600243)
7f88bf
7f88bf
* Mon Jun 14 2010 Adam Tkac <atkac redhat com> 0.0.93-6
7f88bf
- improve package description a little (#600243)
7f88bf
- include example.c as %%doc in the -devel subpackage
7f88bf
7f88bf
* Fri Jun 11 2010 Adam Tkac <atkac redhat com> 0.0.93-5
7f88bf
- don't use "fc12" disttag in obsoletes/provides (#600243)
7f88bf
7f88bf
* Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-4
7f88bf
- fix compilation on platforms without MMX/SSE (#600243)
7f88bf
7f88bf
* Thu Jun 10 2010 Adam Tkac <atkac redhat com> 0.0.93-3
7f88bf
- package review related fixes (#600243)
7f88bf
7f88bf
* Wed Jun 09 2010 Adam Tkac <atkac redhat com> 0.0.93-2
7f88bf
- package review related fixes (#600243)
7f88bf
7f88bf
* Fri Jun 04 2010 Adam Tkac <atkac redhat com> 0.0.93-1
7f88bf
- initial package